GemSeller

Verified contract

Active on Ethereum with 12 txns
Deployed by via 0xa5d0f15a at 15673966
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "GemSeller"

0xf43d108cdd665d18d6c8bf9223e2a56a93724adfa5f7a4d5ecbff1255947c19a
0x0a445e04f54d51c034d94b3ae0228799e88fd9217a720ef3928c1ca7ee6b7446
0xca7f9ae1494a44748a19989c183b36f579fe7e8f7bc1bfe72b8bef9404b00128
0x0dbc65807e240a94ffd1c1fbfae3bb97ba9afa971f653756c119219add345a30
0x18eaac79feaa8117d1491684ecd63582d7f7b2ad55d12cbd649e33e16eeae288
0x32c6c3be9c6c96c5e21e7330839f6c75e6b66945bfa4fc5cd992c315fcfd218f
0x9de1d570c7c1a32319610ae3ae1a19f3d0f47c6fa43336cbd9a2f12f742ed4c9
0xf1d60ff7e3c00a0d3f4b1cfb751331d41cca6db43403c99a69b995874ec865d2
0x7564611b1d27e0a0280bc25ac635b7f0804b2fe53cc8a438f6eba25556c6498d
0xd804ff468b256335413a48b9515838b5c8cb5217515bffc8ca0d218319aaf444

Functions
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 lusdQtyuint256 gem2EthPriceuint256 eth2UsdPricepure returns (uint256)
compensateForLusdDeviation(uint256 gemAmountview returns (uint256 newGemAmount)
fetchPrice(address feedview returns (uint256)
gemToUSD(uint256 gemQtyuint256 gem2EthPriceuint256 eth2UsdPricepure returns (uint256)
getConversionRate(addressaddressuint256 srcQtyuint256view returns (uint256)
getReturn(uint256 xQtyuint256 xBalanceuint256 yBalanceuint256 Apure returns (uint256)
getSumFixedPoint(uint256 xuint256 yuint256 Apure returns (uint256)
getSwapGemAmount(uint256 lusdQtyview returns (uint256 gemAmountuint256 feeLusdAmount)
State-modifying
setParams(uint256 _Auint256 _fee
swap(uint256 lusdAmountuint256 minGemReturnaddress destreturns (uint256)
trade(addressuint256 srcAmountaddressaddress destAddressuint256boolpayable returns (bool)
transferOwnership(address newOwner
Events
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ParamsSet(uint256 Auint256 fee
RebalanceSwap(address indexed useruint256 lusdAmountuint256 gemAmountuint256 timestamp
Constructor
constructor(address _gem2ethPriceAggregatoraddress _eth2usdPriceAggregatoraddress _lusd2UsdPriceAggregatoraddress _LUSDaddress _gemaddress _gemOwneruint256 _lusdVirtualBalanceuint256 _maxDiscountaddress _feePool
Fallback and receive
receive(
Errors

This contract contains no error objects.