Fraxswap V2
Verified contract
Active on
Ethereum with 246 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 ($112,210.75)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
FPIS | ERC-20 | 81.364097K | $0.704251 |
$57,300.75 | |
FRAX | ERC-20 | 55.027598K | $0.997863 |
$54,910 | |
TKX | ERC-20 | 0.0001 | $12.74 |
$0 | |
$ Evmosia.com | ERC-20 | 7.5K | -- | -- | |
HQG | ERC-20 | 0.0001 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 20375003 | 4 months ago | | | 0 | 0.00092831740 | |
| 20374987 | 4 months ago | | | 0 | 0.0018346068 | |
| 19832701 | 7 months ago | | | 0 | 0.00011725354 | |
| 19496507 | 8 months ago | | | 0 | 0.0017614373 | |
| 19488094 | 8 months ago | | | 0 | 0.0073889441 | |
| 19460721 | 8 months ago | | | 0 | 0.0021265519 | |
| 19453675 | 8 months ago | | | 0 | 0.010862318 | |
| 19449940 | 8 months ago | | | 0 | 0.0030520078 | |
| 19449187 | 8 months ago | | | 0 | 0.018944722 | |
| 19430651 | 8 months ago | | | 0 | 0.012170587 |
ABI
ABI objects
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 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
(_reserve0=55027598439665798634225, _reserve1=77456278648183081050863, _blockTimestampLast=1732590479)
getTWAPHistoryLength() view returns (uint256)
6107
getTwammReserves() view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast, uint112 _twammReserve0, uint112 _twammReserve1, uint256 _fee)
(_reserve0=55027598439665798634225, _reserve1=77456278648183081050863, _blockTimestampLast=1732590479, _twammReserve0=470, _twammReserve1=3907818378992357650629, _fee=30)
getTwammState() view returns (uint256 token0Rate, uint256 token1Rate, uint256 lastVirtualOrderTimestamp, uint256 orderTimeInterval_rtn, uint256 rewardFactorPool0, uint256 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(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()