Fraxswap V2

Verified contract

Active on Ethereum with 72 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 $239,837.18
ERC-20
Value $237,561.04
ERC-20
Value $0
ERC-20
--
0x0163d8a7a3cf53455445f35f8b9ffce37aa417865c3d14dddb07dc8cc3b2fdcb
0x5a4536a3b2ab23f581000b97e7d48e7781021714c6a451d4d55675e7a87b2517
0x9382d55d4b5ab391eed77bc7ea0950a9a4c1e658c2b0c5d1a82dd0586a72936b
0xe635926a501fb8a8ff7ea2e658318a7b95273302a2f90a48aeaacc1c86781a59
0x415299b881c56b1cf51ca84b6ba081f4a5ecd6e9e761a3a1879320c02e7754ef
0xdf58d3dd7d0a52255a20d411d61c7a8c4d11ee29b2aff8b967d4441d05270510
0x66126ff5eebf534a1b4746cef60fcbb360b6c4b9ff3260fd792431389a2cd24b
0x91e5592a35d03983137dff80d998622126394279bdd8c6d3e807ec63b089b0ec
0x7b8f52f506aab3270c7b185a000674966f6ebc0d6e77af5342b284c84d6817ec
0x3d44ca49154a20a7c8f026315636289f57df82da6341fdcfd0279c4b2d10e3eb

Functions
Getter at block 21317990
DOMAIN_SEPARATOR(view returns (bytes32)
0xdec18771b3a85939e80596b0a114ce5f68a59b1e8bb25d78c53db9972920b4c0
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)
10
getReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLast)
(_reserve0=162697054704886225685496, _reserve1=240614361987961222681106, _blockTimestampLast=1733137847)
getTWAPHistoryLength(view returns (uint256)
972
getTwammReserves(view returns (uint112 _reserve0uint112 _reserve1uint32 _blockTimestampLastuint112 _twammReserve0uint112 _twammReserve1uint256 _fee)
(_reserve0=162697054704886225685496, _reserve1=240614361987961222681106, _blockTimestampLast=1733137847, _twammReserve0=15988453088559081929, _twammReserve1=15, _fee=100)
getTwammState(view returns (uint256 token0Rateuint256 token1Rateuint256 lastVirtualOrderTimestampuint256 orderTimeInterval_rtnuint256 rewardFactorPool0uint256 rewardFactorPool1)
(token0Rate=0, token1Rate=0, lastVirtualOrderTimestamp=1733137847, orderTimeInterval_rtn=3600, rewardFactorPool0=25462789900218089024774934988630965817304, rewardFactorPool1=3234473467750397486538639723268939081300)
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)
1194604239971718862870939674013466662497036
price1CumulativeLast(view returns (uint256)
323656269319023752953815721033928950170792
symbol(view returns (string)
FS-V2
token0(view returns (address)
0x11ebe21e9d7bf541a18e1e3ac94939018ce88f0b
token1(view returns (address)
0x853d955acef822db058eb8505911ed77f175b99e
totalSupply(view returns (uint256)
40644161258898040425796
twammReserve0(view returns (uint112)
15988453088559081929
twammReserve1(view returns (uint112)
15
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(