Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "ClearingV2"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19064448 | 8 months ago | | | 0 | 0.00083665896 | |
| 19064447 | 8 months ago | | | 0 | 0.00073540182 |
ABI
ABI objects
Getter at block 20911534
PRECISION() view returns (uint256)
1000000000000000000000000000000000000
deltaScale() view returns (uint256)
10000
depositDelta() view returns (uint256)
10010
owner() view returns (address)
0x65ac5c8fc904ebc00140fdd59f9f63183cccc107
paused() view returns (bool)
false
priceThreshold() view returns (uint256)
10000
twapCheck() view returns (bool)
true
twapInterval() view returns (uint32)
3600
Read-only
applyRatio(address pos, address token, uint256 total0, uint256 total1) view returns (uint256 ratioStart, uint256 ratioEnd)
checkPriceChange(address pos, uint32 _twapInterval, uint256 _priceThreshold) view returns (uint256 price)
clearDeposit(uint256 deposit0, uint256 deposit1, address from, address to, address pos, uint256[4] minIn) view returns (bool cleared)
clearShares(address pos, uint256 shares) view returns (bool cleared)
freeDepositList(address, address) view returns (bool)
getDepositAmount(address pos, address token, uint256 _deposit) view returns (uint256 amountStart, uint256 amountEnd)
getListed(address pos, address i) view returns (bool)
getPositionInfo(address pos) view returns (struct ClearingV2Position)
getSqrtTwapX96(address pos, uint32 _twapInterval) view returns (uint160 sqrtPriceX96)
positions(address) view returns (bool customRatio, bool customTwap, bool ratioRemoved, bool depositOverride, bool twapOverride, uint8 version, uint32 twapInterval, uint256 priceThreshold, uint256 deposit0Max, uint256 deposit1Max, uint256 maxTotalSupply, uint256 fauxTotal0, uint256 fauxTotal1, uint256 customDepositDelta)
State-modifying
Events addPosition(address pos, uint8 version)
appendList(address pos, address[] listed)
customDeposit(address pos, uint256 deposit0Max, uint256 deposit1Max, uint256 maxTotalSupply, uint256 customDepositDelta)
customRatio(address pos, bool _customRatio, uint256 fauxTotal0, uint256 fauxTotal1)
pause(bool _paused)
removeListed(address pos, address listed)
removeRatio(address pos)
setDeltaScale(uint256 _deltaScale)
setDepositDelta(uint256 _depositDelta)
setDepositOverride(address pos, bool _depositOverride)
setPriceThreshold(uint256 _priceThreshold)
setTwapCheck(bool _twapCheck)
setTwapInterval(uint32 _twapInterval)
setTwapOverride(address pos, bool twapOverride, uint32 _twapInterval, uint256 _priceThreshold)
transferOwnership(address newOwner)
CustomDeposit(address arg0, uint256 arg1, uint256 arg2, uint256 arg3)
CustomRatio(address pos, uint256 fauxTotal0, uint256 fauxTotal1)
DeltaScaleSet(uint256 _deltaScale)
DepositDeltaSet(uint256 _depositDelta)
DepositOverrideSet(address pos, bool depositOverride)
ListAppended(address pos, address[] listed)
ListRemoved(address pos, address listed)
PositionAdded(address arg0, uint8 arg1)
PriceThresholdPosSet(address pos, uint256 _priceThreshold)
PriceThresholdSet(uint256 _priceThreshold)
RatioRemoved(address pos)
TwapCheckSet(bool twapCheck)
TwapIntervalSet(uint32 _twapInterval)
TwapOverrideSet(address pos, bool twapOverride, uint32 _twapInterval, uint256 _priceThreshold)
constructor()
This contract contains no fallback and receive objects.
This contract contains no error objects.