Pool

Verified contract

Active on Ethereum with 3,451 txns
Deployed by via 0x33537980 at 11733853
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
0x25270ceb82d4f9bd49c54941f194067f544ccf4cd40927c7abc5def2eaf060e2
0xd0b528ead2fca3bf2d6eeef7ef02e3240ee7a518869d91e9a1383d9986698f98
0x53f078d011110696a231f7686fc6d2fed85d94b2420ed3e8a7f3236a1bf95bcc
0x61e75680696a07acdf108655182585a3f0f52915ecc95990d438af285f50ac79
0x35807b977a2f6b8a85b0564907a661c8cf33efe18620988f3e5752bbe4bfd4ab
0x2dd0a24ba319f4429d064ff951c151d3ef7adb9f627415fe4260889796b63bba
0x0692e428d0af8637e8dca9c0163482659b6201a69175b10ef0ee5f77941edd11
0xedaf78183d562d212702b2d232a5b33ab4def35c3b4a36c66b56bc52c34793cd
0xf5caddfe32dc7f0ae8219fb85e44f70569caca6c11bee66df74575f32a270def
0xb7e6ecfe47129b23f8e2ce66f848b0b84916872955d1c25b95a2ef3b9853b593

Functions
Getter at block 21260962
ETH(view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
MAX_BUY_SELL_MCR_ETH_FRACTION(view returns (uint256)
500
MAX_MCR_RATIO(view returns (uint256)
40000
MCR_RATIO_DECIMALS(view returns (uint256)
4
getAssets(view returns (address[])
[0x6B175474E89094C44Da98b954EedeAC495271d0F]
 
getMCRRatio(view returns (uint256)
 
getPoolValueInEth(view returns (uint256)
master(view returns (address)
0x01bfd82675dbcc7762c84019ca518e701c0cd07e
mcr(view returns (address)
0xcafea2ad994d07bb95008ed5810068546c128895
minPoolEth(view returns (uint256)
0
nxmToken(view returns (address)
0xd7c49cee7e9188cca6ad8ff264c1da2e69d4cf3b
priceFeedOracle(view returns (address)
0xcafeae8bf47145bd573bfc436d1728cff224ca13
quotation(view returns (address)
0xcafea0d1e96416bb7929f5c5357ca4b837910705
swapController(view returns (address)
0x551d5500f613a4bec77ba8b834b5eed52ad5764f
tokenController(view returns (address)
0x5407381b6c251cfd498ccd4a1d877739cb7960b8
twapOracle(view returns (address)
0xcafea1c9f94e077df44d95c4a1ad5a5747a18b5c
Read-only
assetData(addressview returns (uint112 minAmountuint112 maxAmountuint32 lastSwapTimeuint256 maxSlippageRatio)
assets(uint256view returns (address)
calculateEthForNXM(uint256 nxmAmountuint256 currentTotalAssetValueuint256 mcrEthpure returns (uint256)
calculateMCRRatio(uint256 totalAssetValueuint256 mcrEthpure returns (uint256)
calculateNXMForEth(uint256 ethAmountuint256 currentTotalAssetValueuint256 mcrEthpure returns (uint256)
calculateTokenSpotPrice(uint256 totalAssetValueuint256 mcrEthpure returns (uint256 tokenPrice)
getAssetDetails(address _assetview returns (uint256 balanceuint112 minuint112 maxuint32 lastAssetSwapTimeuint256 maxSlippageRatio)
getEthForNXM(uint256 nxmAmountview returns (uint256 ethAmount)
getNXMForEth(uint256 ethAmountview returns (uint256)
getSwapQuote(uint256 tokenAmountInaddress fromTokenaddress toTokenview returns (uint256 tokenAmountOut)
getTokenPrice(address assetview returns (uint256 tokenPrice)
getWei(uint256 amountview returns (uint256 weiToPay)
State-modifying
addAsset(address _assetuint112 _minuint112 _maxuint256 _maxSlippageRatio
buyNXM(uint256 minTokensOutpayable 
changeDependentContractAddress(
changeMasterAddress(address masterAddress
makeCoverBegin(address smartCAddbytes4 coverCurruint256[] coverDetailsuint16 coverPerioduint8 _vbytes32 _rbytes32 _spayable 
makeCoverUsingCA(address smartCAddbytes4 coverCurruint256[] coverDetailsuint16 coverPerioduint8 _vbytes32 _rbytes32 _s
removeAsset(address _asset
sellNXM(uint256 tokenAmountuint256 minEthOut
sellNXMTokens(uint256 _amountreturns (bool success)
sendClaimPayout(address assetaddress payoutAddressuint256 amountreturns (bool success)
sendEther(payable 
setAssetDetails(address _assetuint112 _minuint112 _maxuint256 _maxSlippageRatio
swapAssetForETH(address fromTokenAddressuint256 amountInuint256 amountOutMin
swapETHForAsset(address toTokenAddressuint256 amountInuint256 amountOutMin
transferAsset(address assetaddress destinationuint256 amount
transferAssetFrom(address assetaddress fromuint256 amount
updateAddressParameters(bytes8 codeaddress value
updateUintParameters(bytes8 codeuint256 value
upgradeCapitalPool(address newPoolAddress
Events
NXMBought(address indexed memberuint256 ethInuint256 nxmOut
NXMSold(address indexed memberuint256 nxmInuint256 ethOut
Payout(address indexed toaddress indexed assetuint256 amount
Swapped(address indexed fromAssetaddress indexed toAssetuint256 amountInuint256 amountOut
Constructor
constructor(address[] _assetsuint112[] _minAmountsuint112[] _maxAmountsuint256[] _maxSlippageRatiosaddress _masteraddress _priceOracleaddress _twapOracleaddress _swapController
Fallback and receive
fallback(
Errors

This contract contains no error objects.