Fraxswap V2

Verified contract

Active on Ethereum with 246 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 $57,300.75
ERC-20
Value $54,910
ERC-20
Value $0
ERC-20
--
ERC-20
--
0xeb168b032689ab46e5eb772df1f09165211313c272a7fc4be597a6f2e287d3fe
0x8c175049ae508b1e50562b59abf12d33f01f32a8749f8e059703606584993428
0x57cfc02b871dd7d21f9223ab012f2b2f8ae4e9e1524f616eb9cd1a2fd5d03a1e
0x69353dccdbbed2ec9de7a91874992bcfc6379bcfb84ba9d280e99e6525cc3a78
0x818b8d0cff7fd54876a0b0a7a7761ebdaa2d40e2fb15e54d48675096c52abcf9
0x6b4f42200da78c9d52686439cabf56112bb0333a32e5ab646f14c28a3b2a74db
0x1eafdf871def81369b1c9595e5d5bb8540770bcf6bdf4a264a0e99d6a141333d
0x9bf8cdd7bf8db31c667bb5d1899f17da15c899a7af1e5943e88bdd85e9fb7bee
0x8c5b1ea4cf081bcad7d9fd9f5f41c05c85c136c03fdb7ca6d1e27af9892a6df3
0xbff6af241e55c5570e23789203b2108831890400ecb2c4bc15d8761c0f278a1c

Functions
Getter at block 21269989
DOMAIN_SEPARATOR(view returns (bytes32)
0x64a4961fceef30eecd763b5e0a81e05e6d598af8a9ad5e402ddb2be5816c9b91
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)
9970
getNextOrderID(view returns (uint256)
85
getReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLast)
(_reserve0=55027598439665798634225, _reserve1=77456278648183081050863, _blockTimestampLast=1732590479)
getTWAPHistoryLength(view returns (uint256)
6107
getTwammReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLastuint112 _twammReserve0uint112 _twammReserve1uint256 _fee)
(_reserve0=55027598439665798634225, _reserve1=77456278648183081050863, _blockTimestampLast=1732590479, _twammReserve0=470, _twammReserve1=3907818378992357650629, _fee=30)
getTwammState(view returns (uint256 token0Rateuint256 token1Rateuint256 lastVirtualOrderTimestampuint256 orderTimeInterval_rtnuint256 rewardFactorPool0uint256 rewardFactorPool1)
(token0Rate=0, token1Rate=0, lastVirtualOrderTimestamp=1732590479, orderTimeInterval_rtn=3600, rewardFactorPool0=40616413440106061247463970509048857202732, rewardFactorPool1=189857811973180162809925209443022268715244)
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)
366314656340309869088611141429949291690538
price1CumulativeLast(view returns (uint256)
478029135212566859191021596722520221388586
symbol(view returns (string)
FS-V2
token0(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
token1(view returns (address)
0xc2544a32872a91f4a553b404c6950e89de901fdb
totalSupply(view returns (uint256)
62334012701044720465623
twammReserve0(view returns (uint112)
470
twammReserve1(view returns (uint112)
3907818378992357650629
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(