TwapRelayer

Verified contract

Implementation

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

No balances found for "TwapRelayer"

No transactions found for "TwapRelayer"


Functions
Getter at block 20791471
DELAY_ADDRESS(view returns (address)
0xc3a99a855d060d727367c599ecb2423e0bebee24
EXECUTION_GAS_LIMIT(view returns (uint256)
710000
FACTORY_ADDRESS(view returns (address)
0xc480b33ee5229de3fbdfad1d2dcd3f3bad0c56c6
WETH_ADDRESS(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
__RESERVED__OLD_DELAY(view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__OLD_ETH_TRANSFER_GAS_COST(view returns (uint256)
0
__RESERVED__OLD_EXECUTION_GAS_LIMIT(view returns (uint256)
0
__RESERVED__OLD_FACTORY(view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__OLD_WETH(view returns (address)
0x0000000000000000000000000000000000000000
__RESERVED__SLOT_6_USED_IN_PREVIOUS_VERSIONS(view returns (uint256)
0
delay(pure returns (address)
0xc3a99a855d060d727367c599ecb2423e0bebee24
ethTransferGasCost(pure returns (uint256)
14104
executionGasLimit(pure returns (uint256)
710000
factory(pure returns (address)
0xc480b33ee5229de3fbdfad1d2dcd3f3bad0c56c6
initialized(view returns (uint8)
1
owner(view returns (address)
0xab066655a991550debaec0aa1cdd4f3bd7bb5483
rebalancer(view returns (address)
0x0000000000000000000000000000000000000000
weth(pure returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
__RESERVED__OLD_TOKEN_LIMIT_MAX_MULTIPLIER(addressview returns (uint256)
__RESERVED__OLD_TOKEN_LIMIT_MIN(addressview returns (uint256)
__RESERVED__OLD_TOLERANCE(addressview returns (uint16)
__RESERVED__OLD_TWAP_INTERVAL(addressview returns (uint32)
getPoolState(address token0address token1view returns (uint256 priceuint256 feeuint256 limitMin0uint256 limitMax0uint256 limitMin1uint256 limitMax1)
getPriceByPairAddress(address pairbool invertedview returns (uint8 xDecimalsuint8 yDecimalsuint256 price)
getPriceByTokenAddresses(address tokenInaddress tokenOutview returns (uint256 price)
getTokenLimitMaxMultiplier(addresspure returns (uint256)
getTokenLimitMin(address tokenpure returns (uint256)
getTolerance(addresspure returns (uint16)
getTwapInterval(addresspure returns (uint32)
isOneInchRouterWhitelisted(addressview returns (bool)
isPairEnabled(addressview returns (bool)
quoteBuy(address tokenInaddress tokenOutuint256 amountOutview returns (uint256 amountIn)
quoteSell(address tokenInaddress tokenOutuint256 amountInview returns (uint256 amountOut)
swapFee(addressview returns (uint256)
tokenLimitMaxMultiplier(address tokenpure returns (uint256)
tokenLimitMin(address tokenpure returns (uint256)
tolerance(address pairpure returns (uint16)
twapInterval(address pairpure returns (uint32)
State-modifying
approve(address tokenuint256 amountaddress to
buy(struct ITwapRelayerBuyParams buyParamspayable returns (uint256 orderId)
initialize(
initializeLock(
rebalanceSellWithDelay(address tokenInaddress tokenOutuint256 amountIn
rebalanceSellWithOneInch(address tokenInuint256 amountInaddress oneInchRouteruint256 _gasbytes data
sell(struct ITwapRelayerSellParams sellParamspayable returns (uint256 orderId)
setOwner(address _owner
setPairEnabled(address pairbool enabled
setRebalancer(address _rebalancer
setSwapFee(address pairuint256 fee
unwrapWeth(uint256 amount
whitelistOneInchRouter(address oneInchRouterbool whitelisted
withdraw(address tokenuint256 amountaddress to
wrapEth(uint256 amount
Events
Approve(address tokenaddress touint256 amount
Buy(address indexed senderaddress tokenInaddress tokenOutuint256 amountInuint256 amountInMaxuint256 amountOutbool wrapUnwrapuint256 feeaddress indexed toaddress orderContractuint256 indexed orderId
DelaySet(address delay
EthTransferGasCostSet(uint256 gasCost
ExecutionGasLimitSet(uint256 limit
Initialized(address _factoryaddress _delayaddress _weth
OneInchRouterWhitelisted(address indexed oneInchRouterbool whitelisted
OwnerSet(address owner
PairEnabledSet(address pairbool enabled
RebalanceSellWithDelay(address indexed senderaddress tokenInaddress tokenOutuint256 amountInuint256 indexed delayOrderId
RebalanceSellWithOneInch(address indexed oneInchRouteruint256 gasbytes data
RebalancerSet(address rebalancer
Sell(address indexed senderaddress tokenInaddress tokenOutuint256 amountInuint256 amountOutuint256 amountOutMinbool wrapUnwrapuint256 feeaddress indexed toaddress orderContractuint256 indexed orderId
SwapFeeSet(address pairuint256 fee
TokenLimitMaxMultiplierSet(address tokenuint256 limit
TokenLimitMinSet(address tokenuint256 limit
ToleranceSet(address pairuint16 tolerance
TwapIntervalSet(address pairuint32 interval
UnwrapWeth(uint256 amount
Withdraw(address tokenaddress touint256 amount
WrapEth(uint256 amount
Constructor
constructor(
Fallback and receive
receive(
Errors

This contract contains no error objects.