20M+ users trust MoonPay worldwide. Checkout with your preferred payment method.
Ready to onboard to Ethereum? With MetaMask Portfolio, you're in control.
Don’t invest unless you’re prepared to lose all the money you invest.
Everyday giveaways up to 100 ETH, Lucky Spins. Deposit BONUS 300% and Cashbacks!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Slots, Roulette, Poker & more - Proud sponsors of UFC, Everton & StakeF1 team!
5000+ Slots & Live Casino Games, 50+cryptos. Register with Etherscan and get 760% deposit bonus. Win Big$, withdraw it fast.
Anonymous play on awesome games - sign up now for 25 free jackpot spins - worth $100s!
100s of games, generous bonuses, 20+ years of trusted gaming. Join CryptoWins & start winning today!
Overview
ETH Balance
Eth Value
$0.00Token Holdings
Could not find any matches!
- ERC-20 Tokens (62)2,100.08287483 ABONDApeBond (ABOND)$10.15@0.00484.5125646 BALBalancer (BAL)$11.37@2.529,836.2083671 GUILDBlockchainSp... (GUILD)$19.64@0.0022.18635024 crvUSDCurve.Fi USD... (crvUSD)$2.18@0.995570.45890329 EDUEDU Coin (EDU)$40.33@0.57249.76570521 HERAHera Token (HERA)$9.12@0.93382,633.23993491 INSPInspect (INSP)$121.78@0.046254.08778131 ITPInterport To... (ITP)$2.57@0.047565,396.91407988 LIF3LIF3 (LIF3)$1,075.97@0.01651,932.32198736 MIMMagic Intern... (MIM)$1,930.67@0.999119,235.49548521 MAVMaverick Tok... (MAV)$4,101.76@0.21323,921.38122479 OLEOpenLeverage... (OLE)$46.93@0.0121,707.7373526 OXOX Coin (OX)$24.20@0.0142238,972,294.546481 PEPEPepe (PEPE)$4,913.27@0.0017,993.19703863 RAINPrecipitate.... (RAIN)$64.89@0.00361.22641411 mkUSDPrisma mkUSD (mkUSD)$1.22@0.9965,711.53040904 RDNTRadiant (RDNT)$388.38@0.06830.138403 REUNIReunit Token (REUNI)$1.41@0.0468113.37340341 SFUNDSeedifyFund (SFUND)$175.63@1.54920 SHRAPSHRAPToken (SHRAP)$0.00@0.03590.27351756 swETHswETH (swETH)$1,005.37@3,675.72070.08590353 TENETTENET (TENET)$0.00@0.0046,123.15367821 UNIXUniX Gaming (UNIX)$11.35@0.00190.12163445 unshETHunshETH Ethe... (unshET...)$434.08@3,568.721,598.00172104 USHunshETHing_T... (USH)$2.98@0.00196,922.85241071 WAGMIWagmi (WAGMI)$88.87@0.01283.32188345 CRVCurve DAO To... (CRV)$1.70@0.5123292.32580434 DAIDai Stableco... (DAI)$292.62@1.001265.16882925 CakePancakeSwap ... (Cake)$601.93@2.271,333.785788 USDTTether USD (USDT)$1,336.45@1.0022,217.608989 USDCUSDC (USDC)$2,217.61@1.000.00631949 WBTCWrapped BTC (WBTC)$614.15@97,183.000.86996824 WETHWrapped Ethe... (WETH)$2,970.06@3,413.98560.15972328 wstETHWrapped liqu... (wstETH)$646.22@4,045.87112,327.38865914 BETSBetSwirl v2$53.19@0.00050.00399453 BTC.bBitcoin (BTC.b)6,075,496.5792 CHKNChickencoin$0.47@0.004,313.10250533 DMAILDmail Network$1,073.45@0.248910.14029173 DMTDMT$578.91@57.097.33423562 FLUIDFluid$0.31@0.04180.31252454 GOLDGoldenBoys (GOLD)0.00139559 LSHARELSHARE$0.26@189.000.26332664 msETHMetronome Sy... (msETH)1,099.63993051 msUSDMetronome Sy... (msUSD)1,126,988.47619898 OMNIOmniCat$63.88@0.00010.0002 peUSDpeg-eUSD$0.00@0.89713,736.87022434 QIQiDao$375.97@0.02740.076 IRLRebase$0.00@0.021.62722041 CMPTSpatialComputing$2.16@1.33139,634.99288955 UNBUnbound$48.90@0.00049 HQG环球股 (HQG)10,153.54636567 OXOpen Exchange Token$39.82@0.0039133,577,456.98434 OSAKOsaka Protocol$36.43@0.0049,158.96639147 WOOFWoofWork.io$10.14@0.00027,260.58555157 WNCGWrapped NCG$267.70@0.03691.7 TokenERC-20 TOKEN*[Suspicious]96,400 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]3,999.99 TokenERC-20 TOKEN*[Suspicious]0.7 TokenERC-20 TOKEN*[Suspicious]9,000 TokenERC-20 TOKEN*[Suspicious]NFT Tokens (19)claim rewards on apyusd.comapyusd.comERC-1155ether-origin.comether-origin.comERC-1155claim rewards on pepetoken.netpepetoken.netERC-1155Reward Club [IdGhkIiD]Reward Club [RJX4zgfz]ERC-1155debridgeth.comWithdrawal Badge debridgeth.comERC-1155ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]ERC-1155 TOKEN*[Suspicious]
More Info
Private Name Tags
ContractCreator
- Transactions
- Internal Transactions
- Token Transfers (ERC-20)
- NFT Transfers
- Contract
- Events
- Analytics
- Multichain Portfolio
- Cards New
Advanced Filter- Filter by Tx Type:
- Tx
- Internal Tx
- ERC-20
- NFTs
Latest 25 from a total of 15,638 transactions
Transaction Hash MethodBlockFromToSend Proxy OFTV2 21252625 2024-11-23 19:47:23 9 mins ago 1732391243 *❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️.ethIN 0.00027232 ETH$0.93 0.00436448 15.33146185 Send Proxy OFTV2 21252621 2024-11-23 19:46:35 10 mins ago 1732391195 IN 0.00027232 ETH$0.93 0.00369469 12.9797307 Send Proxy OFTV2 21252398 2024-11-23 19:01:47 55 mins ago 1732388507 IN 0.00027232 ETH$0.93 0.00381236 13.17155064 Send Proxy OFTV2 21251808 2024-11-23 17:03:11 2 hrs ago 1732381391 IN 0.00651083 ETH$22.21 0.00740658 26.19722774 Send OFTV2 21251662 2024-11-23 16:33:47 3 hrs ago 1732379627 IN 0.00027433 ETH$0.94 0.00836009 31.7222927 Send Proxy OFTV2 21251599 2024-11-23 16:21:11 3 hrs ago 1732378871 IN 0.00027238 ETH$0.93 0.00873773 31.22147434 Send Proxy OFTV2 21251500 2024-11-23 16:01:23 3 hrs ago 1732377683 IN 0.00027238 ETH$0.93 0.00739469 25.87909675 Send Proxy OFTV2 21251002 2024-11-23 14:21:11 5 hrs ago 1732371671 IN 0.00027238 ETH$0.93 0.00535958 19.14994098 Send Proxy OFTV2 21250372 2024-11-23 12:14:23 7 hrs ago 1732364063 IN 0.00027273 ETH$0.93 0.00264218 9.44139713 Send Proxy OFTV2 21250272 2024-11-23 11:54:23 8 hrs ago 1732362863 IN 0.00027273 ETH$0.93 0.00242487 8.51804133 Send OFTV2 21249744 2024-11-23 10:08:23 9 hrs ago 1732356503 IN 0.00032969 ETH$1.12 0.00230288 9.25301969 Send Proxy OFT F... 21249388 2024-11-23 8:57:11 11 hrs ago 1732352231 IN 0.00027198 ETH$0.93 0.00311855 10.81080978 Send Proxy OFT F... 21249375 2024-11-23 8:54:35 11 hrs ago 1732352075 IN 0.00032774 ETH$1.12 0.0044553 15.21029901 Send Proxy OFTV2 21249320 2024-11-23 8:43:35 11 hrs ago 1732351415 IN 0.00027567 ETH$0.94 0.0030633 10.76163196 Send Proxy OFTV2 21249280 2024-11-23 8:35:35 11 hrs ago 1732350935 IN 0.00027132 ETH$0.93 0.00411018 14.19935503 Send Proxy OFTV2 21249241 2024-11-23 8:27:47 11 hrs ago 1732350467 IN 0.00027132 ETH$0.93 0.00412778 14.5 Send OFTV2 21249216 2024-11-23 8:22:47 11 hrs ago 1732350167 IN 0.00034722 ETH$1.18 0.00305962 12.39582496 Send Proxy OFTV2 21249078 2024-11-23 7:55:11 12 hrs ago 1732348511 IN 0.00027132 ETH$0.93 0.00306092 10.93675258 Send Proxy OFTV2 21249076 2024-11-23 7:54:47 12 hrs ago 1732348487 *❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️❓️.ethIN 0.00027132 ETH$0.93 0.00316691 11.12468335 Send Proxy OFTV2 21248932 2024-11-23 7:25:47 12 hrs ago 1732346747 IN 0.00027126 ETH$0.93 0.00277022 9.89809632 Send Proxy OFTV2 21248909 2024-11-23 7:21:11 12 hrs ago 1732346471 IN 0.00027126 ETH$0.93 0.00291023 10.22300157 Send Proxy OFTV2 21248877 2024-11-23 7:14:47 12 hrs ago 1732346087 IN 0.00027126 ETH$0.93 0.00324051 11.60034917 Send Proxy OFTV2 21248860 2024-11-23 7:11:11 12 hrs ago 1732345871 IN 0.00027126 ETH$0.93 0.00297138 10.61681926 Send OFTV2 21248149 2024-11-23 4:48:35 15 hrs ago 1732337315 IN 0.00027433 ETH$0.94 0.00292655 11.10528665 Send Proxy OFTV2 21248074 2024-11-23 4:33:35 15 hrs ago 1732336415 IN 0.00034722 ETH$1.18 0.00339472 12.08739733 Latest 25 internal transactions (View All)
Advanced mode:Parent Transaction Hash Block From To 21252625 2024-11-23 19:47:23 9 mins ago 1732391243 0.00027232 ETH$0.93 21252621 2024-11-23 19:46:35 10 mins ago 1732391195 0.00027232 ETH$0.93 21252398 2024-11-23 19:01:47 55 mins ago 1732388507 0.00027232 ETH$0.93 21251808 2024-11-23 17:03:11 2 hrs ago 1732381391 0.00651083 ETH$22.21 21251662 2024-11-23 16:33:47 3 hrs ago 1732379627 0.00027433 ETH$0.94 21251599 2024-11-23 16:21:11 3 hrs ago 1732378871 0.00027238 ETH$0.93 21251500 2024-11-23 16:01:23 3 hrs ago 1732377683 0.00027238 ETH$0.93 21251002 2024-11-23 14:21:11 5 hrs ago 1732371671 0.00027238 ETH$0.93 21250372 2024-11-23 12:14:23 7 hrs ago 1732364063 0.00027273 ETH$0.93 21250272 2024-11-23 11:54:23 8 hrs ago 1732362863 0.00027273 ETH$0.93 21249744 2024-11-23 10:08:23 9 hrs ago 1732356503 0.00032969 ETH$1.12 21249388 2024-11-23 8:57:11 11 hrs ago 1732352231 0.00027198 ETH$0.93 21249375 2024-11-23 8:54:35 11 hrs ago 1732352075 0.00032774 ETH$1.12 21249320 2024-11-23 8:43:35 11 hrs ago 1732351415 0.00027567 ETH$0.94 21249280 2024-11-23 8:35:35 11 hrs ago 1732350935 0.00027132 ETH$0.93 21249241 2024-11-23 8:27:47 11 hrs ago 1732350467 0.00027132 ETH$0.93 21249216 2024-11-23 8:22:47 11 hrs ago 1732350167 0.00034722 ETH$1.18 21249078 2024-11-23 7:55:11 12 hrs ago 1732348511 0.00027132 ETH$0.93 21249076 2024-11-23 7:54:47 12 hrs ago 1732348487 0.00027132 ETH$0.93 21248932 2024-11-23 7:25:47 12 hrs ago 1732346747 0.00027126 ETH$0.93 21248909 2024-11-23 7:21:11 12 hrs ago 1732346471 0.00027126 ETH$0.93 21248877 2024-11-23 7:14:47 12 hrs ago 1732346087 0.00027126 ETH$0.93 21248860 2024-11-23 7:11:11 12 hrs ago 1732345871 0.00027126 ETH$0.93 21248149 2024-11-23 4:48:35 15 hrs ago 1732337315 0.00027433 ETH$0.94 21248074 2024-11-23 4:33:35 15 hrs ago 1732336415 0.00034722 ETH$1.18 Loading...LoadingContract Name:OFTWrapper
Compiler Versionv0.8.12+commit.f00d7308
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/IOFTV2.sol"; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/fee/IOFTWithFee.sol"; import "@layerzerolabs/solidity-examples/contracts/token/oft/IOFT.sol"; import "./interfaces/IOFTWrapper.sol"; contract OFTWrapper is IOFTWrapper, Ownable, ReentrancyGuard { using SafeERC20 for IOFT; uint256 public constant BPS_DENOMINATOR = 10000; uint256 public constant MAX_UINT = 2**256 - 1; // indicates a bp fee of 0 that overrides the default bps uint256 public defaultBps; mapping(address => uint256) public oftBps; constructor(uint256 _defaultBps) { require(_defaultBps < BPS_DENOMINATOR, "OFTWrapper: defaultBps >= 100%"); defaultBps = _defaultBps; } function setDefaultBps(uint256 _defaultBps) external onlyOwner { require(_defaultBps < BPS_DENOMINATOR, "OFTWrapper: defaultBps >= 100%"); defaultBps = _defaultBps; } function setOFTBps(address _token, uint256 _bps) external onlyOwner { require(_bps < BPS_DENOMINATOR || _bps == MAX_UINT, "OFTWrapper: oftBps[_oft] >= 100%"); oftBps[_token] = _bps; } function withdrawFees( address _oft, address _to, uint256 _amount ) external onlyOwner { IOFT(_oft).safeTransfer(_to, _amount); emit WrapperFeeWithdrawn(_oft, _to, _amount); } function sendOFT( address _oft, uint16 _dstChainId, bytes calldata _toAddress, uint256 _amount, uint256 _minAmount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external payable nonReentrant { uint256 amountToSwap = _getAmountAndPayFee(_oft, _amount, _minAmount, _feeObj); IOFT(_oft).sendFrom{value: msg.value}(msg.sender, _dstChainId, _toAddress, amountToSwap, _refundAddress, _zroPaymentAddress, _adapterParams); } function sendProxyOFT( address _proxyOft, uint16 _dstChainId, bytes calldata _toAddress, uint256 _amount, uint256 _minAmount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external payable nonReentrant { address token = IOFTV2(_proxyOft).token(); { uint256 amountToSwap = _getAmountAndPayFeeProxy(token, _amount, _minAmount, _feeObj); // approve proxy to spend tokens IOFT(token).safeApprove(_proxyOft, amountToSwap); IOFT(_proxyOft).sendFrom{value: msg.value}(address(this), _dstChainId, _toAddress, amountToSwap, _refundAddress, _zroPaymentAddress, _adapterParams); } // reset allowance if sendFrom() does not consume full amount if (IOFT(token).allowance(address(this), _proxyOft) > 0) IOFT(token).safeApprove(_proxyOft, 0); } function sendOFTV2( address _oft, uint16 _dstChainId, bytes32 _toAddress, uint256 _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable nonReentrant { uint256 amountToSwap = _getAmountAndPayFee(_oft, _amount, _minAmount, _feeObj); IOFTV2(_oft).sendFrom{value: msg.value}(msg.sender, _dstChainId, _toAddress, amountToSwap, _callParams); } function sendOFTFeeV2( address _oft, uint16 _dstChainId, bytes32 _toAddress, uint256 _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable nonReentrant { uint256 amountToSwap = _getAmountAndPayFee(_oft, _amount, _minAmount, _feeObj); IOFTWithFee(_oft).sendFrom{value: msg.value}(msg.sender, _dstChainId, _toAddress, amountToSwap, _minAmount, _callParams); } function sendProxyOFTV2( address _proxyOft, uint16 _dstChainId, bytes32 _toAddress, uint256 _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable nonReentrant { address token = IOFTV2(_proxyOft).token(); uint256 amountToSwap = _getAmountAndPayFeeProxy(token, _amount, _minAmount, _feeObj); // approve proxy to spend tokens IOFT(token).safeApprove(_proxyOft, amountToSwap); IOFTV2(_proxyOft).sendFrom{value: msg.value}(address(this), _dstChainId, _toAddress, amountToSwap, _callParams); // reset allowance if sendFrom() does not consume full amount if (IOFT(token).allowance(address(this), _proxyOft) > 0) IOFT(token).safeApprove(_proxyOft, 0); } function sendProxyOFTFeeV2( address _proxyOft, uint16 _dstChainId, bytes32 _toAddress, uint256 _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable nonReentrant { address token = IOFTV2(_proxyOft).token(); uint256 amountToSwap = _getAmountAndPayFeeProxy(token, _amount, _minAmount, _feeObj); // approve proxy to spend tokens IOFT(token).safeApprove(_proxyOft, amountToSwap); IOFTWithFee(_proxyOft).sendFrom{value: msg.value}(address(this), _dstChainId, _toAddress, amountToSwap, _minAmount, _callParams); // reset allowance if sendFrom() does not consume full amount if (IOFT(token).allowance(address(this), _proxyOft) > 0) IOFT(token).safeApprove(_proxyOft, 0); } function _getAmountAndPayFeeProxy( address _token, uint256 _amount, uint256 _minAmount, FeeObj calldata _feeObj ) internal returns (uint256) { (uint256 amountToSwap, uint256 wrapperFee, uint256 callerFee) = getAmountAndFees(_token, _amount, _feeObj.callerBps); require(amountToSwap >= _minAmount && amountToSwap > 0, "OFTWrapper: not enough amountToSwap"); IOFT(_token).safeTransferFrom(msg.sender, address(this), amountToSwap + wrapperFee); // pay wrapper and move proxy tokens to contract if (callerFee > 0) IOFT(_token).safeTransferFrom(msg.sender, _feeObj.caller, callerFee); // pay caller emit WrapperFees(_feeObj.partnerId, _token, wrapperFee, callerFee); return amountToSwap; } function _getAmountAndPayFee( address _token, uint256 _amount, uint256 _minAmount, FeeObj calldata _feeObj ) internal returns (uint256) { (uint256 amountToSwap, uint256 wrapperFee, uint256 callerFee) = getAmountAndFees(_token, _amount, _feeObj.callerBps); require(amountToSwap >= _minAmount && amountToSwap > 0, "OFTWrapper: not enough amountToSwap"); if (wrapperFee > 0) IOFT(_token).safeTransferFrom(msg.sender, address(this), wrapperFee); // pay wrapper if (callerFee > 0) IOFT(_token).safeTransferFrom(msg.sender, _feeObj.caller, callerFee); // pay caller emit WrapperFees(_feeObj.partnerId, _token, wrapperFee, callerFee); return amountToSwap; } function getAmountAndFees( address _token, // will be the token on proxies, and the oft on non-proxy uint256 _amount, uint256 _callerBps ) public view override returns ( uint256 amount, uint256 wrapperFee, uint256 callerFee ) { uint256 wrapperBps; if (oftBps[_token] == MAX_UINT) { wrapperBps = 0; } else if (oftBps[_token] > 0) { wrapperBps = oftBps[_token]; } else { wrapperBps = defaultBps; } require(wrapperBps + _callerBps < BPS_DENOMINATOR, "OFTWrapper: Fee bps >= 100%"); wrapperFee = wrapperBps > 0 ? (_amount * wrapperBps) / BPS_DENOMINATOR : 0; callerFee = _callerBps > 0 ? (_amount * _callerBps) / BPS_DENOMINATOR : 0; amount = wrapperFee > 0 || callerFee > 0 ? _amount - wrapperFee - callerFee : _amount; } function estimateSendFee( address _oft, uint16 _dstChainId, bytes calldata _toAddress, uint256 _amount, bool _useZro, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external view override returns (uint nativeFee, uint zroFee) { (uint256 amount, , ) = getAmountAndFees(_oft, _amount, _feeObj.callerBps); return IOFT(_oft).estimateSendFee(_dstChainId, _toAddress, amount, _useZro, _adapterParams); } function estimateSendFeeV2( address _oft, uint16 _dstChainId, bytes32 _toAddress, uint256 _amount, bool _useZro, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external view override returns (uint nativeFee, uint zroFee) { (uint256 amount, , ) = getAmountAndFees(_oft, _amount, _feeObj.callerBps); return IOFTV2(_oft).estimateSendFee(_dstChainId, _toAddress, amount, _useZro, _adapterParams); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTCore is IERC165 { /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _amount - amount of the tokens to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParam - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams) external payable; /** * @dev returns the circulating amount of tokens on current chain */ function circulatingSupply() external view returns (uint); /** * @dev returns the address of the ERC20 token */ function token() external view returns (address); /** * @dev Emitted when `_amount` tokens are moved from the `_sender` to (`_dstChainId`, `_toAddress`) * `_nonce` is the outbound nonce */ event SendToChain(uint16 indexed _dstChainId, address indexed _from, bytes _toAddress, uint _amount); /** * @dev Emitted when `_amount` tokens are received from `_srcChainId` into the `_toAddress` on the local chain. * `_nonce` is the inbound nonce. */ event ReceiveFromChain(uint16 indexed _srcChainId, address indexed _to, uint _amount); event SetUseCustomAdapterParams(bool _useCustomAdapterParams); }
// 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 pragma solidity >=0.5.0; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; /** * @dev Interface of the IOFT core standard */ interface ICommonOFT is IERC165 { struct LzCallParams { address payable refundAddress; address zroPaymentAddress; bytes adapterParams; } /** * @dev estimate send token `_tokenId` to (`_dstChainId`, `_toAddress`) * _dstChainId - L0 defined chain id to send tokens too * _toAddress - dynamic bytes array which contains the address to whom you are sending tokens to on the dstChain * _amount - amount of the tokens to transfer * _useZro - indicates to use zro to pay L0 fees * _adapterParam - flexible bytes array to indicate messaging adapter services in L0 */ function estimateSendFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); function estimateSendAndCallFee(uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, bool _useZro, bytes calldata _adapterParams) external view returns (uint nativeFee, uint zroFee); /** * @dev returns the circulating amount of tokens on current chain */ function circulatingSupply() external view returns (uint); /** * @dev returns the address of the ERC20 token */ function token() external view returns (address); }
// 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.8.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 functionCallWithValue(target, data, 0, "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"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, 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) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or 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 { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // 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); } } }
// 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.8.0) (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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // 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 (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.8.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 pragma solidity >=0.5.0; import "./ICommonOFT.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTV2 is ICommonOFT { /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, LzCallParams calldata _callParams) external payable; function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) external payable; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "../ICommonOFT.sol"; /** * @dev Interface of the IOFT core standard */ interface IOFTWithFee is ICommonOFT { /** * @dev send `_amount` amount of token to (`_dstChainId`, `_toAddress`) from `_from` * `_from` the owner of token * `_dstChainId` the destination chain identifier * `_toAddress` can be any size depending on the `dstChainId`. * `_amount` the quantity of tokens in wei * `_minAmount` the minimum amount of tokens to receive on dstChain * `_refundAddress` the address LayerZero refunds if too much message fee is sent * `_zroPaymentAddress` set to address(0x0) if not paying in ZRO (LayerZero Token) * `_adapterParams` is a flexible bytes array to indicate messaging adapter services */ function sendFrom(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, LzCallParams calldata _callParams) external payable; function sendAndCall(address _from, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint _minAmount, bytes calldata _payload, uint64 _dstGasForCall, LzCallParams calldata _callParams) external payable; }
// SPDX-License-Identifier: MIT pragma solidity >=0.5.0; import "./IOFTCore.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /** * @dev Interface of the OFT standard */ interface IOFT is IOFTCore, IERC20 { }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@layerzerolabs/solidity-examples/contracts/token/oft/v2/IOFTV2.sol"; interface IOFTWrapper { event WrapperFees(bytes2 indexed partnerId, address token, uint256 wrapperFee, uint256 callerFee); event WrapperFeeWithdrawn(address indexed oft, address to, uint256 amount); struct FeeObj { uint256 callerBps; address caller; bytes2 partnerId; } function sendOFT( address _oft, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, uint256 _minAmount, address payable _refundAddress, address _zroPaymentAddress, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external payable; function sendOFTV2( address _oft, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable; function sendProxyOFTV2( address _proxyOft, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable; function sendProxyOFTFeeV2( address _proxyOft, uint16 _dstChainId, bytes32 _toAddress, uint _amount, uint256 _minAmount, IOFTV2.LzCallParams calldata _callParams, FeeObj calldata _feeObj ) external payable; function getAmountAndFees( address _oft, uint256 _amount, uint256 _callerBps ) external view returns ( uint256 amount, uint256 wrapperFee, uint256 callerFee ); function estimateSendFee( address _oft, uint16 _dstChainId, bytes calldata _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external view returns (uint nativeFee, uint zroFee); function estimateSendFeeV2( address _oft, uint16 _dstChainId, bytes32 _toAddress, uint _amount, bool _useZro, bytes calldata _adapterParams, FeeObj calldata _feeObj ) external view returns (uint nativeFee, uint zroFee); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
[{"inputs":[{"internalType":"uint256","name":"_defaultBps","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"oft","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WrapperFeeWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes2","name":"partnerId","type":"bytes2"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"wrapperFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"callerFee","type":"uint256"}],"name":"WrapperFees","type":"event"},{"inputs":[],"name":"BPS_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_UINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"estimateSendFee","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_useZro","type":"bool"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"estimateSendFeeV2","outputs":[{"internalType":"uint256","name":"nativeFee","type":"uint256"},{"internalType":"uint256","name":"zroFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_callerBps","type":"uint256"}],"name":"getAmountAndFees","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"wrapperFee","type":"uint256"},{"internalType":"uint256","name":"callerFee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"oftBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendOFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendOFTFeeV2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendOFTV2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyOft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes","name":"_toAddress","type":"bytes"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"internalType":"address payable","name":"_refundAddress","type":"address"},{"internalType":"address","name":"_zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"_adapterParams","type":"bytes"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendProxyOFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyOft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendProxyOFTFeeV2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyOft","type":"address"},{"internalType":"uint16","name":"_dstChainId","type":"uint16"},{"internalType":"bytes32","name":"_toAddress","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"refundAddress","type":"address"},{"internalType":"address","name":"zroPaymentAddress","type":"address"},{"internalType":"bytes","name":"adapterParams","type":"bytes"}],"internalType":"struct ICommonOFT.LzCallParams","name":"_callParams","type":"tuple"},{"components":[{"internalType":"uint256","name":"callerBps","type":"uint256"},{"internalType":"address","name":"caller","type":"address"},{"internalType":"bytes2","name":"partnerId","type":"bytes2"}],"internalType":"struct IOFTWrapper.FeeObj","name":"_feeObj","type":"tuple"}],"name":"sendProxyOFTV2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultBps","type":"uint256"}],"name":"setDefaultBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_bps","type":"uint256"}],"name":"setOFTBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_oft","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405162001d0e38038062001d0e833981016040819052610031916100eb565b61003a3361009b565b6001805561271081106100935760405162461bcd60e51b815260206004820152601e60248201527f4f4654577261707065723a2064656661756c74427073203e3d20313030250000604482015260640160405180910390fd5b600255610104565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100fd57600080fd5b5051919050565b611bfa80620001146000396000f3fe6080604052600436106101145760003560e01c8063a46d74bc116100a0578063e1a4521811610064578063e1a45218146102d0578063e1bafc80146102e6578063e55dc4e614610306578063e5b5019a14610326578063f2fde38b1461033c57600080fd5b8063a46d74bc14610261578063a8198c0014610281578063c3c8032a14610294578063d1b308dc146102a7578063dda16a10146102bd57600080fd5b80637a751182116100e75780637a751182146101a357806385154849146101de5780638bcb586c146101f15780638d8c915c146102045780638da5cb5b1461023957600080fd5b80630c3d27561461011957806317696f641461013b578063498eff641461017b578063715018a61461018e575b600080fd5b34801561012557600080fd5b5061013961013436600461138a565b61035c565b005b34801561014757600080fd5b5061015b6101563660046113b6565b6103e2565b604080519384526020840192909252908201526060015b60405180910390f35b61013961018936600461145e565b610538565b34801561019a57600080fd5b506101396105d6565b3480156101af57600080fd5b506101d06101be366004611542565b60036020526000908152604090205481565b604051908152602001610172565b6101396101ec366004611566565b6105ea565b6101396101ff366004611566565b61067e565b34801561021057600080fd5b5061022461021f366004611604565b610813565b60408051928352602083019190915201610172565b34801561024557600080fd5b506000546040516001600160a01b039091168152602001610172565b34801561026d57600080fd5b5061013961027c3660046116a3565b6108b0565b61013961028f366004611566565b61090e565b6101396102a236600461145e565b61095b565b3480156102b357600080fd5b506101d060025481565b6101396102cb366004611566565b610b08565b3480156102dc57600080fd5b506101d061271081565b3480156102f257600080fd5b506102246103013660046116bc565b610bd0565b34801561031257600080fd5b5061013961032136600461177f565b610c70565b34801561033257600080fd5b506101d060001981565b34801561034857600080fd5b50610139610357366004611542565b610cd7565b610364610d50565b612710811080610375575060001981145b6103c65760405162461bcd60e51b815260206004820181905260248201527f4f4654577261707065723a206f66744270735b5f6f66745d203e3d203130302560448201526064015b60405180910390fd5b6001600160a01b03909116600090815260036020526040902055565b6001600160a01b038316600090815260036020526040812054819081908190600019141561041257506000610454565b6001600160a01b0387166000908152600360205260409020541561044f57506001600160a01b038616600090815260036020526040902054610454565b506002545b61271061046186836117d6565b106104ae5760405162461bcd60e51b815260206004820152601b60248201527f4f4654577261707065723a2046656520627073203e3d2031303025000000000060448201526064016103bd565b600081116104bd5760006104d4565b6127106104ca82886117ee565b6104d4919061180d565b9250600085116104e55760006104fc565b6127106104f286886117ee565b6104fc919061180d565b9150600083118061050d5750600082115b610517578561052c565b81610522848861182f565b61052c919061182f565b93505093509350939050565b610540610daa565b600061054e8c898985610e04565b90508b6001600160a01b0316635190563634338e8e8e878d8d8d8d6040518b63ffffffff1660e01b815260040161058d9998979695949392919061186f565b6000604051808303818588803b1580156105a657600080fd5b505af11580156105ba573d6000803e3d6000fd5b5050505050506105c960018055565b5050505050505050505050565b6105de610d50565b6105e86000610f04565b565b6105f2610daa565b600061060088868685610e04565b9050876001600160a01b0316632cdf0b9534338a8a868a8a6040518863ffffffff1660e01b815260040161063996959493929190611966565b6000604051808303818588803b15801561065257600080fd5b505af1158015610666573d6000803e3d6000fd5b50505050505061067560018055565b50505050505050565b610686610daa565b6000876001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea91906119af565b905060006106fa82878786610f54565b90506107106001600160a01b0383168a83610fb8565b604051632cdf0b9560e01b81526001600160a01b038a1690632cdf0b959034906107489030908d908d9088908d908d90600401611966565b6000604051808303818588803b15801561076157600080fd5b505af1158015610775573d6000803e3d6000fd5b5050604051636eb1769f60e11b81523060048201526001600160a01b038d81166024830152600094508616925063dd62ed3e9150604401602060405180830381865afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed91906119cc565b1115610808576108086001600160a01b0383168a6000610fb8565b505061067560018055565b600080806108238b8986356103e2565b5050604051630d94982d60e21b81529091506001600160a01b038c169063365260b49061085e908d908d9086908d908d908d906004016119e5565b6040805180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e9190611a17565b92509250509850989650505050505050565b6108b8610d50565b61271081106109095760405162461bcd60e51b815260206004820152601e60248201527f4f4654577261707065723a2064656661756c74427073203e3d2031303025000060448201526064016103bd565b600255565b610916610daa565b600061092488868685610e04565b9050876001600160a01b031663695ef6bf34338a8a86896040518763ffffffff1660e01b8152600401610639959493929190611a3b565b610963610daa565b60008b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c791906119af565b905060006109d7828a8a86610f54565b90506109ed6001600160a01b0383168e83610fb8565b8c6001600160a01b0316635190563634308f8f8f878e8e8e8e6040518b63ffffffff1660e01b8152600401610a2a9998979695949392919061186f565b6000604051808303818588803b158015610a4357600080fd5b505af1158015610a57573d6000803e3d6000fd5b5050505050506000816001600160a01b031663dd62ed3e308f6040518363ffffffff1660e01b8152600401610aa29291906001600160a01b0392831681529116602082015260400190565b602060405180830381865afa158015610abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae391906119cc565b1115610afe57610afe6001600160a01b0382168d6000610fb8565b506105c960018055565b610b10610daa565b6000876001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7491906119af565b90506000610b8482878786610f54565b9050610b9a6001600160a01b0383168a83610fb8565b60405163695ef6bf60e01b81526001600160a01b038a169063695ef6bf9034906107489030908d908d9088908c90600401611a3b565b60008080610be08c8986356103e2565b5050604051632a205e3d60e01b81529091506001600160a01b038d1690632a205e3d90610c1d908e908e908e9087908e908e908e90600401611a72565b6040805180830381865afa158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190611a17565b9250925050995099975050505050505050565b610c78610d50565b610c8c6001600160a01b0384168383611105565b604080516001600160a01b038481168252602082018490528516917ff6514f9f283faac4cf3f3a6a702c116227ad0f2c727fb336e4c10b418bc6d613910160405180910390a2505050565b610cdf610d50565b6001600160a01b038116610d445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bd565b610d4d81610f04565b50565b6000546001600160a01b031633146105e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bd565b60026001541415610dfd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103bd565b6002600155565b6000808080610e15888887356103e2565b925092509250858310158015610e2b5750600083115b610e475760405162461bcd60e51b81526004016103bd90611abf565b8115610e6257610e626001600160a01b038916333085611135565b8015610e8e57610e8e33610e7c6040880160208901611542565b6001600160a01b038b16919084611135565b610e9e6060860160408701611b02565b604080516001600160a01b038b168152602081018590529081018390526001600160f01b031991909116907f97bcdc1dd7ab82ef93280983f23d391afea463d0333fddd1a4617693b9ccfeea9060600160405180910390a250909150505b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808080610f65888887356103e2565b925092509250858310158015610f7b5750600083115b610f975760405162461bcd60e51b81526004016103bd90611abf565b610e623330610fa685876117d6565b6001600160a01b038c16929190611135565b8015806110325750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103091906119cc565b155b61109d5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016103bd565b6040516001600160a01b03831660248201526044810182905261110090849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611173565b505050565b6040516001600160a01b03831660248201526044810182905261110090849063a9059cbb60e01b906064016110c9565b6040516001600160a01b038085166024830152831660448201526064810182905261116d9085906323b872dd60e01b906084016110c9565b50505050565b60006111c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112459092919063ffffffff16565b80519091501561110057808060200190518101906111e69190611b2c565b6111005760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103bd565b6060610efc848460008585600080866001600160a01b0316858760405161126c9190611b75565b60006040518083038185875af1925050503d80600081146112a9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ae565b606091505b50915091506112bf878383876112ca565b979650505050505050565b6060831561133657825161132f576001600160a01b0385163b61132f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103bd565b5081610efc565b610efc838381511561134b5781518083602001fd5b8060405162461bcd60e51b81526004016103bd9190611b91565b6001600160a01b0381168114610d4d57600080fd5b803561138581611365565b919050565b6000806040838503121561139d57600080fd5b82356113a881611365565b946020939093013593505050565b6000806000606084860312156113cb57600080fd5b83356113d681611365565b95602085013595506040909401359392505050565b803561ffff8116811461138557600080fd5b60008083601f84011261140f57600080fd5b50813567ffffffffffffffff81111561142757600080fd5b60208301915083602082850101111561143f57600080fd5b9250929050565b60006060828403121561145857600080fd5b50919050565b60008060008060008060008060008060006101608c8e03121561148057600080fd5b61148a8c35611365565b8b359a5061149a60208d016113eb565b995067ffffffffffffffff8060408e013511156114b657600080fd5b6114c68e60408f01358f016113fd565b909a50985060608d0135975060808d013596506114e660a08e0135611365565b60a08d013595506114f960c08e0161137a565b94508060e08e0135111561150c57600080fd5b5061151d8d60e08e01358e016113fd565b90935091506115308d6101008e01611446565b90509295989b509295989b9093969950565b60006020828403121561155457600080fd5b813561155f81611365565b9392505050565b6000806000806000806000610120888a03121561158257600080fd5b873561158d81611365565b965061159b602089016113eb565b955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8111156115cc57600080fd5b6115d88a828b01611446565b9250506115e88960c08a01611446565b905092959891949750929550565b8015158114610d4d57600080fd5b600080600080600080600080610120898b03121561162157600080fd5b883561162c81611365565b975061163a60208a016113eb565b965060408901359550606089013594506080890135611658816115f6565b935060a089013567ffffffffffffffff81111561167457600080fd5b6116808b828c016113fd565b909450925061169490508a60c08b01611446565b90509295985092959890939650565b6000602082840312156116b557600080fd5b5035919050565b60008060008060008060008060006101208a8c0312156116db57600080fd5b89356116e681611365565b98506116f460208b016113eb565b975060408a013567ffffffffffffffff8082111561171157600080fd5b61171d8d838e016113fd565b909950975060608c0135965060808c01359150611739826115f6565b90945060a08b0135908082111561174f57600080fd5b5061175c8c828d016113fd565b909450925061177090508b60c08c01611446565b90509295985092959850929598565b60008060006060848603121561179457600080fd5b833561179f81611365565b925060208401356117af81611365565b929592945050506040919091013590565b634e487b7160e01b600052601160045260246000fd5b600082198211156117e9576117e96117c0565b500190565b6000816000190483118215151615611808576118086117c0565b500290565b60008261182a57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611841576118416117c0565b500390565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600060018060a01b03808c16835261ffff8b16602084015260e0604084015261189c60e084018a8c611846565b886060850152818816608085015281871660a085015283810360c08501526118c5818688611846565b9d9c50505050505050505050505050565b600081356118e381611365565b6001600160a01b0390811684526020830135906118ff82611365565b166020840152604082013536839003601e1901811261191d57600080fd5b8201803567ffffffffffffffff81111561193657600080fd5b80360384131561194557600080fd5b6060604086015261195d606086018260208501611846565b95945050505050565b60018060a01b038716815261ffff8616602082015284604082015283606082015282608082015260c060a082015260006119a360c08301846118d6565b98975050505050505050565b6000602082840312156119c157600080fd5b815161155f81611365565b6000602082840312156119de57600080fd5b5051919050565b61ffff87168152856020820152846040820152831515606082015260a0608082015260006119a360a083018486611846565b60008060408385031215611a2a57600080fd5b505080516020909101519092909150565b60018060a01b038616815261ffff8516602082015283604082015282606082015260a0608082015260006112bf60a08301846118d6565b61ffff8816815260a060208201526000611a9060a08301888a611846565b86604084015285151560608401528281036080840152611ab1818587611846565b9a9950505050505050505050565b60208082526023908201527f4f4654577261707065723a206e6f7420656e6f75676820616d6f756e74546f5360408201526207761760ec1b606082015260800190565b600060208284031215611b1457600080fd5b81356001600160f01b03198116811461155f57600080fd5b600060208284031215611b3e57600080fd5b815161155f816115f6565b60005b83811015611b64578181015183820152602001611b4c565b8381111561116d5750506000910152565b60008251611b87818460208701611b49565b9190910192915050565b6020815260008251806020840152611bb0816040850160208701611b49565b601f01601f1916919091016040019291505056fea26469706673582212206d8b0a636b25fa76deabcb0a517df56eada041f7bd0fd256b4894ea86cb77a3764736f6c634300080c00330000000000000000000000000000000000000000000000000000000000000002Deployed Bytecode
0x6080604052600436106101145760003560e01c8063a46d74bc116100a0578063e1a4521811610064578063e1a45218146102d0578063e1bafc80146102e6578063e55dc4e614610306578063e5b5019a14610326578063f2fde38b1461033c57600080fd5b8063a46d74bc14610261578063a8198c0014610281578063c3c8032a14610294578063d1b308dc146102a7578063dda16a10146102bd57600080fd5b80637a751182116100e75780637a751182146101a357806385154849146101de5780638bcb586c146101f15780638d8c915c146102045780638da5cb5b1461023957600080fd5b80630c3d27561461011957806317696f641461013b578063498eff641461017b578063715018a61461018e575b600080fd5b34801561012557600080fd5b5061013961013436600461138a565b61035c565b005b34801561014757600080fd5b5061015b6101563660046113b6565b6103e2565b604080519384526020840192909252908201526060015b60405180910390f35b61013961018936600461145e565b610538565b34801561019a57600080fd5b506101396105d6565b3480156101af57600080fd5b506101d06101be366004611542565b60036020526000908152604090205481565b604051908152602001610172565b6101396101ec366004611566565b6105ea565b6101396101ff366004611566565b61067e565b34801561021057600080fd5b5061022461021f366004611604565b610813565b60408051928352602083019190915201610172565b34801561024557600080fd5b506000546040516001600160a01b039091168152602001610172565b34801561026d57600080fd5b5061013961027c3660046116a3565b6108b0565b61013961028f366004611566565b61090e565b6101396102a236600461145e565b61095b565b3480156102b357600080fd5b506101d060025481565b6101396102cb366004611566565b610b08565b3480156102dc57600080fd5b506101d061271081565b3480156102f257600080fd5b506102246103013660046116bc565b610bd0565b34801561031257600080fd5b5061013961032136600461177f565b610c70565b34801561033257600080fd5b506101d060001981565b34801561034857600080fd5b50610139610357366004611542565b610cd7565b610364610d50565b612710811080610375575060001981145b6103c65760405162461bcd60e51b815260206004820181905260248201527f4f4654577261707065723a206f66744270735b5f6f66745d203e3d203130302560448201526064015b60405180910390fd5b6001600160a01b03909116600090815260036020526040902055565b6001600160a01b038316600090815260036020526040812054819081908190600019141561041257506000610454565b6001600160a01b0387166000908152600360205260409020541561044f57506001600160a01b038616600090815260036020526040902054610454565b506002545b61271061046186836117d6565b106104ae5760405162461bcd60e51b815260206004820152601b60248201527f4f4654577261707065723a2046656520627073203e3d2031303025000000000060448201526064016103bd565b600081116104bd5760006104d4565b6127106104ca82886117ee565b6104d4919061180d565b9250600085116104e55760006104fc565b6127106104f286886117ee565b6104fc919061180d565b9150600083118061050d5750600082115b610517578561052c565b81610522848861182f565b61052c919061182f565b93505093509350939050565b610540610daa565b600061054e8c898985610e04565b90508b6001600160a01b0316635190563634338e8e8e878d8d8d8d6040518b63ffffffff1660e01b815260040161058d9998979695949392919061186f565b6000604051808303818588803b1580156105a657600080fd5b505af11580156105ba573d6000803e3d6000fd5b5050505050506105c960018055565b5050505050505050505050565b6105de610d50565b6105e86000610f04565b565b6105f2610daa565b600061060088868685610e04565b9050876001600160a01b0316632cdf0b9534338a8a868a8a6040518863ffffffff1660e01b815260040161063996959493929190611966565b6000604051808303818588803b15801561065257600080fd5b505af1158015610666573d6000803e3d6000fd5b50505050505061067560018055565b50505050505050565b610686610daa565b6000876001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156106c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ea91906119af565b905060006106fa82878786610f54565b90506107106001600160a01b0383168a83610fb8565b604051632cdf0b9560e01b81526001600160a01b038a1690632cdf0b959034906107489030908d908d9088908d908d90600401611966565b6000604051808303818588803b15801561076157600080fd5b505af1158015610775573d6000803e3d6000fd5b5050604051636eb1769f60e11b81523060048201526001600160a01b038d81166024830152600094508616925063dd62ed3e9150604401602060405180830381865afa1580156107c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ed91906119cc565b1115610808576108086001600160a01b0383168a6000610fb8565b505061067560018055565b600080806108238b8986356103e2565b5050604051630d94982d60e21b81529091506001600160a01b038c169063365260b49061085e908d908d9086908d908d908d906004016119e5565b6040805180830381865afa15801561087a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061089e9190611a17565b92509250509850989650505050505050565b6108b8610d50565b61271081106109095760405162461bcd60e51b815260206004820152601e60248201527f4f4654577261707065723a2064656661756c74427073203e3d2031303025000060448201526064016103bd565b600255565b610916610daa565b600061092488868685610e04565b9050876001600160a01b031663695ef6bf34338a8a86896040518763ffffffff1660e01b8152600401610639959493929190611a3b565b610963610daa565b60008b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c791906119af565b905060006109d7828a8a86610f54565b90506109ed6001600160a01b0383168e83610fb8565b8c6001600160a01b0316635190563634308f8f8f878e8e8e8e6040518b63ffffffff1660e01b8152600401610a2a9998979695949392919061186f565b6000604051808303818588803b158015610a4357600080fd5b505af1158015610a57573d6000803e3d6000fd5b5050505050506000816001600160a01b031663dd62ed3e308f6040518363ffffffff1660e01b8152600401610aa29291906001600160a01b0392831681529116602082015260400190565b602060405180830381865afa158015610abf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ae391906119cc565b1115610afe57610afe6001600160a01b0382168d6000610fb8565b506105c960018055565b610b10610daa565b6000876001600160a01b031663fc0c546a6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7491906119af565b90506000610b8482878786610f54565b9050610b9a6001600160a01b0383168a83610fb8565b60405163695ef6bf60e01b81526001600160a01b038a169063695ef6bf9034906107489030908d908d9088908c90600401611a3b565b60008080610be08c8986356103e2565b5050604051632a205e3d60e01b81529091506001600160a01b038d1690632a205e3d90610c1d908e908e908e9087908e908e908e90600401611a72565b6040805180830381865afa158015610c39573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5d9190611a17565b9250925050995099975050505050505050565b610c78610d50565b610c8c6001600160a01b0384168383611105565b604080516001600160a01b038481168252602082018490528516917ff6514f9f283faac4cf3f3a6a702c116227ad0f2c727fb336e4c10b418bc6d613910160405180910390a2505050565b610cdf610d50565b6001600160a01b038116610d445760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103bd565b610d4d81610f04565b50565b6000546001600160a01b031633146105e85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103bd565b60026001541415610dfd5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103bd565b6002600155565b6000808080610e15888887356103e2565b925092509250858310158015610e2b5750600083115b610e475760405162461bcd60e51b81526004016103bd90611abf565b8115610e6257610e626001600160a01b038916333085611135565b8015610e8e57610e8e33610e7c6040880160208901611542565b6001600160a01b038b16919084611135565b610e9e6060860160408701611b02565b604080516001600160a01b038b168152602081018590529081018390526001600160f01b031991909116907f97bcdc1dd7ab82ef93280983f23d391afea463d0333fddd1a4617693b9ccfeea9060600160405180910390a250909150505b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808080610f65888887356103e2565b925092509250858310158015610f7b5750600083115b610f975760405162461bcd60e51b81526004016103bd90611abf565b610e623330610fa685876117d6565b6001600160a01b038c16929190611135565b8015806110325750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa15801561100c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103091906119cc565b155b61109d5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016103bd565b6040516001600160a01b03831660248201526044810182905261110090849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611173565b505050565b6040516001600160a01b03831660248201526044810182905261110090849063a9059cbb60e01b906064016110c9565b6040516001600160a01b038085166024830152831660448201526064810182905261116d9085906323b872dd60e01b906084016110c9565b50505050565b60006111c8826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112459092919063ffffffff16565b80519091501561110057808060200190518101906111e69190611b2c565b6111005760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103bd565b6060610efc848460008585600080866001600160a01b0316858760405161126c9190611b75565b60006040518083038185875af1925050503d80600081146112a9576040519150601f19603f3d011682016040523d82523d6000602084013e6112ae565b606091505b50915091506112bf878383876112ca565b979650505050505050565b6060831561133657825161132f576001600160a01b0385163b61132f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103bd565b5081610efc565b610efc838381511561134b5781518083602001fd5b8060405162461bcd60e51b81526004016103bd9190611b91565b6001600160a01b0381168114610d4d57600080fd5b803561138581611365565b919050565b6000806040838503121561139d57600080fd5b82356113a881611365565b946020939093013593505050565b6000806000606084860312156113cb57600080fd5b83356113d681611365565b95602085013595506040909401359392505050565b803561ffff8116811461138557600080fd5b60008083601f84011261140f57600080fd5b50813567ffffffffffffffff81111561142757600080fd5b60208301915083602082850101111561143f57600080fd5b9250929050565b60006060828403121561145857600080fd5b50919050565b60008060008060008060008060008060006101608c8e03121561148057600080fd5b61148a8c35611365565b8b359a5061149a60208d016113eb565b995067ffffffffffffffff8060408e013511156114b657600080fd5b6114c68e60408f01358f016113fd565b909a50985060608d0135975060808d013596506114e660a08e0135611365565b60a08d013595506114f960c08e0161137a565b94508060e08e0135111561150c57600080fd5b5061151d8d60e08e01358e016113fd565b90935091506115308d6101008e01611446565b90509295989b509295989b9093969950565b60006020828403121561155457600080fd5b813561155f81611365565b9392505050565b6000806000806000806000610120888a03121561158257600080fd5b873561158d81611365565b965061159b602089016113eb565b955060408801359450606088013593506080880135925060a088013567ffffffffffffffff8111156115cc57600080fd5b6115d88a828b01611446565b9250506115e88960c08a01611446565b905092959891949750929550565b8015158114610d4d57600080fd5b600080600080600080600080610120898b03121561162157600080fd5b883561162c81611365565b975061163a60208a016113eb565b965060408901359550606089013594506080890135611658816115f6565b935060a089013567ffffffffffffffff81111561167457600080fd5b6116808b828c016113fd565b909450925061169490508a60c08b01611446565b90509295985092959890939650565b6000602082840312156116b557600080fd5b5035919050565b60008060008060008060008060006101208a8c0312156116db57600080fd5b89356116e681611365565b98506116f460208b016113eb565b975060408a013567ffffffffffffffff8082111561171157600080fd5b61171d8d838e016113fd565b909950975060608c0135965060808c01359150611739826115f6565b90945060a08b0135908082111561174f57600080fd5b5061175c8c828d016113fd565b909450925061177090508b60c08c01611446565b90509295985092959850929598565b60008060006060848603121561179457600080fd5b833561179f81611365565b925060208401356117af81611365565b929592945050506040919091013590565b634e487b7160e01b600052601160045260246000fd5b600082198211156117e9576117e96117c0565b500190565b6000816000190483118215151615611808576118086117c0565b500290565b60008261182a57634e487b7160e01b600052601260045260246000fd5b500490565b600082821015611841576118416117c0565b500390565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600060018060a01b03808c16835261ffff8b16602084015260e0604084015261189c60e084018a8c611846565b886060850152818816608085015281871660a085015283810360c08501526118c5818688611846565b9d9c50505050505050505050505050565b600081356118e381611365565b6001600160a01b0390811684526020830135906118ff82611365565b166020840152604082013536839003601e1901811261191d57600080fd5b8201803567ffffffffffffffff81111561193657600080fd5b80360384131561194557600080fd5b6060604086015261195d606086018260208501611846565b95945050505050565b60018060a01b038716815261ffff8616602082015284604082015283606082015282608082015260c060a082015260006119a360c08301846118d6565b98975050505050505050565b6000602082840312156119c157600080fd5b815161155f81611365565b6000602082840312156119de57600080fd5b5051919050565b61ffff87168152856020820152846040820152831515606082015260a0608082015260006119a360a083018486611846565b60008060408385031215611a2a57600080fd5b505080516020909101519092909150565b60018060a01b038616815261ffff8516602082015283604082015282606082015260a0608082015260006112bf60a08301846118d6565b61ffff8816815260a060208201526000611a9060a08301888a611846565b86604084015285151560608401528281036080840152611ab1818587611846565b9a9950505050505050505050565b60208082526023908201527f4f4654577261707065723a206e6f7420656e6f75676820616d6f756e74546f5360408201526207761760ec1b606082015260800190565b600060208284031215611b1457600080fd5b81356001600160f01b03198116811461155f57600080fd5b600060208284031215611b3e57600080fd5b815161155f816115f6565b60005b83811015611b64578181015183820152602001611b4c565b8381111561116d5750506000910152565b60008251611b87818460208701611b49565b9190910192915050565b6020815260008251806020840152611bb0816040850160208701611b49565b601f01601f1916919091016040019291505056fea26469706673582212206d8b0a636b25fa76deabcb0a517df56eada041f7bd0fd256b4894ea86cb77a3764736f6c634300080c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000000000000000000000000000000000000000000002
-----Decoded View---------------
Arg [0] : _defaultBps (uint256): 2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000002Loading...LoadingLoading...Loading
Loading...Loading
Loading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingLoading...LoadingMultichain Portfolio | 30 Chains
Chain Token Portfolio % Price Amount Value ARB 6.49% $57.09 116.1724 $6,632.28 ARB 5.23% $0.000021 259,982,907.9849 $5,345.25 ARB 4.72% $97,714 0.0494 $4,822.37 ARB 3.23% $0.068 48,528.2279 $3,299.92 ARB 2.58% $1 2,630.2865 $2,632.92 ARB 0.91% $17.81 52.3316 $932.03 ARB 0.87% $0.437312 2,031.4986 $888.4 ARB 0.79% $3,664.02 0.2214 $811.15 ARB 0.50% $0.039466 13,050.6388 $515.06 ARB 0.47% $3,568.72 0.1348 $481.12 ARB 0.41% $2.27 182.5077 $414.29 ARB 0.08% $0.000057 1,382,195.9689 $78.34 ARB 0.06% $0.011097 5,554.8424 $61.64 ARB 0.02% <$0.000001 75,176,767.6802 $20.5 ARB 0.02% $0.014175 1,393.1006 $19.75 ARB 0.01% $0.000483 26,589.4779 $12.83 ARB <0.01% $0.00052 15,614.8068 $8.12 ARB <0.01% $0.003595 1,972.9316 $7.09 ARB <0.01% $0.011812 372.9193 $4.4 ARB <0.01% $0.001864 1,869.8279 $3.49 ARB <0.01% $0.046819 31.909 $1.49 ARB <0.01% $0.012837 78.5389 $1.01 ARB <0.01% <$0.000001 17,484,796.7985 $0.3864 ETH 4.81% $0.000021 238,972,294.5465 $4,913.27 ETH 4.01% $0.213239 19,235.4955 $4,101.76 ETH 2.90% $3,413.99 0.87 $2,970.06 ETH 2.17% $1 2,217.609 $2,217.61 ETH 1.89% $0.999147 1,932.322 $1,930.67 ETH 1.31% $1 1,333.7858 $1,336.45 ETH 1.05% $0.016453 65,396.9141 $1,075.97 ETH 1.05% $0.248882 4,313.1025 $1,073.45 ETH 0.98% $3,675.72 0.2735 $1,005.37 ETH 0.63% $4,045.87 0.1597 $646.22 ETH 0.60% $97,183 0.00631949 $614.15 ETH 0.59% $2.27 265.1688 $601.93 ETH 0.57% $57.09 10.1403 $578.91 ETH 0.42% $3,568.72 0.1216 $434.08 ETH 0.38% $0.068 5,711.5304 $388.38 ETH 0.37% $0.02737 13,736.8702 $375.97 ETH 0.29% $1 292.3258 $292.62 ETH 0.26% $0.036871 7,260.5856 $267.7 ETH 0.17% $1.55 113.3734 $175.63 ETH 0.12% $0.046246 2,633.2399 $121.78 ETH 0.09% $0.012837 6,922.8524 $88.87 ETH 0.06% $0.003606 17,993.197 $64.89 ETH 0.06% $0.000057 1,126,988.4762 $63.88 ETH 0.05% $0.000474 112,327.3887 $53.19 ETH 0.05% $0.00035 139,634.9929 $48.9 ETH 0.05% $0.011968 3,921.3812 $46.93 ETH 0.04% $0.572373 70.4589 $40.33 ETH 0.04% $0.003922 10,153.5464 $39.82 ETH 0.04% <$0.000001 133,577,456.9843 $36.43 ETH 0.02% $0.014172 1,707.7374 $24.2 ETH 0.02% $0.001997 9,836.2084 $19.64 ETH 0.01% $2.52 4.5126 $11.37 ETH 0.01% $0.001853 6,123.1537 $11.35 ETH <0.01% $0.004831 2,100.0829 $10.15 ETH <0.01% $0.000206 49,158.9664 $10.14 ETH <0.01% $0.933755 9.7657 $9.12 ETH <0.01% $0.001864 1,598.0017 $2.98 ETH <0.01% $0.047542 54.0878 $2.57 ETH <0.01% $0.995524 2.1864 $2.18 ETH <0.01% $1.33 1.6272 $2.16 ETH <0.01% $0.512261 3.3219 $1.7 ETH <0.01% $0.04676 30.1384 $1.41 ETH <0.01% $0.996042 1.2264 $1.22 ETH <0.01% <$0.000001 6,075,496.5792 $0.4714 ETH <0.01% $0.041803 7.3342 $0.3065 ETH <0.01% $189 0.00139559 $0.2637 FTM 9.24% $0.999638 9,447.1682 $9,443.75 FTM 1.96% $1 2,003.1531 $2,003.15 FTM 1.28% $1 1,303.632 $1,304.94 FTM 1.25% $0.016267 78,413.7047 $1,275.58 FTM 1.18% $3,415.37 0.3532 $1,206.47 FTM 0.51% $97,260 0.00533465 $518.85 FTM 0.28% $0.999663 290.3693 $290.27 FTM 0.14% $0.03493 4,225.4454 $147.6 FTM <0.01% $0.994648 1.9302 $1.92 FTM <0.01% $0.513449 1.2558 $0.6447 BSC 3.39% $0.000021 168,742,658.235 $3,471.04 BSC 2.33% $654.15 3.6411 $2,381.83 BSC 1.69% $2.28 758.3605 $1,729.06 BSC 1.63% $0.213551 7,800.3858 $1,665.78 BSC 1.46% $1.54 971.2771 $1,495.77 BSC 1.14% $0.039452 29,587.401 $1,167.27 BSC 0.92% $0.998246 944.5054 $942.85 BSC 0.87% $3,577.14 0.249 $890.57 BSC 0.64% $0.067974 9,684.4781 $658.29 BSC 0.57% $0.436158 1,332.6182 $581.23 BSC 0.21% $0.011855 17,682.041 $209.62 BSC 0.19% $0.036689 5,306.3133 $194.68 BSC 0.10% $0.011026 8,831.0086 $97.37 BSC 0.06% $0.000057 1,136,735.6589 $64.84 BSC 0.03% $0.00483 6,852.198 $33.1 BSC 0.03% $0.046241 668.711 $30.92 BSC 0.02% $0.011812 2,162.115 $25.54 BSC 0.02% <$0.000001 73,338,281.772 $20.19 BSC <0.01% $0.00052 12,953.178 $6.74 BSC <0.01% $0.001866 1,983.2082 $3.7 BSC <0.01% $0.001786 289.8454 $0.5175 BSC <0.01% $187.4 0.00228993 $0.4291 AVAX 12.32% $97,750 0.1289 $12,599.79 AVAX 1.46% $0.437119 3,407.0448 $1,489.28 AVAX 1.26% $1 1,284.8832 $1,285.49 AVAX 0.01% $0.000483 26,706.4246 $12.9 ZKEVM 1.06% $2.28 473.3377 $1,079.21 OP 0.85% $1 867.1422 $868.01 OP <0.01% $0.046819 17.9448 $0.8401 POL 0.25% $0.011855 21,477.9717 $254.62 POL 0.05% $0.000057 896,769.2262 $51.15 POL 0.01% $0.000474 27,696.8066 $13.12 POL <0.01% $0.001999 132.09 $0.264 POL <0.01% $0.000414 500 $0.207 ZKSYNC 0.02% $3,411.13 0.00465267 $15.87 BASE <0.01% $3,414.67 0.00036256 $1.24 MANTLE <0.01% $0.880802 0.00119886 $0.001056 Loading...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), AbiReencodingHeadOverflowWithStaticArrayCleanup (medium-severity), DirtyBytesArrayToStorage (low-severity), DataLocationChangeInInternalOverride (very low-severity), NestedCalldataArrayAbiReencodingSizeValidation (very low-severity), AbiEncodeCallLiteralAsFixedBytesBug (very 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.SignIn
Address Cards
To use this feature, please login to your Etherscan account and return to this page.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.