Erc20PiptSwap

Verified contract

Active on Ethereum with 544 txns
Deployed by via 0xb8ded5e5 at 11707172
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
0x8d3dc6c2eb376a81ee52c39885bff060afca9fb1806919159283d7b699bc094b
0xe80b79f6c43f24ee3ab7ecd64c2af86cbe0e5228da00f640a59af6a644aee56a
0x88340a30a8e0b0c5f0304817954a2df3269ade03e6bdc3fa428d917812ee466a
0x5b6c211c77e46c108f1e64904fe825b9c3121e39c5ca1f5f2365dff45733f805
0xc1bc515fa1d3f4df9885bbd0ccbe7177e9fbd087d8ae90469a95c5e54d9ec5ad
0x63b3891bdaf1a42bd6065a8d5a3ca19b95af3060bf5bfd7077b24e417cdf4f96
0xc1121ba9d2a0c17a9c3711a12de8bea74928971122939bb69b8f89d4d4c3a005
0x788755d62e528873c27f344c5cdd20da52b65cbb12ba3c366c17e00452a39dfe
0x25e89cf34358a825e1757914315500bab4b8452248007593b7895e0b860262df
0x6884a2f638911a90ec957bbd4d9004cbc653e04598e8846bcd388d0e2f1300b5

Functions
Getter at block 21311619
cvp(view returns (address)
0x38e4adb44ef08f22f5b5b76a8f0c2d0dcbe7dca1
defaultSlippage(view returns (uint256)
20000000000000000
feeManager(view returns (address)
0xb258302c3f209491d604165549079680708581cc
feePayout(view returns (address)
0x0000000000000000000000000000000000000000
getFeeAmounts(view returns (uint256[])
[]
getFeeLevels(view returns (uint256[])
[]
 
getPiptTokens(view returns (address[])
owner(view returns (address)
0xb258302c3f209491d604165549079680708581cc
pipt(view returns (address)
0xfa2562da1bba7b954f26c74725df51fb62646313
piptWrapper(view returns (address)
0x43fa8ef8e334720b80367cf94e438cf90c562abe
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
calcErc20Fee(address _swapTokenuint256 _swapAmountview returns (uint256 erc20Feeuint256 erc20AfterFeeuint256 ethFeeuint256 ethAfterFee)
calcEthFee(uint256 ethAmountview returns (uint256 ethFeeuint256 ethAfterFee)
calcEthFee(uint256 ethAmountuint256 wrapperFeeview returns (uint256 ethFeeuint256 ethAfterFee)
calcNeedErc20ToPoolOut(address _swapTokenuint256 _poolAmountOutuint256 _slippageview returns (uint256)
calcNeedEthToPoolOut(uint256 _poolAmountOutuint256 _slippageview returns (uint256)
calcSwapErc20ToPiptInputs(address _swapTokenuint256 _swapAmountaddress[] _tokensuint256 _slippagebool _withFeeview returns (uint256[] tokensInPiptuint256[] ethInUniswapuint256 poolOut)
calcSwapEthToPiptInputs(uint256 _ethValueaddress[] _tokensuint256 _slippageview returns (uint256[] tokensInPiptuint256[] ethInUniswapuint256 poolOut)
calcSwapPiptToErc20Inputs(address _swapTokenuint256 _poolAmountInaddress[] _tokensbool _withFeeview returns (uint256[] tokensOutPiptuint256[] ethOutUniswapuint256 totalErc20Outuint256 poolAmountFee)
calcSwapPiptToEthInputs(uint256 _poolAmountInaddress[] _tokensview returns (uint256[] tokensOutPiptuint256[] ethOutUniswapuint256 totalEthOutuint256 poolAmountFee)
feeAmounts(uint256view returns (uint256)
feeLevels(uint256view returns (uint256)
getAmountInForUniswap(address _tokenPairuint256 _swapAmountbool _isEthInview returns (uint256 amountInbool isInverse)
getAmountInForUniswapValue(address _tokenPairuint256 _swapAmountbool _isEthInview returns (uint256 amountIn)
getAmountOutForUniswap(address _tokenPairuint256 _swapAmountbool _isEthOutview returns (uint256 amountOutbool isInverse)
getAmountOutForUniswapValue(address _tokenPairuint256 _swapAmountbool _isEthOutview returns (uint256 ethAmount)
getPiptTokenBalance(address _tokenview returns (uint256)
getWrapFee(address[] tokensview returns (uint256 wrapperFee)
reApproveTokens(addressview returns (bool)
uniswapEthPairByTokenAddress(addressview returns (address)
uniswapEthPairToken0(addressview returns (address)
State-modifying
convertOddToCvpAndSendToPayout(address[] oddTokens
fetchUnswapPairsFromFactory(address _factoryaddress[] _tokens
renounceOwnership(
setDefaultSlippage(uint256 _defaultSlippage
setFees(uint256[] _feeLevelsuint256[] _feeAmountsaddress _feePayoutaddress _feeManager
setPiptWrapper(address _piptWrapper
setTokensSettings(address[] _tokensaddress[] _pairsbool[] _reapprove
swapErc20ToPipt(address _swapTokenuint256 _swapAmountuint256 _slippagepayable returns (uint256 poolAmountOut)
swapEthToPipt(uint256 _slippagepayable returns (uint256 poolAmountOutAfterFeeuint256 oddEth)
swapEthToPiptByPoolOut(uint256 _poolAmountOutpayable returns (uint256 poolAmountOutAfterFeeuint256 oddEth)
swapPiptToErc20(address _swapTokenuint256 _poolAmountInpayable returns (uint256 erc20Out)
swapPiptToEth(uint256 _poolAmountInpayable returns (uint256 ethOutAmount)
transferOwnership(address newOwner
Events
Erc20ToPiptSwap(address indexed useraddress indexed swapTokenuint256 erc20InAmountuint256 ethInAmountuint256 poolOutAmount
EthToPiptSwap(address indexed useruint256 ethInAmountuint256 ethSwapFeeuint256 poolOutAmountuint256 poolCommunityFee
OddEth(address indexed useruint256 amount
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
PayoutCVP(address indexed receiveruint256 wethAmountuint256 cvpAmount
PiptToErc20Swap(address indexed useraddress indexed swapTokenuint256 poolInAmountuint256 ethOutAmountuint256 erc20OutAmount
PiptToEthSwap(address indexed useruint256 poolInAmountuint256 poolCommunityFeeuint256 ethOutAmountuint256 ethSwapFee
SetDefaultSlippage(uint256 newDefaultSlippage
SetFees(address indexed senderuint256[] newFeeLevelsuint256[] newFeeAmountsaddress indexed feePayoutaddress indexed feeManager
SetPiptWrapper(address _piptWrapper
SetTokenSetting(address indexed tokenbool indexed reApproveaddress indexed uniswapPair
Constructor
constructor(address _wethaddress _cvpaddress _piptaddress _piptWrapperaddress _feeManager
Fallback and receive
receive(
Errors

This contract contains no error objects.