Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "GemSeller"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 19470268 | 8 months ago | | | 0 | 0.017192096 | |
| 16806717 | 2 years ago | | | 0 | 0.016427176 | |
| 16750924 | 2 years ago | | | 0 | 0.0093880548 | |
| 16749117 | 2 years ago | | | 0 | 0.014278675 | |
| 16749085 | 2 years ago | | | 0 | 0.014538364 | |
| 15818772 | 2 years ago | | | 0 | 0.020411363 | |
| 15818759 | 2 years ago | | | 0 | 0.017320147 | |
| 15818735 | 2 years ago | | | 0 | 0.021734016 | |
| 15781440 | 2 years ago | | | 0 | 0.0063204319 | |
| 15674020 | 2 years ago | | | 0 | 0.00019408059 |
ABI
ABI objects
Getter at block 21318824
A() view returns (uint256)
20
LUSD() view returns (address)
0x5f98805a4e8be255a32880fdec7f6728c6568ba0
MAX_A() view returns (uint256)
200
MAX_FEE() view returns (uint256)
1000
MIN_A() view returns (uint256)
20
PRECISION() view returns (uint256)
1000000000000000000
eth2usdPriceAggregator() view returns (address)
0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419
fee() view returns (uint256)
100
feePool() view returns (address)
0x7095f0b91a1010c11820b4e263927835a4cf52c9
fetchEthPrice() view returns (uint256)
3629888000000000000000
fetchGem2EthPrice() view returns (uint256)
0
gem() view returns (address)
0x6dea81c8171d0ba574754ef6f8b412f2ed88c54d
gem2ethPriceAggregator() view returns (address)
0x1459dac936578bbe620e2a22e3026ce9791f17d6
gemOwner() view returns (address)
0x896d8a30c32ead64f2e1195c2c8e0932be7dc20b
isOwner() view returns (bool)
false
lusd2UsdPriceAggregator() view returns (address)
0x3d7ae7e594f2f2091ad8798313450130d0aba3a0
lusdVirtualBalance() view returns (uint256)
5000000000000000000000000
maxDiscount() view returns (uint256)
400
owner() view returns (address)
0xf15abf59a957aea1d81fc77f2634a2f55dd3b280
Read-only
USDToGem(uint256 lusdQty, uint256 gem2EthPrice, uint256 eth2UsdPrice) pure returns (uint256)
compensateForLusdDeviation(uint256 gemAmount) view returns (uint256 newGemAmount)
fetchPrice(address feed) view returns (uint256)
gemToUSD(uint256 gemQty, uint256 gem2EthPrice, uint256 eth2UsdPrice) pure returns (uint256)
getConversionRate(address, address, uint256 srcQty, uint256) view returns (uint256)
getReturn(uint256 xQty, uint256 xBalance, uint256 yBalance, uint256 A) pure returns (uint256)
getSumFixedPoint(uint256 x, uint256 y, uint256 A) pure returns (uint256)
getSwapGemAmount(uint256 lusdQty) view returns (uint256 gemAmount, uint256 feeLusdAmount)
State-modifying
Events setParams(uint256 _A, uint256 _fee)
swap(uint256 lusdAmount, uint256 minGemReturn, address dest) returns (uint256)
trade(address, uint256 srcAmount, address, address destAddress, uint256, bool) payable returns (bool)
transferOwnership(address newOwner)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ParamsSet(uint256 A, uint256 fee)
RebalanceSwap(address indexed user, uint256 lusdAmount, uint256 gemAmount, uint256 timestamp)
constructor(address _gem2ethPriceAggregator, address _eth2usdPriceAggregator, address _lusd2UsdPriceAggregator, address _LUSD, address _gem, address _gemOwner, uint256 _lusdVirtualBalance, uint256 _maxDiscount, address _feePool)
receive()
This contract contains no error objects.