SwitchDln
Verified contract
Active on
Ethereum with 611 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
0x6b4a…6ccb
0x410f…280a
Balances ($0.00)
No balances found for "SwitchDln"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21254796 | 5 hours ago | | | 0.001 | 0.0047600885 | |
| 21252878 | 11 hours ago | | | 2.901 | 0.0066975470 | |
| 21251785 | 15 hours ago | | | 0.201 | 0.0074924317 | |
| 21251110 | 17 hours ago | | | 0.021 | 0.0056376581 | |
| 21251059 | 18 hours ago | | | 0.041 | 0.0054884782 | |
| 21250670 | 19 hours ago | | | 1.044 | 0.0026872624 | |
| 21250181 | 21 hours ago | | | 0.001 | 0.0044592292 | |
| 21249619 | a day ago | | | 0.041 | 0.0043788386 | |
| 21248372 | a day ago | | | 0.351 | 0.0045861647 | |
| 21246862 | a day ago | | | 0.001 | 0.0054876542 |
ABI
ABI objects
Getter at block 21256311
ETH_ADDRESS() view returns (address)
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
FEE_BASE() view returns (uint256)
10000
ZERO_ADDRESS() view returns (address)
0x0000000000000000000000000000000000000000
augustusSwapper() view returns (address)
0xdef171fe48cf0115b1d80b88dc8eab59176fee57
defaultSwingCut() view returns (uint256)
1500
dexCount() view returns (uint256)
3
dlnSource() view returns (address)
0xef4fb24ad0916217251f553c0596f8edc630eb66
feeCollector() view returns (address)
0x28b9089b5f2724c1898e7dbb04a96c8c177fe46d
maxPartnerFeeRate() view returns (uint256)
5000
otherToken() view returns (address)
0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
owner() view returns (address)
0xe2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7
paraswapProxy() view returns (address)
0x216b4b4ba9f3e719726886d34a177484278bfcae
pathCount() view returns (uint256)
2
pathSplit() view returns (uint256)
2
reward() view returns (address)
0xe2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7
switchEvent() view returns (address)
0x410f724847c92bc3cdacbcd4922f1d7833ec280a
switchView() view returns (address)
0x6b4aafe0a2c03b223b73a681b544b1617a976ccb
weth() view returns (address)
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Read-only
factories(uint256) view returns (address)
getExpectedReturn(address fromToken, address destToken, uint256 amount, uint256 parts) view returns (uint256 returnAmount, uint256[] distribution)
getFeeInfo(uint256 amount, address partner, uint256 partnerFeeRate) view returns (uint256 partnerFee, uint256 remainAmount)
getTokenBalance(address token) view returns (uint256 amount)
State-modifying
Events renounceOwnership()
setAugustusSwapper(address _augustusSwapper)
setDefaultSwingCut(uint256 _defaultSwingCut)
setDlnSource(address _dlnSource)
setFactories(address[] _factories)
setFeeCollector(address _feeCollector)
setMaxPartnerFeeRate(uint256 _maxPartnerFeeRate)
setOtherToken(address _otherToken)
setParaswapProxy(address _paraswapProxy)
setPathCount(uint256 _pathCount)
setPathSplit(uint256 _pathSplit)
setReward(address _reward)
setSwitchEvent(address _switchEvent)
setWETH(address _weth)
swap(struct SwitchSwapArgs swapArgs) payable returns (uint256 returnAmount)
swapByDln(struct SwitchDlnSwapArgsDln swapArgs) payable returns (bytes32)
swapWithParaswap(address fromToken, address destToken, uint256 amount, uint256 destAmount, address partner, uint256 partnerFeeRate, address recipient, bytes callData) payable
transferByDln(struct SwitchDlnTransferArgsDln transferArgs) payable returns (bytes32)
transferOwnership(address newOwner)
transferToken(address token, uint256 amount, address recipient)
AugustusSwapperSet(address augustusSwapper)
DefaultSwingCutSet(uint256 defaultSwingCut)
DlnSourceSet(address dlnSource)
FactoriesSet(address[] _factories)
FeeCollectorSet(address feeCollector)
MaxPartnerFeeRateSet(uint256 maxPartnerFeeRate)
OtherTokenSet(address _otherToken)
OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
ParaswapProxySet(address paraswapProxy)
PathCountSet(uint256 _pathCount)
PathSplitSet(uint256 _pathSplit)
RewardSet(address reward)
SwitchEventSet(address switchEvent)
WETHSet(address _weth)
constructor(address _weth, address _otherToken, uint256 _pathCount, uint256 _pathSplit, address[] _factories, address[] _switchViewAndEventAddresses, address _paraswapProxy, address _augustusSwapper, address _feeCollector, address _dlnSource)
fallback()
Forbidden()