Erc20PiptSwap

Verified contract

Active on Ethereum with 250 txns
Deployed by via 0x03a7d2b6 at 11551574
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
ERC-20
Value $0
ERC-20
Value $0
ERC-20
Value $0
0x0f00f92733d00c9d06a2d04f2e67a3d8a31ff44add384988a3410bb893f85151
0xee5850a30370236d3c507f4215afc88810576af36cda0b2652e78c8cb1d9abbe
0x35bccd71fda45550070bbd6bac214c8337928c20816debbf78cd1fd3bba2f0bf
0xb180eeac9f314971da7083b784bcd7446ccb8d21bfebc0a8f85cd2daad9aa7d3
0x9699be9182797ca999e23f2b91faf5f3dee5b7c858ab8970d80455b488e708e1
0xf807fba4a6e2409018641ee478ad502d3678872fc45aabadb85bb2d9dc2b790f
0xfeb382f8b988314229fca5f81dc07cfc770f44c663a7a94fe3e833bdd9d32df8
0xec36d4f1773e787fd896b21d018d5668a391c8d75cf8672d70e852a5f10bd252
0xa35b751eaf61aa1b632f1550b74ef2366e5787549b7efe1bc537164931bdac7f
0xa353911e160327031596085625335a1e113f3496638c6d01bdda85fe609c76f5

Functions
Getter at block 21201933
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[])
[]
owner(view returns (address)
0xb258302c3f209491d604165549079680708581cc
pipt(view returns (address)
0xb4bebd34f6daafd808f73de0d10235a92fbb6c3d
weth(view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
calcErc20Fee(address _swapTokenuint256 _swapAmountview returns (uint256 erc20Feeuint256 erc20AfterFeeuint256 ethFeeuint256 ethAfterFee)
calcEthFee(uint256 ethAmountview 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)
getAmountOutForUniswap(address _tokenPairuint256 _swapAmountbool _isEthOutview returns (uint256 ethAmountbool isInverse)
getAmountOutForUniswapValue(address _tokenPairuint256 _swapAmountbool _isEthOutview returns (uint256 ethAmount)
reApproveTokens(addressview returns (bool)
uniswapEthPairByTokenAddress(addressview returns (address)
State-modifying
convertOddToCvpAndSendToPayout(address[] oddTokens
fetchUnswapPairsFromFactory(address _factoryaddress[] _tokens
renounceOwnership(
setDefaultSlippage(uint256 _defaultSlippage
setFees(uint256[] _feeLevelsuint256[] _feeAmountsaddress _feePayoutaddress _feeManager
setTokensSettings(address[] _tokensaddress[] _pairsbool[] _reapprove
swapErc20ToPipt(address _swapTokenuint256 _swapAmountuint256 _slippagereturns (uint256 poolAmountOut)
swapEthToPipt(uint256 _slippagepayable returns (uint256 poolAmountOutAfterFeeuint256 oddEth)
swapEthToPiptByPoolOut(uint256 _poolAmountOutpayable returns (uint256 poolAmountOutAfterFeeuint256 oddEth)
swapPiptToErc20(address _swapTokenuint256 _poolAmountInreturns (uint256 erc20Out)
swapPiptToEth(uint256 _poolAmountInreturns (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
SetTokenSetting(address indexed tokenbool indexed reApproveaddress indexed uniswapPair
Constructor
constructor(address _wethaddress _cvpaddress _piptaddress _feeManager
Fallback and receive
receive(
Errors

This contract contains no error objects.