TwapOracleV3
Verified contract
Active on
Ethereum with 3 txns
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 "TwapOracleV3"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19738591 | 5 months ago | | | 0 | 0.00025722342 | |
| 19483167 | 6 months ago | | | 0 | 0.00086036437 | |
| 19483156 | 6 months ago | | | 0 | 0.0022387585 |
ABI
ABI objects
Getter at block 20895797
decimalsConverter() view returns (int256)
1000000000000000000
getPriceInfo() view returns (uint256 priceAccumulator, uint256 priceTimestamp)
(priceAccumulator=0, priceTimestamp=1728088727)
getSpotPrice() view returns (uint256)
243705077131556
owner() view returns (address)
0xff030beb0335432e156a0ee55bd87850eaad228e
twapInterval() view returns (uint32)
1800
uniswapPair() view returns (address)
0xf4c5e0f4590b6679b3030d29a84857f226087fef
xDecimals() view returns (uint8)
18
yDecimals() view returns (uint8)
18
Read-only
depositTradeXIn(uint256 xLeft, uint256 xBefore, uint256 yBefore, bytes data) view returns (uint256)
depositTradeYIn(uint256 yLeft, uint256 xBefore, uint256 yBefore, bytes data) view returns (uint256)
getAveragePrice(uint256, uint256) view returns (uint256)
getSwapAmount0Out(uint256 swapFee, uint256 amount1In, bytes data) view returns (uint256 amount0Out)
getSwapAmount1Out(uint256 swapFee, uint256 amount0In, bytes data) view returns (uint256 amount1Out)
getSwapAmountInMaxOut(bool inverse, uint256 swapFee, uint256 _amountOut, bytes data) view returns (uint256 amountIn, uint256 amountOut)
getSwapAmountInMinOut(bool inverse, uint256 swapFee, uint256 _amountOut, bytes data) view returns (uint256 amountIn, uint256 amountOut)
tradeX(uint256 xAfter, uint256 xBefore, uint256 yBefore, bytes data) view returns (uint256 yAfter)
tradeY(uint256 yAfter, uint256 xBefore, uint256 yBefore, bytes data) view returns (uint256 xAfter)
State-modifying
Events setOwner(address _owner)
setTwapInterval(uint32 _interval)
setUniswapPair(address _uniswapPair)
OwnerSet(address owner)
TwapIntervalSet(uint32 interval)
UniswapPairSet(address uniswapPair)
constructor(uint8 _xDecimals, uint8 _yDecimals)
This contract contains no fallback and receive objects.
This contract contains no error objects.