ClearingV2

Verified contract

Active on Ethereum with 2 txns
Deployed by via 0x7ea1fa7e at 19064434
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "ClearingV2"

0xe10c460bef7bcc1ea65f8c0f9bea61be907af4b8818cdf3b2464d2c84e828028
0x9c2a308ebba3a4e7a44e7861a7bc6d947bfc9283bd644d58055ed9a7fd010a81

Functions
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 posaddress tokenuint256 total0uint256 total1view returns (uint256 ratioStartuint256 ratioEnd)
checkPriceChange(address posuint32 _twapIntervaluint256 _priceThresholdview returns (uint256 price)
clearDeposit(uint256 deposit0uint256 deposit1address fromaddress toaddress posuint256[4] minInview returns (bool cleared)
clearShares(address posuint256 sharesview returns (bool cleared)
freeDepositList(addressaddressview returns (bool)
getDepositAmount(address posaddress tokenuint256 _depositview returns (uint256 amountStartuint256 amountEnd)
getListed(address posaddress iview returns (bool)
getPositionInfo(address posview returns (struct ClearingV2Position)
getSqrtTwapX96(address posuint32 _twapIntervalview returns (uint160 sqrtPriceX96)
positions(addressview returns (bool customRatiobool customTwapbool ratioRemovedbool depositOverridebool twapOverrideuint8 versionuint32 twapIntervaluint256 priceThresholduint256 deposit0Maxuint256 deposit1Maxuint256 maxTotalSupplyuint256 fauxTotal0uint256 fauxTotal1uint256 customDepositDelta)
State-modifying
addPosition(address posuint8 version
appendList(address posaddress[] listed
customDeposit(address posuint256 deposit0Maxuint256 deposit1Maxuint256 maxTotalSupplyuint256 customDepositDelta
customRatio(address posbool _customRatiouint256 fauxTotal0uint256 fauxTotal1
pause(bool _paused
removeListed(address posaddress listed
removeRatio(address pos
setDeltaScale(uint256 _deltaScale
setDepositDelta(uint256 _depositDelta
setDepositOverride(address posbool _depositOverride
setPriceThreshold(uint256 _priceThreshold
setTwapCheck(bool _twapCheck
setTwapInterval(uint32 _twapInterval
setTwapOverride(address posbool twapOverrideuint32 _twapIntervaluint256 _priceThreshold
transferOwnership(address newOwner
Events
CustomDeposit(address arg0uint256 arg1uint256 arg2uint256 arg3
CustomRatio(address posuint256 fauxTotal0uint256 fauxTotal1
DeltaScaleSet(uint256 _deltaScale
DepositDeltaSet(uint256 _depositDelta
DepositOverrideSet(address posbool depositOverride
ListAppended(address posaddress[] listed
ListRemoved(address posaddress listed
PositionAdded(address arg0uint8 arg1
PriceThresholdPosSet(address posuint256 _priceThreshold
PriceThresholdSet(uint256 _priceThreshold
RatioRemoved(address pos
TwapCheckSet(bool twapCheck
TwapIntervalSet(uint32 _twapInterval
TwapOverrideSet(address posbool twapOverrideuint32 _twapIntervaluint256 _priceThreshold
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.