Erc20PiptSwap
Verified contract
Active on
Ethereum with 250 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x38e4…dca1
0xb4be…6c3d
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
YFI | ERC-20 | 0 | $6,435.69 |
$0 | |
KP3R | ERC-20 | 0 | $26.87 |
$0 | |
CREAM | ERC-20 | 0 | $17.47 |
$0 | |
CVP | ERC-20 | 0 | $0.134857 |
$0 | |
PICKLE | ERC-20 | 0 | $0.880913 |
$0 | |
SUSHI | ERC-20 | 0 | $0.780315 |
$0 | |
AKRO | ERC-20 | 0 | $0.004413 |
$0 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 13789625 | 3 years ago | | | 0 | 0.040787946 | |
| 12984257 | 3 years ago | | | 0 | 0.024273891 | |
| 12948121 | 3 years ago | | | 0 | 0.054548050 | |
| 12948117 | 3 years ago | | | 0 | 0.053245410 | |
| 12948107 | 3 years ago | | | 0 | 0.054548050 | |
| 12930930 | 3 years ago | | | 0 | 0.024447480 | |
| 12915730 | 3 years ago | | | 0 | 0.039344756 | |
| 12834275 | 3 years ago | | | 0 | 0.031235724 | |
| 12834257 | 3 years ago | | | 0 | 0.033197120 | |
| 12823739 | 3 years ago | | | 0 | 0.021631792 |
ABI
ABI objects
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 _swapToken, uint256 _swapAmount) view returns (uint256 erc20Fee, uint256 erc20AfterFee, uint256 ethFee, uint256 ethAfterFee)
calcEthFee(uint256 ethAmount) view returns (uint256 ethFee, uint256 ethAfterFee)
calcNeedErc20ToPoolOut(address _swapToken, uint256 _poolAmountOut, uint256 _slippage) view returns (uint256)
calcNeedEthToPoolOut(uint256 _poolAmountOut, uint256 _slippage) view returns (uint256)
calcSwapErc20ToPiptInputs(address _swapToken, uint256 _swapAmount, address[] _tokens, uint256 _slippage, bool _withFee) view returns (uint256[] tokensInPipt, uint256[] ethInUniswap, uint256 poolOut)
calcSwapEthToPiptInputs(uint256 _ethValue, address[] _tokens, uint256 _slippage) view returns (uint256[] tokensInPipt, uint256[] ethInUniswap, uint256 poolOut)
calcSwapPiptToErc20Inputs(address _swapToken, uint256 _poolAmountIn, address[] _tokens, bool _withFee) view returns (uint256[] tokensOutPipt, uint256[] ethOutUniswap, uint256 totalErc20Out, uint256 poolAmountFee)
calcSwapPiptToEthInputs(uint256 _poolAmountIn, address[] _tokens) view returns (uint256[] tokensOutPipt, uint256[] ethOutUniswap, uint256 totalEthOut, uint256 poolAmountFee)
feeAmounts(uint256) view returns (uint256)
feeLevels(uint256) view returns (uint256)
getAmountOutForUniswap(address _tokenPair, uint256 _swapAmount, bool _isEthOut) view returns (uint256 ethAmount, bool isInverse)
getAmountOutForUniswapValue(address _tokenPair, uint256 _swapAmount, bool _isEthOut) view returns (uint256 ethAmount)
reApproveTokens(address) view returns (bool)
uniswapEthPairByTokenAddress(address) view returns (address)
State-modifying
Events convertOddToCvpAndSendToPayout(address[] oddTokens)
fetchUnswapPairsFromFactory(address _factory, address[] _tokens)
renounceOwnership()
setDefaultSlippage(uint256 _defaultSlippage)
setFees(uint256[] _feeLevels, uint256[] _feeAmounts, address _feePayout, address _feeManager)
setTokensSettings(address[] _tokens, address[] _pairs, bool[] _reapprove)
swapErc20ToPipt(address _swapToken, uint256 _swapAmount, uint256 _slippage) returns (uint256 poolAmountOut)
swapEthToPipt(uint256 _slippage) payable returns (uint256 poolAmountOutAfterFee, uint256 oddEth)
swapEthToPiptByPoolOut(uint256 _poolAmountOut) payable returns (uint256 poolAmountOutAfterFee, uint256 oddEth)
swapPiptToErc20(address _swapToken, uint256 _poolAmountIn) returns (uint256 erc20Out)
swapPiptToEth(uint256 _poolAmountIn) returns (uint256 ethOutAmount)
transferOwnership(address newOwner)
Erc20ToPiptSwap(address indexed user, address indexed swapToken, uint256 erc20InAmount, uint256 ethInAmount, uint256 poolOutAmount)
EthToPiptSwap(address indexed user, uint256 ethInAmount, uint256 ethSwapFee, uint256 poolOutAmount, uint256 poolCommunityFee)
OddEth(address indexed user, uint256 amount)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
PayoutCVP(address indexed receiver, uint256 wethAmount, uint256 cvpAmount)
PiptToErc20Swap(address indexed user, address indexed swapToken, uint256 poolInAmount, uint256 ethOutAmount, uint256 erc20OutAmount)
PiptToEthSwap(address indexed user, uint256 poolInAmount, uint256 poolCommunityFee, uint256 ethOutAmount, uint256 ethSwapFee)
SetDefaultSlippage(uint256 newDefaultSlippage)
SetFees(address indexed sender, uint256[] newFeeLevels, uint256[] newFeeAmounts, address indexed feePayout, address indexed feeManager)
SetTokenSetting(address indexed token, bool indexed reApprove, address indexed uniswapPair)
constructor(address _weth, address _cvp, address _pipt, address _feeManager)
receive()
This contract contains no error objects.