Spend less on fees, more on crypto. Buy crypto easily with MoonPay Balance. 20M+ users trust MoonPay worldwide.
Don’t invest unless you’re prepared to lose all the money you invest.
3000+ Slots, 20+ Cryptos, 75K Raffle, Sports Promos - World's largest Crypto Casino & Sportsbook - Provably Fair!
Play in crypto to make deposits and withdrawals easy! Register and get a free daily shot at a 100 000 $ jackpot.
Monthly Wagering Contest - $500,000+ rewards. Provably Fair, Low House Edge and best VIP Program!
Daily free Spin 50000 Matic ,760% Deposit Bonus, 20%Rakeback, And Get 1000000 Matic free bonus on BC.Game
Deposit BONUS 300% and Cashbacks. without verification!
Holidays are coming soon! Start betting on 1xBit and get a secret gift from Santa!
Overview
POL Balance
POL Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (>100)15,000 WPOL [ POL-MAT.COM ]ERC-20: ! (WPOL [...)15,000 WLD [WWW.GET-WLD.ORG] Visit to claim rewardERC-20: ! (WLD [W...)75,000 USD0 [ www.usd.gift ] Claim RewardERC-20: ! (USD0 [...)15,000 WETH [ WWW.3ETH.NET } Visit to claim rewardERC-20: ! (WETH [...)15,000 WETH [ 3ETH.NET ] Claim RewardERC-20: ! (WETH [...)14,000 $ YOUR ETHENA ON: ethen-eth.com .ERC-20: ! ($ YOUR...)15,000 WPOL [ POL-MAT.COM ]ERC-20: ! (WPOL [...)900,000,000 POL-MAT.COM - Visit to claim RewardERC-20: ! (USD) (POL-MA...)43,767 AAVE [ACCESS AAVE.ASIA]ERC-20: ! AAVE.as... (AAVE [...)900,000,000 3 eth at www.ethfi.pwERC-20: ! ETHFI (3 eth ...)153,250 Fyde Points - www.fyde.pwERC-20: ! FYDE (Fyde P...)1,000,000,000 Fyde Points - www.fyde.pwERC-20: ! FYDE (Fyde P...)15,000 Access [ POL-MAT.COM ]ERC-20: ! MATIC (Access...)9,000,000,000 pol-mat.com -Visit to claim Reward BonusERC-20: ! POL-MAT... (pol-ma...)345,870 ACCESS [TURBO-AI.APP] TO RECEIVE YOUR COINSERC-20: ! TURBO [... (ACCESS...)15,000 Visit GET-WLD.ORG to Claim RewardERC-20: ! Worldco... (Visit ...)13,300 $ ACCESS 0N: ethena-ethens.comERC-20: !ETHNA ($ ACCE...)14,400 $ ACCESS 0N: ethena-ethens.comERC-20: !ETHNA ($ ACCE...)12,500 $ ACCESS 0N: ethena-ethens.comERC-20: !ETHNA ($ ACCE...)53,086 $ MetaWin.farmERC-20: !MetaWin.... ($ Meta...)10,000 10000 ZKsync airdrop claim [ zksync.lat ]ERC-20: !ZKsync (10000 ...)9,000,000,000 ethfi.pw - Visit to claim bonus reward.ERC-20: $ ETHFI.p... (ethfi....)0.00011 AloERC-20: Alo Netwo... (Alo)15,000 appsei.icuERC-20: appsei.ic... (appsei...)1 BTCERC-20: Bitcoin (BTC)1 BTCERC-20: Bitcoin (BTC)1 BTCERC-20: Bitcoin (BTC)1 Some very long token symbol ;ERC-20: Bitcoin / (Some v...)1 Some very long token symbol \\ERC-20: Bitcoin ? (Some v...)5,000,000 BitronERC-20: Bitron (Bitron)1 Debridge Acces https://t.ly/ethersERC-20: Debridge ... (Debrid...)1 https://t.ly/ethersERC-20: deBridge ... (https:...)1 https://t.ly/ethersERC-20: deBridge ... (https:...)1 https://t.ly/ethersERC-20: deBridge ... (https:...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 deBridge Airdrop https://t.ly/ethersERC-20: deBridge ... (deBrid...)1 Debridge Voucher https://t.ly/ethersERC-20: Debridge ... (Debrid...)0.00000001 deUnibox Airdrop https://t.ly/UNIBOXERC-20: deUnibox ... (deUnib...)17,000 $ YOUR DOGS ON:dogs-tokens.com >ERC-20: DOGS ($ YOUR...)10,000 $ERC-20: E T H - B... ($)13,000 $ YOUR ETHENA ON:ethen-eth.com :ERC-20: ETHENA ($ YOUR...)80,000 nft.bitconnect666.comERC-20: Free NFT ... (nft.bi...)80,000 https://pepe-erc.vipERC-20: Free Pepe... (https:...)0.99000116 G⁷ERC-20: Game7 (G⁷)3,763 EigenLayer airdrop on platform ( Gemradar.site )ERC-20: Gemradar.... (EigenL...)100 Some very long token symbol www.ankr.com .ERC-20: HELLO . (Some v...)10.8 IDAERC-20: IdaMurni (IDA)0.00000001 Join our X https://t.ly/CATSPACEERC-20: Join our ... (Join o...)17,500 bridge lido on [lid-ethen.com] :ERC-20: LID ETH (bridge...)14,000 $ YOUR LIDO ON:lid-ethen.com .ERC-20: LIDO ($ YOUR...)15,711.1 [cutt.ly/MAGA-2024]ERC-20: MAGA-2024 ([cutt....)5,400 5400$ claim mantra-ethen.topERC-20: MANTRA (5400$ ...)500,000 pBUFFERC-20: pBuffalo ... (pBUFF)1 Swap $pufETH at https://puffereth.xyzERC-20: PufETH (Swap $...)1 REOTERC-20: RAINFORES... (REOT)188,888 rareeth.proERC-20: rareeth.p... (rareet...)1 Holders Eligible: renzpro.xyzERC-20: Renzo Air... (Holder...)1 Holders Eligible: therenzo.xyzERC-20: Renzo Air... (Holder...)50 SCTERC-20: sanitize-... (SCT)23.9781932 SIMSimba Empire1 Some very long token symbol *ERC-20: Some very... (Some v...)1 Some very long token symbol /ERC-20: Some very... (Some v...)1 Some very long token symbol }ERC-20: Some very... (Some v...)1 Some very long token symbolERC-20: Some very... (Some v...)1 Some very long token symbolERC-20: Some very... (Some v...)1.0102 STGTERC-20: STG MINTS... (STGT)15,000ERC20 ***10,000 vAIX AIXBOXES.COM Limited BoxERC-20: vAIX (vAIX A...)80,000 Pepe-erc.vipERC-20: You Earne... (Pepe-e...)900,000,000 TokenERC-20 TOKEN*[Suspicious]7,864 TokenERC-20 TOKEN*[Suspicious]714,707 TokenERC-20 TOKEN*[Suspicious]745,900 TokenERC-20 TOKEN*[Suspicious]745,000 TokenERC-20 TOKEN*[Suspicious]7,800 TokenERC-20 TOKEN*[Suspicious]8,726 TokenERC-20 TOKEN*[Suspicious]9,860 TokenERC-20 TOKEN*[Suspicious]9,543 TokenERC-20 TOKEN*[Suspicious]7,680 TokenERC-20 TOKEN*[Suspicious]9,543 TokenERC-20 TOKEN*[Suspicious]110,000 TokenERC-20 TOKEN*[Suspicious]8,750 TokenERC-20 TOKEN*[Suspicious]8,750 TokenERC-20 TOKEN*[Suspicious]7,800 TokenERC-20 TOKEN*[Suspicious]900,000,000 TokenERC-20 TOKEN*[Suspicious]9,000,000,000 TokenERC-20 TOKEN*[Suspicious]900,000,000 TokenERC-20 TOKEN*[Suspicious]3,680 TokenERC-20 TOKEN*[Suspicious]900,000,000 TokenERC-20 TOKEN*[Suspicious]90,000,000,000 TokenERC-20 TOKEN*[Suspicious]989 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]1 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (>100)drop-coins.xyz$100 GET REWARDERC-115510 Collection10 Collectionx2ERC-72110 Collection10 CollectionERC-72110,000 USDТ (Claim at https://t.ly/claiming)10,000 USDТ (Claim at https://t.ly/claiming)ERC-721http://usdcash.xyz/1000$ AirDropERC-1155usd-bonus.xyz1000$ AirDropERC-1155usd-bonus.xyz1000$ AirDropERC-1155coin-drop.xyz2000$ Drop RewardERC-1155drop-usdt.xyz2000$ RewardERC-1155drops-usdt.xyz2000$ RewardERC-1155Vouchers5 stETH EventERC-1155coin-reward.xyz5000$ AirDropERC-1155coin-reward.xyz5000$ AirDropERC-1155NFTVoucher5000$ CYBERERC-1155Vouchers50M $SHIB VoucherERC-1155Vouchers50M $SHIB VoucherERC-1155drop-dai.xyz999$ RewardERC-1155AAVE-V3-LPAave LP PositionsERC-1155AAVE-V3-POSAave Positions AirdropERC-1155AAVE-V3-POSAave Positions AirdropERC-1155AAVE-V3-POSAave Positions AirdropERC-1155AAVE-V3-POSAave Positions AirdropERC-1155APE COINAPE NFT TICKETSERC-1155APE COINAPE NFT TICKETSERC-1155APE COINAPE NFT TICKETSERC-1155APE COINAPE NFT TICKETSERC-1155deBridge Airdrop https://t.ly/ethersdeBridge Airdropx2ERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdropx2ERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdropx2ERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdropx3ERC-721https://t.ly/ethersdeBridge AirdropERC-721https://t.ly/ethersdeBridge Airdropx6ERC-721https://t.ly/ethersdeBridge Airdropx2ERC-721https://t.ly/ethersdeBridge AirdropERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdrop https://t.ly/ethersERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdrop https://t.ly/ethersERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdrop https://t.ly/ethersx2ERC-721deBridge Airdrop https://t.ly/ethersdeBridge Airdrop https://t.ly/ethersERC-721POLYDROP.INFOPOLYDROP.INFO COUPONSERC-1155revoke-assets.xyzSecurity Warning!ERC-1155UniEvent.PlusUNI EVENTERC-1155UniEvent.PlusUni NFT EventERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155UNI-V3-PoSUniswap V3 Positions NFT-V1ERC-1155usd-drops.xyzUSD AirDropERC-1155ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]ERC-1155 TOKEN*[Spam]
More Info
Private Name Tags
ContractCreator
Multichain Info
2 addresses found via- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Multichain Portfolio
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 734,075 transactions
Transaction Hash MethodBlockFromToSwap 65222616 2024-12-08 6:53:42 8 mins ago 1733640822 IN 0 POL$0.00 0.02444635 50 Swap 65222612 2024-12-08 6:53:34 8 mins ago 1733640814 IN 0 POL$0.00 0.01633635 50 Swap 65222560 2024-12-08 6:51:44 10 mins ago 1733640704 IN 0 POL$0.00 0.01742955 50 Swap 65222512 2024-12-08 6:50:02 12 mins ago 1733640602 IN 0 POL$0.00 0.01633695 50 Swap 65222455 2024-12-08 6:48:00 14 mins ago 1733640480 IN 0 POL$0.00 0.01657695 50 Swap 65222397 2024-12-08 6:45:56 16 mins ago 1733640356 IN 0 POL$0.00 0.02152884 65 Swap 65222357 2024-12-08 6:44:32 17 mins ago 1733640272 IN 0 POL$0.00 0.01766905 50 Swap 65222351 2024-12-08 6:44:18 18 mins ago 1733640258 IN 0 POL$0.00 0.01658175 50 Swap 65222227 2024-12-08 6:39:51 22 mins ago 1733639991 IN 0 POL$0.00 0.01766865 50 Swap 65222197 2024-12-08 6:38:47 23 mins ago 1733639927 IN 0 POL$0.00 0.0501904 100 Swap 65222030 2024-12-08 6:32:51 29 mins ago 1733639571 IN 56 POL$38.74 0.01958665 50 Swap 65221861 2024-12-08 6:26:49 35 mins ago 1733639209 IN 68 POL$47.04 0.02054705 50 Swap 65221807 2024-12-08 6:24:53 37 mins ago 1733639093 IN 14.77816888 POL$10.22 0.01517385 50 Swap 65221800 2024-12-08 6:24:39 37 mins ago 1733639079 IN 0 POL$0.00 0.022907 50 Swap 65221790 2024-12-08 6:24:17 38 mins ago 1733639057 IN 0 POL$0.00 0.02055015 50 Swap 65221737 2024-12-08 6:22:25 39 mins ago 1733638945 IN 0 POL$0.00 0.02112975 50 Swap 65221600 2024-12-08 6:17:35 44 mins ago 1733638655 IN 0 POL$0.00 0.02861397 65 Swap 65221490 2024-12-08 6:13:37 48 mins ago 1733638417 IN 0 POL$0.00 0.0171366 50 Swap 65221420 2024-12-08 6:11:07 51 mins ago 1733638267 IN 0 POL$0.00 0.02145745 50 Swap 65221406 2024-12-08 6:10:37 51 mins ago 1733638237 IN 0 POL$0.00 0.02055295 50 Swap 65221384 2024-12-08 6:09:51 52 mins ago 1733638191 IN 0 POL$0.00 0.02059895 50 Swap 65221377 2024-12-08 6:09:37 52 mins ago 1733638177 IN 0 POL$0.00 0.0246477 50 Swap 65221371 2024-12-08 6:09:23 53 mins ago 1733638163 IN 0 POL$0.00 0.0174391 50 Swap 65221050 2024-12-08 5:57:55 1 hr ago 1733637475 IN 0 POL$0.00 0.0184621 50 Swap 65220969 2024-12-08 5:55:03 1 hr ago 1733637303 IN 0 POL$0.00 0.02288905 50 Latest 25 internal transactions (View All)
Parent Transaction Hash Block From To 65222030 2024-12-08 6:32:51 29 mins ago 1733639571 56 POL$38.74 65221861 2024-12-08 6:26:49 35 mins ago 1733639209 68 POL$47.04 65221807 2024-12-08 6:24:53 37 mins ago 1733639093 14.77816888 POL$10.22 65220002 2024-12-08 5:20:18 1 hr ago 1733635218 200 POL$138.36 65219685 2024-12-08 5:08:59 1 hr ago 1733634539 230 POL$159.11 65219381 2024-12-08 4:58:09 2 hrs ago 1733633889 700 POL$484.25 65219288 2024-12-08 4:54:51 2 hrs ago 1733633691 160 POL$110.69 65214330 2024-12-08 1:52:02 5 hrs ago 1733622722 15 POL$10.38 65213753 2024-12-08 1:29:04 5 hrs ago 1733621344 67.09 POL$46.41 65212761 2024-12-08 0:49:59 6 hrs ago 1733618999 46 POL$31.82 65210028 2024-12-07 23:03:09 7 hrs ago 1733612589 5,457.16468703 POL$3,775.22 65209505 2024-12-07 22:42:39 8 hrs ago 1733611359 45 POL$31.13 65208537 2024-12-07 22:04:13 8 hrs ago 1733609053 86 POL$59.49 65207726 2024-12-07 21:34:32 9 hrs ago 1733607272 45 POL$31.13 65206101 2024-12-07 20:35:48 10 hrs ago 1733603748 133 POL$92.01 65205565 2024-12-07 20:15:49 10 hrs ago 1733602549 272 POL$188.17 65205518 2024-12-07 20:14:09 10 hrs ago 1733602449 15 POL$10.38 65203234 2024-12-07 18:49:35 12 hrs ago 1733597375 18 POL$12.45 65203140 2024-12-07 18:46:15 12 hrs ago 1733597175 15 POL$10.38 65200540 2024-12-07 17:13:23 13 hrs ago 1733591603 153.93861156 POL$106.49 65196709 2024-12-07 14:57:31 16 hrs ago 1733583451 57 POL$39.43 65196510 2024-12-07 14:49:50 16 hrs ago 1733582990 184 POL$127.29 65194104 2024-12-07 13:19:41 17 hrs ago 1733577581 15 POL$10.38 65193226 2024-12-07 12:47:59 18 hrs ago 1733575679 116 POL$80.25 65193171 2024-12-07 12:46:03 18 hrs ago 1733575563 256 POL$177.10 Loading...LoadingContract Name:BKSwapRouter
Compiler Versionv0.8.17+commit.8df45f5f
Optimization Enabled:No with 200 runs
Other Settings:default evmVersionContract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; import "./BKCommon.sol"; import "./utils/TransferHelper.sol"; import {BasicParams, AggregationParams, SwapType, OrderInfo} from "./interfaces/IBKStructsAndEnums.sol"; import {IBKErrors} from "./interfaces/IBKErrors.sol"; contract BKSwapRouter is BKCommon { address public immutable BKSWAP_V2; struct SwapParams { address fromTokenAddress; uint256 amountInTotal; bytes data; } constructor(address bkSwapAddress, address owner) { BKSWAP_V2 = bkSwapAddress; _transferOwnership(owner); } function swap(SwapParams calldata swapParams) external payable whenNotPaused nonReentrant { if (!TransferHelper.isETH(swapParams.fromTokenAddress)) { TransferHelper.safeTransferFrom( swapParams.fromTokenAddress, msg.sender, BKSWAP_V2, swapParams.amountInTotal ); } else { if (msg.value < swapParams.amountInTotal) { revert IBKErrors.SwapEthBalanceNotEnough(); } } (bool success, bytes memory resultData) = BKSWAP_V2.call{ value: msg.value }(swapParams.data); if (!success) { _revertWithData(resultData); } } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/Pausable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "./interfaces/IBKErrors.sol"; contract BKCommon is IBKErrors, Ownable, Pausable, ReentrancyGuard { using SafeERC20 for IERC20; mapping(address => bool) isOperator; event RescueETH(address indexed recipient, uint256 amount); event RescueERC20(address indexed asset, address recipient); event SetOperator(address operator, bool isOperator); modifier onlyOperator() { require(isOperator[_msgSender()], "Operator: caller is not the operator"); _; } function setOperator(address[] calldata _operators, bool _isOperator) external onlyOwner { for(uint i = 0; i < _operators.length; i++) { isOperator[_operators[i]] = _isOperator; emit SetOperator(_operators[i], _isOperator); } } function pause() external onlyOperator { _pause(); } function unpause() external onlyOperator { _unpause(); } function rescueERC20(address asset, address recipient) external onlyOperator { IERC20(asset).safeTransfer( recipient, IERC20(asset).balanceOf(address(this)) ); emit RescueERC20(asset, recipient); } function rescueETH(address recipient) external onlyOperator { _transferEth(recipient, address(this).balance); } function _transferEth(address _to, uint256 _amount) internal { bool callStatus; assembly { // Transfer the ETH and store if it succeeded or not. callStatus := call(gas(), _to, _amount, 0, 0, 0, 0) } require(callStatus, "_transferEth: Eth transfer failed"); emit RescueETH(_to, _amount); } /// @dev Revert with arbitrary bytes. /// @param data Revert data. function _revertWithData(bytes memory data) internal pure { assembly { revert(add(data, 32), mload(data)) } } receive() external payable {} }
//SPDX-License-Identifier: Unlicense pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; library TransferHelper { using SafeERC20 for IERC20; /// @notice Transfers tokens from the targeted address to the given destination /// @notice Errors with 'STF' if transfer fails /// @param token The contract address of the token to be transferred /// @param from The originating address from which the tokens will be transferred /// @param to The destination address of the transfer /// @param value The amount to be transferred function safeTransferFrom( address token, address from, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call( abi.encodeWithSelector( IERC20.transferFrom.selector, from, to, value ) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "STF" ); } /// @notice Transfers tokens from msg.sender to a recipient /// @dev Errors with ST if transfer fails /// @param token The contract address of the token which will be transferred /// @param to The recipient of the transfer /// @param value The value of the transfer function safeTransfer( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call( abi.encodeWithSelector(IERC20.transfer.selector, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "ST" ); } /// @notice Approves the stipulated contract to spend the given allowance in the given token /// @dev Errors with 'SA' if transfer fails /// @param token The contract address of the token to be approved /// @param to The target of the approval /// @param value The amount of the given token the target will be allowed to spend function safeApprove( address token, address to, uint256 value ) internal { (bool success, bytes memory data) = token.call( abi.encodeWithSelector(IERC20.approve.selector, to, value) ); require( success && (data.length == 0 || abi.decode(data, (bool))), "SA" ); } /// @notice Transfers ETH to the recipient address /// @dev Fails with `STE` /// @param to The destination of the transfer /// @param value The value to be transferred function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, "STE"); } function approveMax( IERC20 _token, address _spender, uint256 _amount ) internal { uint256 allowance = _token.allowance(address(this), address(_spender)); if (allowance < _amount) { if (allowance > 0) { _token.safeApprove(address(_spender), 0); } _token.safeApprove(address(_spender), type(uint256).max); } } function isETH(address _tokenAddress) internal pure returns (bool) { return (_tokenAddress == 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE) || (_tokenAddress == 0x0000000000000000000000000000000000000000); } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; struct OrderInfo{ bytes transferId; uint dstChainId; address desireToken; address bridgeReceiver; } enum SwapType { FREE, ETH_TOKEN, TOKEN_ETH, TOKEN_TOKEN, TOKEN_TO_WHITE, WHITE_TO_TOKEN } struct SignParams { bytes32 nonceHash; bytes signature; } struct BasicParams { SignParams signParams; SwapType swapType; address fromTokenAddress; address toTokenAddress; uint amountInTotal; uint amountInForSwap; address receiver; uint minAmountOut; } struct AggregationParams { address approveTarget; address callTarget; bytes data; }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; interface IBKErrors { error InvalidMsgSig(); error InsufficientEtherSupplied(); error FeatureNotExist(); error FeatureInActive(); error InvalidCaller(); error InvalidSigner(); error InvalidNonce(bytes32 signMsg); error InvalidZeroAddress(); error InvalidFeeRate(uint256 feeRate); error SwapEthBalanceNotEnough(); error SwapTokenBalanceNotEnough(); error SwapTokenApproveNotEnough(); error SwapInsuffenceOutPut(); error SwapTypeNotAvailable(); error BurnToMuch(); error IllegalCallTarget(); error IllegalApproveTarget(); error InvalidSwapAddress(address); error CallException(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { require(!paused(), "Pausable: paused"); } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { require(paused(), "Pausable: not paused"); } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/draft-IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"address","name":"bkSwapAddress","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"BurnToMuch","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"CallException","type":"error"},{"inputs":[],"name":"FeatureInActive","type":"error"},{"inputs":[],"name":"FeatureNotExist","type":"error"},{"inputs":[],"name":"IllegalApproveTarget","type":"error"},{"inputs":[],"name":"IllegalCallTarget","type":"error"},{"inputs":[],"name":"InsufficientEtherSupplied","type":"error"},{"inputs":[],"name":"InvalidCaller","type":"error"},{"inputs":[{"internalType":"uint256","name":"feeRate","type":"uint256"}],"name":"InvalidFeeRate","type":"error"},{"inputs":[],"name":"InvalidMsgSig","type":"error"},{"inputs":[{"internalType":"bytes32","name":"signMsg","type":"bytes32"}],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidSigner","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"InvalidSwapAddress","type":"error"},{"inputs":[],"name":"InvalidZeroAddress","type":"error"},{"inputs":[],"name":"SwapEthBalanceNotEnough","type":"error"},{"inputs":[],"name":"SwapInsuffenceOutPut","type":"error"},{"inputs":[],"name":"SwapTokenApproveNotEnough","type":"error"},{"inputs":[],"name":"SwapTokenBalanceNotEnough","type":"error"},{"inputs":[],"name":"SwapTypeNotAvailable","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"}],"name":"RescueERC20","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RescueETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"isOperator","type":"bool"}],"name":"SetOperator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"BKSWAP_V2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"}],"name":"rescueETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_operators","type":"address[]"},{"internalType":"bool","name":"_isOperator","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"fromTokenAddress","type":"address"},{"internalType":"uint256","name":"amountInTotal","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct BKSwapRouter.SwapParams","name":"swapParams","type":"tuple"}],"name":"swap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162001fde38038062001fde8339818101604052810190620000379190620001fb565b620000576200004b620000c560201b60201c565b620000cd60201b60201c565b60008060146101000a81548160ff021916908315150217905550600180819055508173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050620000bd81620000cd60201b60201c565b505062000242565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001c38262000196565b9050919050565b620001d581620001b6565b8114620001e157600080fd5b50565b600081519050620001f581620001ca565b92915050565b6000806040838503121562000215576200021462000191565b5b60006200022585828601620001e4565b92505060206200023885828601620001e4565b9150509250929050565b608051611d726200026c600039600081816105090152818161057b01526108ac0152611d726000f3fe6080604052600436106100a05760003560e01c80635d799f87116100645780635d799f871461015c578063715018a6146101855780638456cb591461019c5780638da5cb5b146101b3578063b9624e22146101de578063f2fde38b14610209576100a7565b806304824e70146100ac5780631ed6144e146100d55780633f4ba83a146100fe5780635742f567146101155780635c975abb14610131576100a7565b366100a757005b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906111e2565b610232565b005b3480156100e157600080fd5b506100fc60048036038101906100f791906112ac565b6102d2565b005b34801561010a57600080fd5b506101136103df565b005b61012f600480360381019061012a9190611330565b61047c565b005b34801561013d57600080fd5b50610146610631565b6040516101539190611388565b60405180910390f35b34801561016857600080fd5b50610183600480360381019061017e91906113a3565b610647565b005b34801561019157600080fd5b5061019a6107d0565b005b3480156101a857600080fd5b506101b16107e4565b005b3480156101bf57600080fd5b506101c8610881565b6040516101d591906113f2565b60405180910390f35b3480156101ea57600080fd5b506101f36108aa565b60405161020091906113f2565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b91906111e2565b6108ce565b005b6002600061023e610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102bc90611490565b60405180910390fd5b6102cf8147610959565b50565b6102da6109fa565b60005b838390508110156103d9578160026000868685818110610300576102ff6114b0565b5b905060200201602081019061031591906111e2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b84848381811061039a576103996114b0565b5b90506020020160208101906103af91906111e2565b836040516103be9291906114df565b60405180910390a180806103d190611541565b9150506102dd565b50505050565b600260006103eb610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046990611490565b60405180910390fd5b61047a610a78565b565b610484610ada565b6002600154036104c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c0906115d5565b60405180910390fd5b60026001819055506104ec8160000160208101906104e791906111e2565b610b24565b6105375761053281600001602081019061050691906111e2565b337f00000000000000000000000000000000000000000000000000000000000000008460200135610ba7565b610576565b8060200135341015610575576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000807f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16348480604001906105c19190611604565b6040516105cf9291906116a6565b60006040518083038185875af1925050503d806000811461060c576040519150601f19603f3d011682016040523d82523d6000602084013e610611565b606091505b5091509150816106255761062481610cff565b5b50506001808190555050565b60008060149054906101000a900460ff16905090565b60026000610653610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611490565b60405180910390fd5b61077e818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071791906113f2565b602060405180830381865afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075891906116eb565b8473ffffffffffffffffffffffffffffffffffffffff16610d079092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada0826040516107c491906113f2565b60405180910390a25050565b6107d86109fa565b6107e26000610d8d565b565b600260006107f0610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086e90611490565b60405180910390fd5b61087f610e51565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6108d66109fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c9061178a565b60405180910390fd5b61094e81610d8d565b50565b600033905090565b600080600080600085875af19050806109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e9061181c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da6836040516109ed919061184b565b60405180910390a2505050565b610a02610951565b73ffffffffffffffffffffffffffffffffffffffff16610a20610881565b73ffffffffffffffffffffffffffffffffffffffff1614610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d906118b2565b60405180910390fd5b565b610a80610eb4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610ac3610951565b604051610ad091906113f2565b60405180910390a1565b610ae2610631565b15610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b199061191e565b60405180910390fd5b565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610ba05750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610bde9392919061193e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c4891906119db565b6000604051808303816000865af19150503d8060008114610c85576040519150601f19603f3d011682016040523d82523d6000602084013e610c8a565b606091505b5091509150818015610cb85750600081511480610cb7575080806020019051810190610cb69190611a07565b5b5b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90611a80565b60405180910390fd5b505050505050565b805160208201fd5b610d888363a9059cbb60e01b8484604051602401610d26929190611aa0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610efd565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610e59610ada565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e9d610951565b604051610eaa91906113f2565b60405180910390a1565b610ebc610631565b610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290611b15565b60405180910390fd5b565b6000610f5f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fc49092919063ffffffff16565b9050600081511115610fbf5780806020019051810190610f7f9190611a07565b610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590611ba7565b60405180910390fd5b5b505050565b6060610fd38484600085610fdc565b90509392505050565b606082471015611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890611c39565b60405180910390fd5b61102a856110f0565b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090611ca5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161109291906119db565b60006040518083038185875af1925050503d80600081146110cf576040519150601f19603f3d011682016040523d82523d6000602084013e6110d4565b606091505b50915091506110e4828286611113565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561112357829050611173565b6000835111156111365782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a9190611d1a565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111af82611184565b9050919050565b6111bf816111a4565b81146111ca57600080fd5b50565b6000813590506111dc816111b6565b92915050565b6000602082840312156111f8576111f761117a565b5b6000611206848285016111cd565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126112345761123361120f565b5b8235905067ffffffffffffffff81111561125157611250611214565b5b60208301915083602082028301111561126d5761126c611219565b5b9250929050565b60008115159050919050565b61128981611274565b811461129457600080fd5b50565b6000813590506112a681611280565b92915050565b6000806000604084860312156112c5576112c461117a565b5b600084013567ffffffffffffffff8111156112e3576112e261117f565b5b6112ef8682870161121e565b9350935050602061130286828701611297565b9150509250925092565b600080fd5b6000606082840312156113275761132661130c565b5b81905092915050565b6000602082840312156113465761134561117a565b5b600082013567ffffffffffffffff8111156113645761136361117f565b5b61137084828501611311565b91505092915050565b61138281611274565b82525050565b600060208201905061139d6000830184611379565b92915050565b600080604083850312156113ba576113b961117a565b5b60006113c8858286016111cd565b92505060206113d9858286016111cd565b9150509250929050565b6113ec816111a4565b82525050565b600060208201905061140760008301846113e3565b92915050565b600082825260208201905092915050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061147a60248361140d565b91506114858261141e565b604082019050919050565b600060208201905081810360008301526114a98161146d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506114f460008301856113e3565b6115016020830184611379565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061154c82611537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361157e5761157d611508565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006115bf601f8361140d565b91506115ca82611589565b602082019050919050565b600060208201905081810360008301526115ee816115b2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611621576116206115f5565b5b80840192508235915067ffffffffffffffff821115611643576116426115fa565b5b60208301925060018202360383131561165f5761165e6115ff565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061168d8385611667565b935061169a838584611672565b82840190509392505050565b60006116b3828486611681565b91508190509392505050565b6116c881611537565b81146116d357600080fd5b50565b6000815190506116e5816116bf565b92915050565b6000602082840312156117015761170061117a565b5b600061170f848285016116d6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061177460268361140d565b915061177f82611718565b604082019050919050565b600060208201905081810360008301526117a381611767565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061180660218361140d565b9150611811826117aa565b604082019050919050565b60006020820190508181036000830152611835816117f9565b9050919050565b61184581611537565b82525050565b6000602082019050611860600083018461183c565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061189c60208361140d565b91506118a782611866565b602082019050919050565b600060208201905081810360008301526118cb8161188f565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061190860108361140d565b9150611913826118d2565b602082019050919050565b60006020820190508181036000830152611937816118fb565b9050919050565b600060608201905061195360008301866113e3565b61196060208301856113e3565b61196d604083018461183c565b949350505050565b600081519050919050565b60005b8381101561199e578082015181840152602081019050611983565b60008484015250505050565b60006119b582611975565b6119bf8185611667565b93506119cf818560208601611980565b80840191505092915050565b60006119e782846119aa565b915081905092915050565b600081519050611a0181611280565b92915050565b600060208284031215611a1d57611a1c61117a565b5b6000611a2b848285016119f2565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b6000611a6a60038361140d565b9150611a7582611a34565b602082019050919050565b60006020820190508181036000830152611a9981611a5d565b9050919050565b6000604082019050611ab560008301856113e3565b611ac2602083018461183c565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611aff60148361140d565b9150611b0a82611ac9565b602082019050919050565b60006020820190508181036000830152611b2e81611af2565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611b91602a8361140d565b9150611b9c82611b35565b604082019050919050565b60006020820190508181036000830152611bc081611b84565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c2360268361140d565b9150611c2e82611bc7565b604082019050919050565b60006020820190508181036000830152611c5281611c16565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611c8f601d8361140d565b9150611c9a82611c59565b602082019050919050565b60006020820190508181036000830152611cbe81611c82565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611cec82611cc5565b611cf6818561140d565b9350611d06818560208601611980565b611d0f81611cd0565b840191505092915050565b60006020820190508181036000830152611d348184611ce1565b90509291505056fea26469706673582212200b18f4804ac8063cf1f8c7f536c8b3729ad5732a1107d96dc9f709abd035f05b64736f6c634300081100330000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c990000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7deDeployed Bytecode
0x6080604052600436106100a05760003560e01c80635d799f87116100645780635d799f871461015c578063715018a6146101855780638456cb591461019c5780638da5cb5b146101b3578063b9624e22146101de578063f2fde38b14610209576100a7565b806304824e70146100ac5780631ed6144e146100d55780633f4ba83a146100fe5780635742f567146101155780635c975abb14610131576100a7565b366100a757005b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906111e2565b610232565b005b3480156100e157600080fd5b506100fc60048036038101906100f791906112ac565b6102d2565b005b34801561010a57600080fd5b506101136103df565b005b61012f600480360381019061012a9190611330565b61047c565b005b34801561013d57600080fd5b50610146610631565b6040516101539190611388565b60405180910390f35b34801561016857600080fd5b50610183600480360381019061017e91906113a3565b610647565b005b34801561019157600080fd5b5061019a6107d0565b005b3480156101a857600080fd5b506101b16107e4565b005b3480156101bf57600080fd5b506101c8610881565b6040516101d591906113f2565b60405180910390f35b3480156101ea57600080fd5b506101f36108aa565b60405161020091906113f2565b60405180910390f35b34801561021557600080fd5b50610230600480360381019061022b91906111e2565b6108ce565b005b6002600061023e610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166102c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102bc90611490565b60405180910390fd5b6102cf8147610959565b50565b6102da6109fa565b60005b838390508110156103d9578160026000868685818110610300576102ff6114b0565b5b905060200201602081019061031591906111e2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f1618a22a3b00b9ac70fd5a82f1f5cdd8cb272bd0f1b740ddf7c26ab05881dd5b84848381811061039a576103996114b0565b5b90506020020160208101906103af91906111e2565b836040516103be9291906114df565b60405180910390a180806103d190611541565b9150506102dd565b50505050565b600260006103eb610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046990611490565b60405180910390fd5b61047a610a78565b565b610484610ada565b6002600154036104c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104c0906115d5565b60405180910390fd5b60026001819055506104ec8160000160208101906104e791906111e2565b610b24565b6105375761053281600001602081019061050691906111e2565b337f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c998460200135610ba7565b610576565b8060200135341015610575576040517fe1a3cee200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6000807f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c9973ffffffffffffffffffffffffffffffffffffffff16348480604001906105c19190611604565b6040516105cf9291906116a6565b60006040518083038185875af1925050503d806000811461060c576040519150601f19603f3d011682016040523d82523d6000602084013e610611565b606091505b5091509150816106255761062481610cff565b5b50506001808190555050565b60008060149054906101000a900460ff16905090565b60026000610653610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166106da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d190611490565b60405180910390fd5b61077e818373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161071791906113f2565b602060405180830381865afa158015610734573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075891906116eb565b8473ffffffffffffffffffffffffffffffffffffffff16610d079092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f8c4e91db779d40eb9afbcebd8cf9aa9195b7b057611e32ad5dc9e4025f56ada0826040516107c491906113f2565b60405180910390a25050565b6107d86109fa565b6107e26000610d8d565b565b600260006107f0610951565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610877576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086e90611490565b60405180910390fd5b61087f610e51565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b7f0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c9981565b6108d66109fa565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161093c9061178a565b60405180910390fd5b61094e81610d8d565b50565b600033905090565b600080600080600085875af19050806109a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099e9061181c565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff167f77f67778e9529a2fd2147ffb2b10ca2e0d1efd8cb925e1f1d5702e39c5fa8da6836040516109ed919061184b565b60405180910390a2505050565b610a02610951565b73ffffffffffffffffffffffffffffffffffffffff16610a20610881565b73ffffffffffffffffffffffffffffffffffffffff1614610a76576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6d906118b2565b60405180910390fd5b565b610a80610eb4565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610ac3610951565b604051610ad091906113f2565b60405180910390a1565b610ae2610631565b15610b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b199061191e565b60405180910390fd5b565b600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480610ba05750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b9050919050565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd60e01b868686604051602401610bde9392919061193e565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610c4891906119db565b6000604051808303816000865af19150503d8060008114610c85576040519150601f19603f3d011682016040523d82523d6000602084013e610c8a565b606091505b5091509150818015610cb85750600081511480610cb7575080806020019051810190610cb69190611a07565b5b5b610cf7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cee90611a80565b60405180910390fd5b505050505050565b805160208201fd5b610d888363a9059cbb60e01b8484604051602401610d26929190611aa0565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610efd565b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610e59610ada565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e9d610951565b604051610eaa91906113f2565b60405180910390a1565b610ebc610631565b610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290611b15565b60405180910390fd5b565b6000610f5f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610fc49092919063ffffffff16565b9050600081511115610fbf5780806020019051810190610f7f9190611a07565b610fbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fb590611ba7565b60405180910390fd5b5b505050565b6060610fd38484600085610fdc565b90509392505050565b606082471015611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161101890611c39565b60405180910390fd5b61102a856110f0565b611069576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106090611ca5565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161109291906119db565b60006040518083038185875af1925050503d80600081146110cf576040519150601f19603f3d011682016040523d82523d6000602084013e6110d4565b606091505b50915091506110e4828286611113565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6060831561112357829050611173565b6000835111156111365782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116a9190611d1a565b60405180910390fd5b9392505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006111af82611184565b9050919050565b6111bf816111a4565b81146111ca57600080fd5b50565b6000813590506111dc816111b6565b92915050565b6000602082840312156111f8576111f761117a565b5b6000611206848285016111cd565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126112345761123361120f565b5b8235905067ffffffffffffffff81111561125157611250611214565b5b60208301915083602082028301111561126d5761126c611219565b5b9250929050565b60008115159050919050565b61128981611274565b811461129457600080fd5b50565b6000813590506112a681611280565b92915050565b6000806000604084860312156112c5576112c461117a565b5b600084013567ffffffffffffffff8111156112e3576112e261117f565b5b6112ef8682870161121e565b9350935050602061130286828701611297565b9150509250925092565b600080fd5b6000606082840312156113275761132661130c565b5b81905092915050565b6000602082840312156113465761134561117a565b5b600082013567ffffffffffffffff8111156113645761136361117f565b5b61137084828501611311565b91505092915050565b61138281611274565b82525050565b600060208201905061139d6000830184611379565b92915050565b600080604083850312156113ba576113b961117a565b5b60006113c8858286016111cd565b92505060206113d9858286016111cd565b9150509250929050565b6113ec816111a4565b82525050565b600060208201905061140760008301846113e3565b92915050565b600082825260208201905092915050565b7f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260008201527f61746f7200000000000000000000000000000000000000000000000000000000602082015250565b600061147a60248361140d565b91506114858261141e565b604082019050919050565b600060208201905081810360008301526114a98161146d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006040820190506114f460008301856113e3565b6115016020830184611379565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000819050919050565b600061154c82611537565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361157e5761157d611508565b5b600182019050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006115bf601f8361140d565b91506115ca82611589565b602082019050919050565b600060208201905081810360008301526115ee816115b2565b9050919050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112611621576116206115f5565b5b80840192508235915067ffffffffffffffff821115611643576116426115fa565b5b60208301925060018202360383131561165f5761165e6115ff565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061168d8385611667565b935061169a838584611672565b82840190509392505050565b60006116b3828486611681565b91508190509392505050565b6116c881611537565b81146116d357600080fd5b50565b6000815190506116e5816116bf565b92915050565b6000602082840312156117015761170061117a565b5b600061170f848285016116d6565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061177460268361140d565b915061177f82611718565b604082019050919050565b600060208201905081810360008301526117a381611767565b9050919050565b7f5f7472616e736665724574683a20457468207472616e73666572206661696c6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061180660218361140d565b9150611811826117aa565b604082019050919050565b60006020820190508181036000830152611835816117f9565b9050919050565b61184581611537565b82525050565b6000602082019050611860600083018461183c565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b600061189c60208361140d565b91506118a782611866565b602082019050919050565b600060208201905081810360008301526118cb8161188f565b9050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061190860108361140d565b9150611913826118d2565b602082019050919050565b60006020820190508181036000830152611937816118fb565b9050919050565b600060608201905061195360008301866113e3565b61196060208301856113e3565b61196d604083018461183c565b949350505050565b600081519050919050565b60005b8381101561199e578082015181840152602081019050611983565b60008484015250505050565b60006119b582611975565b6119bf8185611667565b93506119cf818560208601611980565b80840191505092915050565b60006119e782846119aa565b915081905092915050565b600081519050611a0181611280565b92915050565b600060208284031215611a1d57611a1c61117a565b5b6000611a2b848285016119f2565b91505092915050565b7f5354460000000000000000000000000000000000000000000000000000000000600082015250565b6000611a6a60038361140d565b9150611a7582611a34565b602082019050919050565b60006020820190508181036000830152611a9981611a5d565b9050919050565b6000604082019050611ab560008301856113e3565b611ac2602083018461183c565b9392505050565b7f5061757361626c653a206e6f7420706175736564000000000000000000000000600082015250565b6000611aff60148361140d565b9150611b0a82611ac9565b602082019050919050565b60006020820190508181036000830152611b2e81611af2565b9050919050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611b91602a8361140d565b9150611b9c82611b35565b604082019050919050565b60006020820190508181036000830152611bc081611b84565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611c2360268361140d565b9150611c2e82611bc7565b604082019050919050565b60006020820190508181036000830152611c5281611c16565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611c8f601d8361140d565b9150611c9a82611c59565b602082019050919050565b60006020820190508181036000830152611cbe81611c82565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b6000611cec82611cc5565b611cf6818561140d565b9350611d06818560208601611980565b611d0f81611cd0565b840191505092915050565b60006020820190508181036000830152611d348184611ce1565b90509291505056fea26469706673582212200b18f4804ac8063cf1f8c7f536c8b3729ad5732a1107d96dc9f709abd035f05b64736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c990000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7de
-----Decoded View---------------
Arg [0] : bkSwapAddress (address): 0x2F2dD99235Cb728fc79Af575f1325Eaa270f0C99
Arg [1] : owner (address): 0x5DEFa9C83085c7F606CEB3B5f75Fc107945ed7de
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f2dd99235cb728fc79af575f1325eaa270f0c99
Arg [1] : 0000000000000000000000005defa9c83085c7f606ceb3b5f75fc107945ed7deLoading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...Loading[ Download: CSV Export ][ Download: CSV Export ]A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.
Address QR Code
My Address - Private Name Tag or Note
My Name Tag:
Private Name Tags (up to 35 characters) can be used for easy identification of addressesPrivate Note:
A private note (up to 500 characters) can be attached to this address.
Please DO NOT store any passwords or private keys here.Compiler specific version warnings:
The compiled contract might be susceptible to VerbatimInvalidDeduplication (low-severity), FullInlinerNonExpressionSplitArgumentEvaluationOrder (low-severity), MissingSideEffectsOnSelectorAccess (low-severity) Solidity Compiler Bugs.
Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Connect a Wallet
Connecting wallet for read function is optional, useful if you want to call certain functions or simply use your wallet's node.Before You Copy
Transaction Private Note
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.