Erc20PiptSwap
Verified contract
Active on
Ethereum with 476 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x38e4…dca1
0x2660…699c
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
wNXM | ERC-20 | 0 | $78.54 |
$0 | |
UNI | ERC-20 | 0 | $13.01 |
$0 | |
0x9f8f…79a2 | ERC-20 | 0 | $1,819.84 |
$0 | |
AAVE | ERC-20 | 0 | $204.45 |
$0 | |
COMP | ERC-20 | 0 | $70.90 |
$0 | |
YFI | ERC-20 | 0 | $7,892.91 |
$0 | |
CVP | ERC-20 | 0 | $0.131841 |
$0 | |
SNX | ERC-20 | 0 | $2.50 |
$0 |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 11414094 | 4 years ago | | | 17 | 0.054546540 | |
| 11413818 | 4 years ago | | | 19 | 0.052742723 | |
| 11412474 | 4 years ago | | | 17 | 0.059146850 | |
| 11408746 | 4 years ago | | | 19 | 0.041968848 | |
| 11407464 | 4 years ago | | | 19 | 0.058831771 | |
| 11406531 | 4 years ago | | | 23 | 0.099964848 | |
| 11404030 | 4 years ago | | | 0 | 0.030546873 | |
| 11403460 | 4 years ago | | | 15 | 0.034249994 | |
| 11402624 | 4 years ago | | | 13 | 0.035616594 | |
| 11400810 | 4 years ago | | | 13 | 0.039071232 |
ABI
ABI objects
Getter at block 21307157
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)
0x26607ac599266b21d13c7acf7942c7701a8b699c
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)
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)
reApproveTokens(address) view returns (bool)
uniswapEthPairByTokenAddress(address) view returns (address)
uniswapFactoryAllowed(address) view returns (bool)
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)
setUniswapFactoryAllowed(address[] _factories, bool[] _allowed)
swapErc20ToPipt(address _swapToken, uint256 _swapAmount, uint256 _slippage)
swapEthToPipt(uint256 _slippage) payable
swapEthToPiptByPoolOut(uint256 _poolAmountOut) payable
swapPiptToErc20(address _swapToken, uint256 _poolAmountIn)
swapPiptToEth(uint256 _poolAmountIn)
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)
SetUniswapFactoryAllowed(address indexed factory, bool indexed allowed)
constructor(address _weth, address _cvp, address _pipt, address _feeManager)
receive()
This contract contains no error objects.