SwitchDln

Verified contract

Active on Ethereum with 611 txns
Deployed by via 0xae8b34ef at 20303945
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "SwitchDln"

0xeefe981fd958d1ccf5c089c812736e400c2424e7d3265a9489c6b5ec1ea50011
0xe8db9da242a0a27d749c2dfe4c1a5cb623623f13417265fc3f14fc496a50023b
0xff041a74280b17ad7b84c101e65076235c530516f5986ccb0e1f7383f9720d09
0x02ec0f830c61b54054194e7f69f074405ec9a76047c1ef2fa6937d3c4e41da1e
0xd6b98099f23724b92b3ed6132739405ba6e60802b197fc60e0f2fb06345d1064
0xccf8b6b46184c47cd24133c0c71922d2ce4d7d6865051c4554ec7e1b5cb1876e
0x6189bba006ecb1de767631ecc95cb0ecf010c0c5a9535716bbbf6cba8127374c
0x0cab110efdad75ddcf4877530af70c3ba45e09bd896f3a30a81546d712e6ad71
0xaa41ffd5801cdbdea54fa059ba7cfbf2e84ab738f6a5529e3b6128f76c20d970
0xa1c8f7e12702a9aae2c0e865fb380ee704a2f32ced0f0dc37789e3160f05f108

Functions
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(uint256view returns (address)
getExpectedReturn(address fromTokenaddress destTokenuint256 amountuint256 partsview returns (uint256 returnAmountuint256[] distribution)
getFeeInfo(uint256 amountaddress partneruint256 partnerFeeRateview returns (uint256 partnerFeeuint256 remainAmount)
getTokenBalance(address tokenview returns (uint256 amount)
State-modifying
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 swapArgspayable returns (uint256 returnAmount)
swapByDln(struct SwitchDlnSwapArgsDln swapArgspayable returns (bytes32)
swapWithParaswap(address fromTokenaddress destTokenuint256 amountuint256 destAmountaddress partneruint256 partnerFeeRateaddress recipientbytes callDatapayable 
transferByDln(struct SwitchDlnTransferArgsDln transferArgspayable returns (bytes32)
transferOwnership(address newOwner
transferToken(address tokenuint256 amountaddress recipient
Events
AugustusSwapperSet(address augustusSwapper
DefaultSwingCutSet(uint256 defaultSwingCut
DlnSourceSet(address dlnSource
FactoriesSet(address[] _factories
FeeCollectorSet(address feeCollector
MaxPartnerFeeRateSet(uint256 maxPartnerFeeRate
OtherTokenSet(address _otherToken
OwnershipTransferred(address indexed previousOwneraddress indexed newOwner
ParaswapProxySet(address paraswapProxy
PathCountSet(uint256 _pathCount
PathSplitSet(uint256 _pathSplit
RewardSet(address reward
SwitchEventSet(address switchEvent
WETHSet(address _weth
Constructor
constructor(address _wethaddress _otherTokenuint256 _pathCountuint256 _pathSplitaddress[] _factoriesaddress[] _switchViewAndEventAddressesaddress _paraswapProxyaddress _augustusSwapperaddress _feeCollectoraddress _dlnSource
Fallback and receive
fallback(
Errors
Forbidden(