Fraxswap V2
Verified contract
Active on
Ethereum with 72 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 ($477,398.22)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
FRAX | ERC-20 | 240.614362K | $0.99677 |
$239,837.18 | |
pitchFXS | ERC-20 | 162.713043K | $1.46 |
$237,561.04 | |
TKX | ERC-20 | 0.0001 | $13.71 |
$0 | |
$ Evmosia.com | ERC-20 | 7.5K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 18388715 | a year ago | | | 0 | 0.00041162076 | |
| 18367418 | a year ago | | | 0 | 0.0012942113 | |
| 18367409 | a year ago | | | 0 | 0.0011671922 | |
| 18367270 | a year ago | | | 0 | 0.0025443108 | |
| 17506981 | a year ago | | | 0 | 0.0015191210 | |
| 17337934 | 2 years ago | | | 0 | 0.0020357920 | |
| 17321207 | 2 years ago | | | 0 | 0.0019895240 | |
| 16969409 | 2 years ago | | | 0 | 0.0018994969 | |
| 16462314 | 2 years ago | | | 0 | 0.00059348380 | |
| 16293057 | 2 years ago | | | 0 | 0.00082557178 |
ABI
ABI objects
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 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast)
(_reserve0=162697054704886225685496, _reserve1=240614361987961222681106, _blockTimestampLast=1733137847)
getTWAPHistoryLength() view returns (uint256)
972
getTwammReserves() view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast, uint112 _twammReserve0, uint112 _twammReserve1, uint256 _fee)
(_reserve0=162697054704886225685496, _reserve1=240614361987961222681106, _blockTimestampLast=1733137847, _twammReserve0=15988453088559081929, _twammReserve1=15, _fee=100)
getTwammState() view returns (uint256 token0Rate, uint256 token1Rate, uint256 lastVirtualOrderTimestamp, uint256 orderTimeInterval_rtn, uint256 rewardFactorPool0, uint256 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(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()