Ramm
Verified contract
Implementation
Active on
Ethereum with 0 txns
Storage
Map
Table
Raw
Constants and immutables
20
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x0000…0000
-
variable spans 2 additional slots
Balances ($0.00)
No balances found for "Ramm"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Ramm"
ABI
ABI objects
Getter at block 21167624 getBookValue() view returns (uint256 bookValue) getInternalPrice() view returns (uint256 internalPrice) getReserves() view returns (uint256 _ethReserve, uint256 nxmA, uint256 nxmB, uint256 _budget) getSpotPrices() view returns (uint256 spotPriceA, uint256 spotPriceB)
FAST_LIQUIDITY_SPEED() view returns (uint256)
1500000000000000000000
FAST_RATCHET_SPEED() view returns (uint256)
5000
GRANULARITY() view returns (uint256)
3
LIQ_SPEED_A() view returns (uint256)
100000000000000000000
LIQ_SPEED_B() view returns (uint256)
100000000000000000000
LIQ_SPEED_PERIOD() view returns (uint256)
86400
NORMAL_RATCHET_SPEED() view returns (uint256)
400
PERIOD_SIZE() view returns (uint256)
259200
PRICE_BUFFER() view returns (uint256)
100
PRICE_BUFFER_DENOMINATOR() view returns (uint256)
10000
RATCHET_DENOMINATOR() view returns (uint256)
10000
RATCHET_PERIOD() view returns (uint256)
86400
TARGET_LIQUIDITY() view returns (uint256)
5000000000000000000000
ethLimit() view returns (uint32)
0
ethReleased() view returns (uint96)
0
loadState() view returns (struct State)
(0, 0, 0, 0, 400, 0)
master() view returns (address)
0x0000000000000000000000000000000000000000
nxmLimit() view returns (uint32)
0
nxmReleased() view returns (uint96)
0
ratchetSpeedB() view returns (uint256)
400
slot0() view returns (uint128 nxmReserveA, uint128 nxmReserveB)
(nxmReserveA=0, nxmReserveB=0)
slot1() view returns (uint128 ethReserve, uint88 budget, uint32 updatedAt, bool swapPaused)
(ethReserve=0, budget=0, updatedAt=0, swapPaused=false)
swapPaused() view returns (bool)
false
Read-only
_getInternalPrice(struct State state, (uint32, uint112, uint112)[3] _observations, uint256 capital, uint256 supply, uint256 timestamp) pure returns (uint256)
_getReserves(struct State state, struct Context context, uint256 currentTimestamp) pure returns (struct State, uint256 injected, uint256 extracted)
_updateTwap(struct State initialState, (uint32, uint112, uint112)[3] _observations, struct Context context, uint256 currentStateTimestamp) pure returns ((uint32, uint112, uint112)[3])
getInitialObservations(uint256 initialPriceA, uint256 initialPriceB, uint256 timestamp) pure returns ((uint32, uint112, uint112)[3] initialObservations)
getObservation(struct State previousState, struct State state, struct Observation previousObservation, uint256 capital, uint256 supply) pure returns (struct Observation)
internalContracts(uint256) view returns (address)
observations(uint256) view returns (uint32 timestamp, uint112 priceCumulativeAbove, uint112 priceCumulativeBelow)
State-modifying
Events changeDependentContractAddress()
changeMasterAddress(address masterAddress)
getInternalPriceAndUpdateTwap() returns (uint256 internalPrice)
removeBudget()
setCircuitBreakerLimits(uint256 _ethLimit, uint256 _nxmLimit)
setEmergencySwapPause(bool _swapPaused)
swap(uint256 nxmIn, uint256 minAmountOut, uint256 deadline) payable returns (uint256)
updateTwap()
BudgetRemoved()
EthExtracted(uint256 value)
EthInjected(uint256 value)
EthSwappedForNxm(address indexed member, uint256 ethIn, uint256 nxmOut)
NxmSwappedForEth(address indexed member, uint256 nxmIn, uint256 ethOut)
ObservationUpdated(uint32 timestamp, uint112 priceCumulativeAbove, uint112 priceCumulativeBelow)
SwapPauseConfigured(bool paused)
constructor(uint256 spotPriceB)
This contract contains no fallback and receive objects.
EthCircuitBreakerHit()
EthTransferFailed()
InsufficientAmountOut(uint256 amountOut, uint256 minAmountOut)
NoSwapsInBufferZone()
NxmCircuitBreakerHit()
OneInputOnly()
OneInputRequired()
SwapExpired(uint256 deadline, uint256 blockTimestamp)
SwapPaused()
SystemPaused()