SwapContract

Verified contract

Active on Ethereum with 4,102 txns
Deployed by via 0x168dad71 at 11753535
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
--
ERC-20
--
ERC-20
--
0x63ec8257d7321a0f20e6bccdfea908b37a7f35f8b77c13150e3e710449fd56d8
0x5fc05b91e66a87a9bd1cc426ca69703e4963e6f76f63daf0a91a493d0a33bac2
0x1246fc2713cf43da4462307d87b616ba610130368a0c882cba3a65b731e63124
0x359c5130498f8fb546c9eaa0b002159ed93641a79feb42880879f4b8e81716c1
0xdcd5182933b0eaccf61f0b75d403440eeda74a340d17849c8dde85b29ead6aee
0x02abb62f04ea3ce76d874dc6eb3ef7c2e4876a48efe0790a2666191b33126119
0x79eea2e3c9518076be8b825c77a8c410e4ab8cda51111d36fb22ce83c5b6d3fc
0xe6e35bc4bdbec76652e588e0d3b2a34698d80716c067e0e7ee0744b69c403415
0x52474ce79d6935b2b792a35956ce8b67e9f69e483bd235d747447df6be0b8a3b
0x2ae8d51b61dee31a674ba8476c49ac6de80e41c9b9c87c07efbf7cdab018e70d

Functions
Getter at block 21263672
WBTC_ADDR(view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
churnedInCount(view returns (uint8)
33
depositFeesBPS(view returns (uint8)
50
feesLPTokensForNode(view returns (uint256)
0
 
getActiveNodes(view returns (bytes32[])
getCurrentPriceLP(view returns (uint256 nowPrice)
111723669
initialExchangeRate(view returns (uint256)
100000000
lockedLPTokensForNode(view returns (uint256)
140796
lpToken(view returns (address)
0x22883a3db06737ece21f479a8009b8b9f22b6cc9
nodeRewardsRatio(view returns (uint8)
66
owner(view returns (address)
0x37017e77d1e015b0336baa957e2eba729c1c4920
tssThreshold(view returns (uint8)
31
withdrawalFeeBPS(view returns (uint8)
20
Read-only
getDepositFeeRate(address _tokenuint256 _amountOfFloatview returns (uint256 depositFeeRate)
getFloatReserve(address _tokenAaddress _tokenBview returns (uint256 reserveAuint256 reserveB)
isTxUsed(bytes32 _txidview returns (bool)
whitelist(addressview returns (bool)
State-modifying
churn(address _newOwnerbytes32[] _rewardAddressAndAmountsbool[] _isRemoveduint8 _churnedInCountuint8 _tssThresholduint8 _nodeRewardsRatiouint8 _withdrawalFeeBPSreturns (bool)
collectSwapFeesForBTC(address _destTokenuint256 _incomingAmountuint256 _minerFeeuint256 _rewardsAmountreturns (bool)
distributeNodeRewards(returns (bool)
multiTransferERC20TightlyPacked(address _destTokenbytes32[] _addressesAndAmountsuint256 _totalSwappeduint256 _rewardsAmountbytes32[] _redeemedFloatTxIdsreturns (bool)
recordIncomingFloat(address _tokenbytes32 _addressesAndAmountOfFloatbool _zerofeebytes32 _txidreturns (bool)
recordOutcomingFloat(address _tokenbytes32 _addressesAndAmountOfLPtokenuint256 _minerFeebytes32 _txidreturns (bool)
recordUTXOSweepMinerFee(uint256 _minerFeebytes32 _txidreturns (bool)
renounceOwnership(
singleTransferERC20(address _destTokenaddress _touint256 _amountuint256 _totalSwappeduint256 _rewardsAmountbytes32[] _redeemedFloatTxIdsreturns (bool)
transferOwnership(address newOwner
Events
BurnLPTokensForFloat(address tokenuint256 amountOfLPuint256 amountOfFloatuint256 currentPriceLPuint256 withdrawalbytes32 txid
IssueLPTokensForFloat(address touint256 amountOfFloatuint256 amountOfLPuint256 currentPriceLPuint256 depositFeesbytes32 txid
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
RewardsCollection(address feesTokenuint256 rewardsuint256 amountLPTokensForNodeuint256 currentPriceLP
Swap(address fromaddress touint256 amount
Constructor
constructor(address _lpTokenaddress _wbtcuint256 _existingBTCFloat
Fallback and receive
fallback(
Errors

This contract contains no error objects.