SwapContract

Verified contract

Active on Ethereum with 3,190 txns
Deployed by via 0x15d962dd at 14482521
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $30.49
ERC-20
--
ERC-20
--
0xaa7aac556d2c441f23301135f711d04498f860072af36077f6edf0801cba3781
0x668d213bcbbc71989ded6affe144abce3aa20ec520f4fc1abe8eeb756a6f06a3
0xa33a38ccdd8dcdf351ad541cb420c14f87631f1493a46752ef6c85bcb4575246
0xcf3d366cfae2d24c5afdff7d96e0fdd0071bdbd17724f2f2e4458b98b9fa9d86
0x962acafbc927573c8f5ef53cf3ff79e83859f7558f8dbac30e20b646a6af94da
0xa0f35cad7cbb514aeaa794eda9fb7b3a73e2fb904d78a2c9b56ba5293fed461d
0x42e2ac0ea9e8530ebb0a3a931c7aa397ed5792066a4111d278037f64c2f42219
0x6adc8a0d8c43be80c5841fa18958572b457957c12c6c39392350374dfbf1c60a
0xf64fc32702c6c34c6df088fb7d08aa72f459d024e93a50d74fd3411be6c04a8d
0x92248fb6e1c3e1f772faf87c1a3c7198eed3063db85406c9d03f0b9f6b21938b

Functions
Getter at block 21262816
BTCT_ADDR(view returns (address)
0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
activeNodeCount(view returns (uint8)
17
churnedInCount(view returns (uint8)
17
 
getActiveNodes(view returns (address[])
getCurrentPriceLP(view returns (uint256 nowPrice)
105443079
ip(view returns (address)
0x9b50fe186a8881741ef2aef2fceb9f17df82dc7e
limitBTCForSPFlow2(view returns (uint256)
1303924
lpToken(view returns (address)
0x44a62c7121a64691b61aef669f21c628258e7d52
oldestActiveIndex(view returns (uint256)
13
owner(view returns (address)
0x0ac2601e8ff080725e8dbc6435c4c19b31bc43cd
paraswapAddress(view returns (address)
0xdef171fe48cf0115b1d80b88dc8eab59176fee57
sbBTCPool(view returns (address)
0x2f927257dc6783f5ae0644ee729242533699b2c1
 
spGetPendingSwaps(view returns (struct SwapContractspPendingTx[] data)
sw(view returns (address)
0x2a3040d8b2a4ea8d3c36c04ae2affb9c5a8e856d
swapCount(view returns (uint256)
18
tssThreshold(view returns (uint8)
8
wETH(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
balanceOf(address _tokenaddress _userview returns (uint256)
getFloatReserve(address _tokenAaddress _tokenBview returns (uint256 reserveAuint256 reserveB)
isNodeStake(address _userview returns (bool)
isTxUsed(bytes32 _txidview returns (bool)
spPendingTXs(uint256view returns (bytes32 SwapIDstring DestAddraddress RefundAddruint256 AmountWBTCuint256 Timestamp)
tokens(addressaddressview returns (uint256)
whitelist(addressview returns (bool)
State-modifying
churn(address _newOwneraddress[] _nodesbool[] _isRemoveduint8 _churnedInCountuint8 _tssThresholdreturns (bool)
collectSwapFeesForBTC(uint256 _incomingAmountuint256 _minerFeeuint256 _rewardsAmountaddress[] _spendersuint256[] _swapAmountsbool _isUpdatelimitBTCForSPFlow2returns (bool)
multiRecordSkyPoolsTX(bytes32[] _addressesAndAmountsuint256 _totalSwappeduint256 _rewardsAmountbytes32[] _usedTxIdsreturns (bool)
multiTransferERC20TightlyPacked(address _destTokenbytes32[] _addressesAndAmountsuint256 _totalSwappeduint256 _rewardsAmountbytes32[] _redeemedFloatTxIdsreturns (bool)
recordIncomingFloat(address _tokenbytes32 _addressesAndAmountOfFloatbytes32 _txidreturns (bool)
recordOutcomingFloat(address _tokenbytes32 _addressesAndAmountOfLPtokenuint256 _minerFeebytes32 _txidreturns (bool)
recordSkyPoolsTX(address _touint256 _totalSwappeduint256 _rewardsAmountbytes32[] _usedTxIdsreturns (bool)
recordUTXOSweepMinerFee(uint256 _minerFeebytes32 _txidreturns (bool)
redeemERC20Token(address _tokenuint256 _amount
redeemEther(uint256 _amount
renounceOwnership(
singleTransferERC20(address _destTokenaddress _touint256 _amountuint256 _totalSwappeduint256 _rewardsAmountbytes32[] _redeemedFloatTxIdsreturns (bool)
spCleanUpOldTXs(
spDeposit(address _tokenuint256 _amountpayable 
spFlow1SimpleSwap(struct UtilsSimpleData _data
spFlow1Uniswap(bool _forkaddress _factorybytes32 _initCodeuint256 _amountInuint256 _amountOutMinaddress[] _pathreturns (uint256 receivedAmount)
spFlow2SimpleSwap(string _destinationAddressForBTCstruct UtilsSimpleData _datareturns (uint256 receivedAmount)
spFlow2Uniswap(string _destinationAddressForBTCbool _forkaddress _factorybytes32 _initCodeuint256 _amountInuint256 _amountOutMinaddress[] _pathreturns (uint256 receivedAmount)
transferOwnership(address newOwner
Events
BurnLPTokensForFloat(address tokenuint256 amountOfLPuint256 amountOfFloatuint256 currentPriceLPuint256 withdrawalbytes32 txid
Deposit(address tokenaddress useruint256 amountuint256 balanceuint256 Timestamp
DistributeNodeRewards(uint256 rewardLPTsForNodes
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
SwapTokensToBTC(bytes32 SwapIDstring DestAddraddress RefundAddruint256 AmountWBTCuint256 Timestamp
Withdraw(address tokenaddress useruint256 amountuint256 balanceuint256 Timestamp
Constructor
constructor(address _lpTokenaddress _btctaddress _wETHaddress _sbBTCPooladdress _paramsaddress _swapRewardsuint256 _existingBTCFloat
Fallback and receive
receive(
Errors

This contract contains no error objects.