Fraxswap V2
Verified contract
Active on
Ethereum with 3 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 17 additional slots
Balances ($22.47)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
FRAX | ERC-20 | 22.519271 | $0.997897 |
$22.47 | |
TKX | ERC-20 | 0.0001 | $12.13 |
$0 | |
$ Evmosia.com | ERC-20 | 7.5K | -- | -- | |
SDL | ERC-20 | 4.147072K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 15845119 | 2 years ago | | | 0 | 0.0020538798 | |
| 15469796 | 2 years ago | | | 0 | 0.00023393777 | |
| 15419093 | 2 years ago | | | 0 | 0.00056812521 |
ABI
ABI objects
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 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
(_reserve0=22519271162784753911, _reserve1=4147072167968807421677, _blockTimestampLast=1687977599)
getTWAPHistoryLength() view returns (uint256)
1362
getTwammReserves() view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast, uint112 _twammReserve0, uint112 _twammReserve1, uint256 _fee)
(_reserve0=22519271162784753911, _reserve1=4147072167968807421677, _blockTimestampLast=1687977599, _twammReserve0=20, _twammReserve1=313, _fee=100)
getTwammState() view returns (uint256 token0Rate, uint256 token1Rate, uint256 lastVirtualOrderTimestamp, uint256 orderTimeInterval_rtn, uint256 rewardFactorPool0, uint256 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(uint256) view returns (uint256 timestamp, uint256 price0CumulativeLast, uint256 price1CumulativeLast)
allowance(address, address) view returns (uint256)
balanceOf(address) view returns (uint256)
getAmountIn(uint256 amountOut, address tokenOut) view returns (uint256)
getAmountOut(uint256 amountIn, address tokenIn) view returns (uint256)
getDetailedOrdersForUser(address user, uint256 offset, uint256 limit) view returns (struct LongTermOrdersLibOrder[] detailed_orders)
getOrderIDsForUser(address user) view returns (uint256[])
getOrderIDsForUserLength(address user) view returns (uint256)
getReserveAfterTwamm(uint256 blockTimestamp) view returns (uint112 _reserve0, uint112 _reserve1, uint256 lastVirtualOrderTimestamp, uint112 _twammReserve0, uint112 _twammReserve1)
getTwammOrder(uint256 orderId) view returns (uint256 id, uint256 creationTimestamp, uint256 expirationTimestamp, uint256 saleRate, address owner, address sellTokenAddr, address buyTokenAddr)
getTwammOrderProceedsView(uint256 orderId, uint256 blockTimestamp) view returns (bool orderExpired, uint256 totalReward)
getTwammRewardFactor(uint256 _blockTimestamp) view returns (uint256 rewardFactorPool0AtTimestamp, uint256 rewardFactorPool1AtTimestamp)
getTwammSalesRateEnding(uint256 _blockTimestamp) view returns (uint256 orderPool0SalesRateEnding, uint256 orderPool1SalesRateEnding)
nonces(address) view returns (uint256)
orderIDsForUser(address, uint256) view returns (uint256)
State-modifying
Events approve(address spender, uint256 value) returns (bool)
burn(address to) returns (uint256 amount0, uint256 amount1)
cancelLongTermSwap(uint256 orderId)
executeVirtualOrders(uint256 blockTimestamp)
getTwammOrderProceeds(uint256 orderId) returns (bool orderExpired, uint256 totalReward)
initialize(address _token0, address _token1, uint256 _fee)
longTermSwapFrom0To1(uint256 amount0In, uint256 numberOfTimeIntervals) returns (uint256 orderId)
longTermSwapFrom1To0(uint256 amount1In, uint256 numberOfTimeIntervals) returns (uint256 orderId)
mint(address to) returns (uint256 liquidity)
permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)
setFee(uint256 newFee)
skim(address to)
swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data)
sync()
togglePauseNewSwaps()
transfer(address to, uint256 value) returns (bool)
transferFrom(address from, address to, uint256 value) returns (bool)
withdrawProceedsFromLongTermSwap(uint256 orderId) returns (bool is_expired, address rewardTkn, uint256 totalReward)
Approval(address indexed owner, address indexed spender, uint256 value)
Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to)
CancelLongTermOrder(address indexed addr, uint256 orderId, address sellToken, uint256 unsoldAmount, address buyToken, uint256 purchasedAmount)
LongTermSwap0To1(address indexed addr, uint256 orderId, uint256 amount0In, uint256 numberOfTimeIntervals)
LongTermSwap1To0(address indexed addr, uint256 orderId, uint256 amount1In, uint256 numberOfTimeIntervals)
LpFeeUpdated(uint256 fee)
Mint(address indexed sender, uint256 amount0, uint256 amount1)
Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to)
Sync(uint112 reserve0, uint112 reserve1)
Transfer(address indexed from, address indexed to, uint256 value)
WithdrawProceedsFromLongTermOrder(address indexed addr, uint256 orderId, address indexed proceedToken, uint256 proceeds, bool orderExpired)
constructor()
This contract contains no fallback and receive objects.
InsufficientInputAmount()
InsufficientLiquidity(uint112 reserve0, uint112 reserve1)
InsufficientOutputAmount()
InvalidToToken()
KConstantError()
Uint112Overflow()