This contract is being backfilled. You may encounter incomplete storage history.
The latest block we've processed for this chain is 20895798, which is 1 minutes old. We're running behind the tip but working to resolve the issue.

TwapOracleV3

Verified contract

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

No balances found for "TwapOracleV3"

0xdc873b5eb838e275e6ada8f345f81e79441b89883a5b9fa88980ee26591f438f
0xdadc527609c9bfe50a337aeabde7e9b53a062f48880b937ed4562839f41e1734
0x6074a3060da23bb03c51054710f65b72f73b06d37b27d063050c5f784d748960

Functions
Getter at block 20895797
decimalsConverter(view returns (int256)
1000000000000000000
getPriceInfo(view returns (uint256 priceAccumulatoruint256 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 xLeftuint256 xBeforeuint256 yBeforebytes dataview returns (uint256)
depositTradeYIn(uint256 yLeftuint256 xBeforeuint256 yBeforebytes dataview returns (uint256)
getAveragePrice(uint256uint256view returns (uint256)
getSwapAmount0Out(uint256 swapFeeuint256 amount1Inbytes dataview returns (uint256 amount0Out)
getSwapAmount1Out(uint256 swapFeeuint256 amount0Inbytes dataview returns (uint256 amount1Out)
getSwapAmountInMaxOut(bool inverseuint256 swapFeeuint256 _amountOutbytes dataview returns (uint256 amountInuint256 amountOut)
getSwapAmountInMinOut(bool inverseuint256 swapFeeuint256 _amountOutbytes dataview returns (uint256 amountInuint256 amountOut)
tradeX(uint256 xAfteruint256 xBeforeuint256 yBeforebytes dataview returns (uint256 yAfter)
tradeY(uint256 yAfteruint256 xBeforeuint256 yBeforebytes dataview returns (uint256 xAfter)
State-modifying
setOwner(address _owner
setTwapInterval(uint32 _interval
setUniswapPair(address _uniswapPair
Events
OwnerSet(address owner
TwapIntervalSet(uint32 interval
UniswapPairSet(address uniswapPair
Constructor
constructor(uint8 _xDecimalsuint8 _yDecimals
Fallback and receive

This contract contains no fallback and receive objects.

Errors

This contract contains no error objects.