Fraxswap V2

Verified contract

Active on Ethereum with 3 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 17 additional slots
ERC-20
Value $22.47
ERC-20
Value $0
ERC-20
--
ERC-20
--
0x3b46a323a2bab6731e429432b5abb9f686b6b62063cb264000aa48c2693b2c89
0xa1622037a922c0a1b6bc091a1bb3c0b5f03bfca58a7bde3b7410443ea9374c9e
0x3f7a5cdb2479bbe6efdd938a2a622c4d5bb35a86ecb58a607fb14542cb5d184c

Functions
Getter at block 21278544
DOMAIN_SEPARATOR(view returns (bytes32)
0x27e37f7004e6a6585e76eefb90daa56d7399a81309a7e2b09d9746e74fe31d98
MINIMUM_LIQUIDITY(view returns (uint256)
1000
PERMIT_TYPEHASH(view returns (bytes32)
0x6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9
decimals(view returns (uint8)
18
factory(view returns (address)
0x43ec799eadd63848443e2347c49f5f52e8fe0f6f
fee(view returns (uint256)
9900
getNextOrderID(view returns (uint256)
15
getReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLast)
(_reserve0=22519271162784753911, _reserve1=4147072167968807421677, _blockTimestampLast=1687977599)
getTWAPHistoryLength(view returns (uint256)
1362
getTwammReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLastuint112 _twammReserve0uint112 _twammReserve1uint256 _fee)
(_reserve0=22519271162784753911, _reserve1=4147072167968807421677, _blockTimestampLast=1687977599, _twammReserve0=20, _twammReserve1=313, _fee=100)
getTwammState(view returns (uint256 token0Rateuint256 token1Rateuint256 lastVirtualOrderTimestampuint256 orderTimeInterval_rtnuint256 rewardFactorPool0uint256 rewardFactorPool1)
(token0Rate=0, token1Rate=0, lastVirtualOrderTimestamp=1687977599, orderTimeInterval_rtn=3600, rewardFactorPool0=0, rewardFactorPool1=616621681016267952411944930883990686821)
kLast(view returns (uint256)
0
name(view returns (string)
Fraxswap V2
newSwapsPaused(view returns (bool)
false
orderTimeInterval(view returns (uint256)
3600
price0CumulativeLast(view returns (uint256)
16250857152497111388817245860852626311526155
price1CumulativeLast(view returns (uint256)
1633271722834719695045272737386755429500
symbol(view returns (string)
FS-V2
token0(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
token1(view returns (address)
0xf1dc500fde233a4055e25e5bbf516372bc4f6871
totalSupply(view returns (uint256)
274528892860132927279
twammReserve0(view returns (uint112)
20
twammReserve1(view returns (uint112)
313
twammUpToDate(view returns (bool)
false
Read-only
TWAPObservationHistory(uint256view returns (uint256 timestampuint256 price0CumulativeLastuint256 price1CumulativeLast)
allowance(addressaddressview returns (uint256)
balanceOf(addressview returns (uint256)
getAmountIn(uint256 amountOutaddress tokenOutview returns (uint256)
getAmountOut(uint256 amountInaddress tokenInview returns (uint256)
getDetailedOrdersForUser(address useruint256 offsetuint256 limitview returns (struct LongTermOrdersLibOrder[] detailed_orders)
getOrderIDsForUser(address userview returns (uint256[])
getOrderIDsForUserLength(address userview returns (uint256)
getReserveAfterTwamm(uint256 blockTimestampview returns (uint112 _reserve0uint112 _reserve1uint256 lastVirtualOrderTimestampuint112 _twammReserve0uint112 _twammReserve1)
getTwammOrder(uint256 orderIdview returns (uint256 iduint256 creationTimestampuint256 expirationTimestampuint256 saleRateaddress owneraddress sellTokenAddraddress buyTokenAddr)
getTwammOrderProceedsView(uint256 orderIduint256 blockTimestampview returns (bool orderExpireduint256 totalReward)
getTwammRewardFactor(uint256 _blockTimestampview returns (uint256 rewardFactorPool0AtTimestampuint256 rewardFactorPool1AtTimestamp)
getTwammSalesRateEnding(uint256 _blockTimestampview returns (uint256 orderPool0SalesRateEndinguint256 orderPool1SalesRateEnding)
nonces(addressview returns (uint256)
orderIDsForUser(addressuint256view returns (uint256)
State-modifying
approve(address spenderuint256 valuereturns (bool)
burn(address toreturns (uint256 amount0uint256 amount1)
cancelLongTermSwap(uint256 orderId
executeVirtualOrders(uint256 blockTimestamp
getTwammOrderProceeds(uint256 orderIdreturns (bool orderExpireduint256 totalReward)
initialize(address _token0address _token1uint256 _fee
longTermSwapFrom0To1(uint256 amount0Inuint256 numberOfTimeIntervalsreturns (uint256 orderId)
longTermSwapFrom1To0(uint256 amount1Inuint256 numberOfTimeIntervalsreturns (uint256 orderId)
mint(address toreturns (uint256 liquidity)
permit(address owneraddress spenderuint256 valueuint256 deadlineuint8 vbytes32 rbytes32 s
setFee(uint256 newFee
skim(address to
swap(uint256 amount0Outuint256 amount1Outaddress tobytes data
sync(
togglePauseNewSwaps(
transfer(address touint256 valuereturns (bool)
transferFrom(address fromaddress touint256 valuereturns (bool)
withdrawProceedsFromLongTermSwap(uint256 orderIdreturns (bool is_expiredaddress rewardTknuint256 totalReward)
Events
Approval(address indexed owneraddress indexed spenderuint256 value
Burn(address indexed senderuint256 amount0uint256 amount1address indexed to
CancelLongTermOrder(address indexed addruint256 orderIdaddress sellTokenuint256 unsoldAmountaddress buyTokenuint256 purchasedAmount
LongTermSwap0To1(address indexed addruint256 orderIduint256 amount0Inuint256 numberOfTimeIntervals
LongTermSwap1To0(address indexed addruint256 orderIduint256 amount1Inuint256 numberOfTimeIntervals
LpFeeUpdated(uint256 fee
Mint(address indexed senderuint256 amount0uint256 amount1
Swap(address indexed senderuint256 amount0Inuint256 amount1Inuint256 amount0Outuint256 amount1Outaddress indexed to
Sync(uint112 reserve0uint112 reserve1
Transfer(address indexed fromaddress indexed touint256 value
WithdrawProceedsFromLongTermOrder(address indexed addruint256 orderIdaddress indexed proceedTokenuint256 proceedsbool orderExpired
Constructor
constructor(
Fallback and receive

This contract contains no fallback and receive objects.

Errors
InsufficientInputAmount(
InsufficientLiquidity(uint112 reserve0uint112 reserve1
InsufficientOutputAmount(
InvalidToToken(
KConstantError(
Uint112Overflow(