Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xEF5bB400...5d1B3f6A9 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
TokenExchanger
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import "./common/BaseFeature.sol"; import "../../lib/other/ERC20.sol"; import "../../lib/paraswap/IAugustusSwapper.sol"; import "../infrastructure/ITokenPriceRegistry.sol"; import "../infrastructure/IDexRegistry.sol"; /** * @title TokenExchanger * @notice Module to trade tokens (ETH or ERC20) using ParaSwap. * @author Olivier VDB - <[email protected]> */ contract TokenExchanger is BaseFeature { bytes32 constant NAME = "TokenExchanger"; using SafeMath for uint256; // Mock token address for ETH address constant internal ETH_TOKEN_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; // Signatures of Paraswap's trade methods // solhint-disable-next-line max-line-length bytes4 constant internal MULTISWAP = 0xcbd1603e; // bytes4(keccak256("multiSwap(address,address,uint256,uint256,uint256,(address,uint256,(address,address,uint256,bytes,uint256)[])[],uint256,address,uint256,string)")) // solhint-disable-next-line max-line-length bytes4 constant internal BUY = 0xbb2a349b; // bytes4(keccak256("buy(address,address,uint256,uint256,uint256,(address,address,uint256,uint256,bytes,uint256)[],uint256,address,uint256,string)")) // The address of the Paraswap Proxy contract address public paraswapProxy; // The address of the Paraswap contract address public paraswapSwapper; // The label of the referrer string public referrer; // Registry of authorised exchanges IDexRegistry public dexRegistry; // The token price registry ITokenPriceRegistry public tokenPriceRegistry; event TokenExchanged(address indexed wallet, address srcToken, uint srcAmount, address destToken, uint destAmount); // *************** Constructor ********************** // constructor( ILockStorage _lockStorage, ITokenPriceRegistry _tokenPriceRegistry, IVersionManager _versionManager, IDexRegistry _dexRegistry, address _paraswap, string memory _referrer ) BaseFeature(_lockStorage, _versionManager, NAME) public { tokenPriceRegistry = _tokenPriceRegistry; dexRegistry = _dexRegistry; paraswapSwapper = _paraswap; paraswapProxy = IAugustusSwapper(_paraswap).getTokenTransferProxy(); referrer = _referrer; } /** * @inheritdoc IFeature */ function getRequiredSignatures(address, bytes calldata) external view override returns (uint256, OwnerSignature) { return (1, OwnerSignature.Required); } /** * @notice Lets the owner of the wallet execute a "sell" trade (fixed source amount, variable destination amount). * @param _wallet The target wallet * @param _srcToken The address of the source token. * @param _destToken The address of the destination token. * @param _srcAmount The exact amount of source tokens to sell. * @param _minDestAmount The minimum amount of destination tokens required for the trade. * @param _expectedDestAmount The expected amount of destination tokens (used only in ParaSwap's Swapped event). * @param _path Sequence of sets of weighted ParaSwap routes. Each route specifies an exchange to use to convert a given (exact) amount of * a given source token into a given (minimum) amount of a given destination token. The path is a sequence of sets of weighted routes where * the destination token of a set of weighted routes matches the source token of the next set of weighted routes in the path. * @param _mintPrice gasPrice (in wei) at the time the gas tokens were minted by ParaSwap. 0 means gas token will not be used by ParaSwap */ function sell( address _wallet, address _srcToken, address _destToken, uint256 _srcAmount, uint256 _minDestAmount, uint256 _expectedDestAmount, IAugustusSwapper.Path[] calldata _path, uint256 _mintPrice ) external onlyWalletOwnerOrFeature(_wallet) onlyWhenUnlocked(_wallet) { // Verify that the destination token is tradable verifyTradable(_destToken); // Verify that the exchange adapters used have been authorised verifyExchangeAdapters(_path); // Approve source amount if required uint previousAllowance = approveToken(_wallet, _srcToken, _srcAmount); // Perform trade and emit event doSell( _wallet, _srcToken, _destToken, _srcAmount, _minDestAmount, _expectedDestAmount, _path, _mintPrice); // Restore the previous allowance if needed. This should only be needed when the previous allowance // was infinite. In other cases, paraswap.multiSwap() should have used exactly the additional allowance // granted to it and therefore the previous allowance should have been restored. restoreAllowance(_wallet, _srcToken, previousAllowance); } /** * @notice Lets the owner of the wallet execute a "buy" trade (fixed destination amount, variable source amount). * @param _wallet The target wallet * @param _srcToken The address of the source token. * @param _destToken The address of the destination token. * @param _maxSrcAmount The maximum amount of source tokens to use for the trade. * @param _destAmount The exact amount of destination tokens to buy. * @param _expectedSrcAmount The expected amount of source tokens (used only in ParaSwap's Bought event). * @param _routes Set of weighted ParaSwap routes. Each route specifies an exchange to use to convert a given (maximum) amount of a given * source token into a given (exact) amount of a given destination token. * @param _mintPrice gasPrice (in wei) at the time the gas tokens were minted by ParaSwap. 0 means gas token will not be used by ParaSwap */ function buy( address _wallet, address _srcToken, address _destToken, uint256 _maxSrcAmount, uint256 _destAmount, uint256 _expectedSrcAmount, IAugustusSwapper.BuyRoute[] calldata _routes, uint256 _mintPrice ) external onlyWalletOwnerOrFeature(_wallet) onlyWhenUnlocked(_wallet) { // Verify that the destination token is tradable verifyTradable(_destToken); // Verify that the exchange adapters used have been authorised verifyExchangeAdapters(_routes); // Approve source amount if required uint previousAllowance = approveToken(_wallet, _srcToken, _maxSrcAmount); // Perform trade and emit event doBuy( _wallet, _srcToken, _destToken, _maxSrcAmount, _destAmount, _expectedSrcAmount, _routes, _mintPrice); // Restore the previous allowance if needed (paraswap.buy() may not have used exactly the additional allowance granted to it) restoreAllowance(_wallet, _srcToken, previousAllowance); } // Internal & Private Methods function verifyTradable(address _token) internal view { require((_token == ETH_TOKEN_ADDRESS) || tokenPriceRegistry.isTokenTradable(_token), "TE: Token not tradable"); } function verifyExchangeAdapters(IAugustusSwapper.Path[] calldata _path) internal view { dexRegistry.verifyExchangeAdapters(_path); } function verifyExchangeAdapters(IAugustusSwapper.BuyRoute[] calldata _routes) internal view { dexRegistry.verifyExchangeAdapters(_routes); } function approveToken(address _wallet, address _token, uint _amount) internal returns (uint256 _existingAllowance) { // TODO: Use a "safe approve" logic similar to the one implemented below in other modules if (_token != ETH_TOKEN_ADDRESS) { _existingAllowance = ERC20(_token).allowance(_wallet, paraswapProxy); if (_existingAllowance < uint256(-1)) { if (_existingAllowance > 0) { // Clear the existing allowance to avoid issues with tokens like USDT that do not allow changing a non-zero allowance invokeWallet(_wallet, _token, 0, abi.encodeWithSignature("approve(address,uint256)", paraswapProxy, 0)); } // Increase the allowance to include the required amount uint256 newAllowance = SafeMath.add(_existingAllowance, _amount); invokeWallet( _wallet, _token, 0, abi.encodeWithSignature("approve(address,uint256)", paraswapProxy, newAllowance) ); } } } function restoreAllowance(address _wallet, address _token, uint _previousAllowance) internal { if (_token != ETH_TOKEN_ADDRESS) { uint allowance = ERC20(_token).allowance(_wallet, paraswapProxy); if (allowance != _previousAllowance) { invokeWallet( _wallet, _token, 0, abi.encodeWithSignature("approve(address,uint256)", paraswapProxy, _previousAllowance) ); } } } function doTradeAndEmitEvent( address _wallet, address _srcToken, address _destToken, uint256 _srcAmount, uint256 _destAmount, bytes memory tradeData ) internal { // Perform the trade bytes memory swapRes = invokeWallet( _wallet, paraswapSwapper, _srcToken == ETH_TOKEN_ADDRESS ? _srcAmount : 0, tradeData ); // Emit event with best possible estimate of destination amount uint256 estimatedDestAmount; if (swapRes.length > 0) { (estimatedDestAmount) = abi.decode(swapRes, (uint256)); } else { estimatedDestAmount = _destAmount; } emit TokenExchanged(_wallet, _srcToken, _srcAmount, _destToken, estimatedDestAmount); } function doSell( address _wallet, address _srcToken, address _destToken, uint256 _srcAmount, uint256 _minDestAmount, uint256 _expectedDestAmount, IAugustusSwapper.Path[] calldata _path, uint256 _mintPrice ) internal { // Build the calldata string memory ref = referrer; bytes memory tradeData = abi.encodeWithSelector(MULTISWAP, _srcToken, _destToken, _srcAmount, _minDestAmount, _expectedDestAmount, _path, _mintPrice, address(0), 0, ref); // Perform the trade doTradeAndEmitEvent(_wallet, _srcToken, _destToken, _srcAmount, _minDestAmount, tradeData); } function doBuy( address _wallet, address _srcToken, address _destToken, uint256 _maxSrcAmount, uint256 _destAmount, uint256 _expectedSrcAmount, IAugustusSwapper.BuyRoute[] calldata _routes, uint256 _mintPrice ) internal { // Build the calldata string memory ref = referrer; bytes memory tradeData = abi.encodeWithSelector(BUY, _srcToken, _destToken, _maxSrcAmount, _destAmount, _expectedSrcAmount, _routes, _mintPrice, address(0), 0, ref); // Perform the trade doTradeAndEmitEvent(_wallet, _srcToken, _destToken, _maxSrcAmount, _destAmount, tradeData); } }
// Copyright (C) 2020 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; import "../../lib/paraswap/IAugustusSwapper.sol"; /** * @title IDexRegistry * @notice Interface for DexRegistry. * @author Olivier VDB - <[email protected]> */ interface IDexRegistry { function verifyExchangeAdapters(IAugustusSwapper.Path[] calldata _path) external view; function verifyExchangeAdapters(IAugustusSwapper.BuyRoute[] calldata _routes) external view; }
// Copyright (C) 2020 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.4 <0.7.0; /** * @title IModuleRegistry * @notice Interface for the registry of authorised modules. */ interface IModuleRegistry { function registerModule(address _module, bytes32 _name) external; function deregisterModule(address _module) external; function registerUpgrader(address _upgrader, bytes32 _name) external; function deregisterUpgrader(address _upgrader) external; function recoverToken(address _token) external; function moduleInfo(address _module) external view returns (bytes32); function upgraderInfo(address _upgrader) external view returns (bytes32); function isRegisteredModule(address _module) external view returns (bool); function isRegisteredModule(address[] calldata _modules) external view returns (bool); function isRegisteredUpgrader(address _upgrader) external view returns (bool); }
// This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.12; /** * @title ITokenPriceRegistry * @notice TokenPriceRegistry interface */ interface ITokenPriceRegistry { function getTokenPrice(address _token) external view returns (uint184 _price); function isTokenTradable(address _token) external view returns (bool _isTradable); }
// This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.12; pragma experimental ABIEncoderV2; /** * @title ILimitStorage * @notice LimitStorage interface */ interface ILimitStorage { struct Limit { // the current limit uint128 current; // the pending limit if any uint128 pending; // when the pending limit becomes the current limit uint64 changeAfter; } struct DailySpent { // The amount already spent during the current period uint128 alreadySpent; // The end of the current period uint64 periodEnd; } function setLimit(address _wallet, Limit memory _limit) external; function getLimit(address _wallet) external view returns (Limit memory _limit); function setDailySpent(address _wallet, DailySpent memory _dailySpent) external; function getDailySpent(address _wallet) external view returns (DailySpent memory _dailySpent); function setLimitAndDailySpent(address _wallet, Limit memory _limit, DailySpent memory _dailySpent) external; function getLimitAndDailySpent(address _wallet) external view returns (Limit memory _limit, DailySpent memory _dailySpent); }
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.4 <0.7.0; interface ILockStorage { function isLocked(address _wallet) external view returns (bool); function getLock(address _wallet) external view returns (uint256); function getLocker(address _wallet) external view returns (address); function setLock(address _wallet, address _locker, uint256 _releaseAfter) external; }
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details.s // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.6.12; import "@openzeppelin/contracts/math/SafeMath.sol"; import "../../wallet/IWallet.sol"; import "../../infrastructure/IModuleRegistry.sol"; import "../../infrastructure/storage/ILockStorage.sol"; import "./IFeature.sol"; import "../../../lib/other/ERC20.sol"; import "./IVersionManager.sol"; /** * @title BaseFeature * @notice Base Feature contract that contains methods common to all Feature contracts. * @author Julien Niset - <[email protected]>, Olivier VDB - <[email protected]> */ contract BaseFeature is IFeature { // Empty calldata bytes constant internal EMPTY_BYTES = ""; // Mock token address for ETH address constant internal ETH_TOKEN = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; // The address of the Lock storage ILockStorage internal lockStorage; // The address of the Version Manager IVersionManager internal versionManager; event FeatureCreated(bytes32 name); /** * @notice Throws if the wallet is locked. */ modifier onlyWhenUnlocked(address _wallet) { require(!lockStorage.isLocked(_wallet), "BF: wallet locked"); _; } /** * @notice Throws if the sender is not the VersionManager. */ modifier onlyVersionManager() { require(msg.sender == address(versionManager), "BF: caller must be VersionManager"); _; } /** * @notice Throws if the sender is not the owner of the target wallet. */ modifier onlyWalletOwner(address _wallet) { require(isOwner(_wallet, msg.sender), "BF: must be wallet owner"); _; } /** * @notice Throws if the sender is not an authorised feature of the target wallet. */ modifier onlyWalletFeature(address _wallet) { require(versionManager.isFeatureAuthorised(_wallet, msg.sender), "BF: must be a wallet feature"); _; } /** * @notice Throws if the sender is not the owner of the target wallet or the feature itself. */ modifier onlyWalletOwnerOrFeature(address _wallet) { // Wrapping in an internal method reduces deployment cost by avoiding duplication of inlined code verifyOwnerOrAuthorisedFeature(_wallet, msg.sender); _; } constructor( ILockStorage _lockStorage, IVersionManager _versionManager, bytes32 _name ) public { lockStorage = _lockStorage; versionManager = _versionManager; emit FeatureCreated(_name); } /** * @inheritdoc IFeature */ function recoverToken(address _token) external virtual override { uint total = ERC20(_token).balanceOf(address(this)); _token.call(abi.encodeWithSelector(ERC20(_token).transfer.selector, address(versionManager), total)); } /** * @notice Inits the feature for a wallet by doing nothing. * @dev !! Overriding methods need make sure `init()` can only be called by the VersionManager !! * @param _wallet The wallet. */ function init(address _wallet) external virtual override {} /** * @inheritdoc IFeature */ function getRequiredSignatures(address, bytes calldata) external virtual view override returns (uint256, OwnerSignature) { revert("BF: disabled method"); } /** * @inheritdoc IFeature */ function getStaticCallSignatures() external virtual override view returns (bytes4[] memory _sigs) {} /** * @inheritdoc IFeature */ function isFeatureAuthorisedInVersionManager(address _wallet, address _feature) public override view returns (bool) { return versionManager.isFeatureAuthorised(_wallet, _feature); } /** * @notice Checks that the wallet address provided as the first parameter of _data matches _wallet * @return false if the addresses are different. */ function verifyData(address _wallet, bytes calldata _data) internal pure returns (bool) { require(_data.length >= 36, "RM: Invalid dataWallet"); address dataWallet = abi.decode(_data[4:], (address)); return dataWallet == _wallet; } /** * @notice Helper method to check if an address is the owner of a target wallet. * @param _wallet The target wallet. * @param _addr The address. */ function isOwner(address _wallet, address _addr) internal view returns (bool) { return IWallet(_wallet).owner() == _addr; } /** * @notice Verify that the caller is an authorised feature or the wallet owner. * @param _wallet The target wallet. * @param _sender The caller. */ function verifyOwnerOrAuthorisedFeature(address _wallet, address _sender) internal view { require(isFeatureAuthorisedInVersionManager(_wallet, _sender) || isOwner(_wallet, _sender), "BF: must be owner or feature"); } /** * @notice Helper method to invoke a wallet. * @param _wallet The target wallet. * @param _to The target address for the transaction. * @param _value The value of the transaction. * @param _data The data of the transaction. */ function invokeWallet(address _wallet, address _to, uint256 _value, bytes memory _data) internal returns (bytes memory _res) { _res = versionManager.checkAuthorisedFeatureAndInvokeWallet(_wallet, _to, _value, _data); } }
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.4 <0.7.0; /** * @title IFeature * @notice Interface for a Feature. * @author Julien Niset - <[email protected]>, Olivier VDB - <[email protected]> */ interface IFeature { enum OwnerSignature { Anyone, // Anyone Required, // Owner required Optional, // Owner and/or guardians Disallowed // guardians only } /** * @notice Utility method to recover any ERC20 token that was sent to the Feature by mistake. * @param _token The token to recover. */ function recoverToken(address _token) external; /** * @notice Inits a Feature for a wallet by e.g. setting some wallet specific parameters in storage. * @param _wallet The wallet. */ function init(address _wallet) external; /** * @notice Helper method to check if an address is an authorised feature of a target wallet. * @param _wallet The target wallet. * @param _feature The address. */ function isFeatureAuthorisedInVersionManager(address _wallet, address _feature) external view returns (bool); /** * @notice Gets the number of valid signatures that must be provided to execute a * specific relayed transaction. * @param _wallet The target wallet. * @param _data The data of the relayed transaction. * @return The number of required signatures and the wallet owner signature requirement. */ function getRequiredSignatures(address _wallet, bytes calldata _data) external view returns (uint256, OwnerSignature); /** * @notice Gets the list of static call signatures that this feature responds to on behalf of wallets */ function getStaticCallSignatures() external view returns (bytes4[] memory); }
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.4 <0.7.0; pragma experimental ABIEncoderV2; import "../../infrastructure/storage/ILimitStorage.sol"; /** * @title IVersionManager * @notice Interface for the VersionManager module. * @author Olivier VDB - <[email protected]> */ interface IVersionManager { /** * @notice Returns true if the feature is authorised for the wallet * @param _wallet The target wallet. * @param _feature The feature. */ function isFeatureAuthorised(address _wallet, address _feature) external view returns (bool); /** * @notice Lets a feature (caller) invoke a wallet. * @param _wallet The target wallet. * @param _to The target address for the transaction. * @param _value The value of the transaction. * @param _data The data of the transaction. */ function checkAuthorisedFeatureAndInvokeWallet( address _wallet, address _to, uint256 _value, bytes calldata _data ) external returns (bytes memory _res); /* ******* Backward Compatibility with old Storages and BaseWallet *************** */ /** * @notice Sets a new owner for the wallet. * @param _newOwner The new owner. */ function setOwner(address _wallet, address _newOwner) external; /** * @notice Lets a feature write data to a storage contract. * @param _wallet The target wallet. * @param _storage The storage contract. * @param _data The data of the call */ function invokeStorage(address _wallet, address _storage, bytes calldata _data) external; /** * @notice Upgrade a wallet to a new version. * @param _wallet the wallet to upgrade * @param _toVersion the new version */ function upgradeWallet(address _wallet, uint256 _toVersion) external; }
// Copyright (C) 2018 Argent Labs Ltd. <https://argent.xyz> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // SPDX-License-Identifier: GPL-3.0-only pragma solidity >=0.5.4 <0.7.0; /** * @title IWallet * @notice Interface for the BaseWallet */ interface IWallet { /** * @notice Returns the wallet owner. * @return The wallet owner address. */ function owner() external view returns (address); /** * @notice Returns the number of authorised modules. * @return The number of authorised modules. */ function modules() external view returns (uint); /** * @notice Sets a new owner for the wallet. * @param _newOwner The new owner. */ function setOwner(address _newOwner) external; /** * @notice Checks if a module is authorised on the wallet. * @param _module The module address to check. * @return `true` if the module is authorised, otherwise `false`. */ function authorised(address _module) external view returns (bool); /** * @notice Returns the module responsible for a static call redirection. * @param _sig The signature of the static call. * @return the module doing the redirection */ function enabled(bytes4 _sig) external view returns (address); /** * @notice Enables/Disables a module. * @param _module The target module. * @param _value Set to `true` to authorise the module. */ function authoriseModule(address _module, bool _value) external; /** * @notice Enables a static method by specifying the target module to which the call must be delegated. * @param _module The target module. * @param _method The static method signature. */ function enableStaticCall(address _module, bytes4 _method) external; }
pragma solidity >=0.5.4 <0.7.0; /** * ERC20 contract interface. */ interface ERC20 { function totalSupply() external view returns (uint); function decimals() external view returns (uint); function balanceOf(address tokenOwner) external view returns (uint balance); function allowance(address tokenOwner, address spender) external view returns (uint remaining); function transfer(address to, uint tokens) external returns (bool success); function approve(address spender, uint tokens) external returns (bool success); function transferFrom(address from, address to, uint tokens) external returns (bool success); }
pragma solidity >=0.5.4 <0.7.0; interface IAugustusSwapper { function getTokenTransferProxy() external view returns (address); struct Route { address payable exchange; address targetExchange; uint percent; bytes payload; uint256 networkFee; // only used for 0xV3 } struct Path { address to; uint256 totalNetworkFee; // only used for 0xV3 Route[] routes; } struct BuyRoute { address payable exchange; address targetExchange; uint256 fromAmount; uint256 toAmount; bytes payload; uint256 networkFee; // only used for 0xV3 } }
pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999 }, "evmVersion": "istanbul", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ILockStorage","name":"_lockStorage","type":"address"},{"internalType":"contract ITokenPriceRegistry","name":"_tokenPriceRegistry","type":"address"},{"internalType":"contract IVersionManager","name":"_versionManager","type":"address"},{"internalType":"contract IDexRegistry","name":"_dexRegistry","type":"address"},{"internalType":"address","name":"_paraswap","type":"address"},{"internalType":"string","name":"_referrer","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"FeatureCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"address","name":"srcToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"srcAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"destToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"destAmount","type":"uint256"}],"name":"TokenExchanged","type":"event"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"address","name":"_srcToken","type":"address"},{"internalType":"address","name":"_destToken","type":"address"},{"internalType":"uint256","name":"_maxSrcAmount","type":"uint256"},{"internalType":"uint256","name":"_destAmount","type":"uint256"},{"internalType":"uint256","name":"_expectedSrcAmount","type":"uint256"},{"components":[{"internalType":"address payable","name":"exchange","type":"address"},{"internalType":"address","name":"targetExchange","type":"address"},{"internalType":"uint256","name":"fromAmount","type":"uint256"},{"internalType":"uint256","name":"toAmount","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"uint256","name":"networkFee","type":"uint256"}],"internalType":"struct IAugustusSwapper.BuyRoute[]","name":"_routes","type":"tuple[]"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dexRegistry","outputs":[{"internalType":"contract IDexRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"getRequiredSignatures","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"enum IFeature.OwnerSignature","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStaticCallSignatures","outputs":[{"internalType":"bytes4[]","name":"_sigs","type":"bytes4[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"address","name":"_feature","type":"address"}],"name":"isFeatureAuthorisedInVersionManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paraswapProxy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paraswapSwapper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"referrer","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"address","name":"_srcToken","type":"address"},{"internalType":"address","name":"_destToken","type":"address"},{"internalType":"uint256","name":"_srcAmount","type":"uint256"},{"internalType":"uint256","name":"_minDestAmount","type":"uint256"},{"internalType":"uint256","name":"_expectedDestAmount","type":"uint256"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"totalNetworkFee","type":"uint256"},{"components":[{"internalType":"address payable","name":"exchange","type":"address"},{"internalType":"address","name":"targetExchange","type":"address"},{"internalType":"uint256","name":"percent","type":"uint256"},{"internalType":"bytes","name":"payload","type":"bytes"},{"internalType":"uint256","name":"networkFee","type":"uint256"}],"internalType":"struct IAugustusSwapper.Route[]","name":"routes","type":"tuple[]"}],"internalType":"struct IAugustusSwapper.Path[]","name":"_path","type":"tuple[]"},{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"sell","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPriceRegistry","outputs":[{"internalType":"contract ITokenPriceRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100d45760003560e01c8063993af75011610081578063a287fdbd1161005b578063a287fdbd1461018b578063d60a0fbb146101ab578063ea2347e6146101b3576100d4565b8063993af7501461015d5780639be65a60146101705780639c4ca32d14610183576100d4565b80635b18075e116100b25780635b18075e1461012b57806368447c9314610140578063827dfc2d14610155576100d4565b806319ab453c146100d9578063301c90ca146100ee5780633b73d67f14610101575b600080fd5b6100ec6100e7366004610f38565b6101c8565b005b6100ec6100fc366004610fa8565b6101cb565b61011461010f366004611047565b6102c8565b60405161012292919061173f565b60405180910390f35b6101336102d3565b6040516101229190611432565b6101486102e2565b6040516101229190611650565b610133610370565b6100ec61016b366004610fa8565b61037f565b6100ec61017e366004610f38565b61045a565b6101336105d8565b61019e610199366004610f70565b6105e7565b6040516101229190611645565b61013361068c565b6101bb61069b565b60405161012291906115af565b50565b886101d681336106a0565b600054604051631293efbb60e21b81528b916001600160a01b031690634a4fbeec90610206908490600401611432565b60206040518083038186803b15801561021e57600080fd5b505afa158015610232573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025691906110c7565b1561027c5760405162461bcd60e51b81526004016102739061169a565b60405180910390fd5b610285896106da565b61028f85856107b5565b600061029c8c8c8b610834565b90506102af8c8c8c8c8c8c8c8c8c6109a8565b6102ba8c8c83610ad2565b505050505050505050505050565b600180935093915050565b6002546001600160a01b031681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103685780601f1061033d57610100808354040283529160200191610368565b820191906000526020600020905b81548152906001019060200180831161034b57829003601f168201915b505050505081565b6003546001600160a01b031681565b8861038a81336106a0565b600054604051631293efbb60e21b81528b916001600160a01b031690634a4fbeec906103ba908490600401611432565b60206040518083038186803b1580156103d257600080fd5b505afa1580156103e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040a91906110c7565b156104275760405162461bcd60e51b81526004016102739061169a565b610430896106da565b61043a8585610bb5565b60006104478c8c8b610834565b90506102af8c8c8c8c8c8c8c8c8c610c00565b6040517f70a082310000000000000000000000000000000000000000000000000000000081526000906001600160a01b038316906370a08231906104a2903090600401611432565b60206040518083038186803b1580156104ba57600080fd5b505afa1580156104ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f29190611182565b6001546040519192506001600160a01b03808516927fa9059cbb0000000000000000000000000000000000000000000000000000000092610539921690859060240161156c565b60408051601f198184030181529181526020820180516001600160e01b03167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905161058f9190611416565b6000604051808303816000865af19150503d80600081146105cc576040519150601f19603f3d011682016040523d82523d6000602084013e6105d1565b606091505b5050505050565b6005546001600160a01b031681565b6001546040517f5a51fd430000000000000000000000000000000000000000000000000000000081526000916001600160a01b031690635a51fd43906106339086908690600401611446565b60206040518083038186803b15801561064b57600080fd5b505afa15801561065f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068391906110c7565b90505b92915050565b6006546001600160a01b031681565b606090565b6106aa82826105e7565b806106ba57506106ba8282610cc3565b6106d65760405162461bcd60e51b8152600401610273906116d1565b5050565b6001600160a01b03811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148061079957506006546040517faf730b1a0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063af730b1a90610749908490600401611432565b60206040518083038186803b15801561076157600080fd5b505afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061079991906110c7565b6101c85760405162461bcd60e51b815260040161027390611708565b6005546040517fda304ce90000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063da304ce9906108009085908590600401611631565b60006040518083038186803b15801561081857600080fd5b505afa15801561082c573d6000803e3d6000fd5b505050505050565b60006001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146109a157600254604051636eb1769f60e11b81526001600160a01b038086169263dd62ed3e9261088c9289921690600401611446565b60206040518083038186803b1580156108a457600080fd5b505afa1580156108b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108dc9190611182565b90506000198110156109a15780156109615760025460405161095f9186918691600091610917916001600160a01b0316908390602401611550565b60408051601f198184030181529190526020810180516001600160e01b03167f095ea7b300000000000000000000000000000000000000000000000000000000179052610d51565b505b600061096d8284610e00565b905061099e85856000600260009054906101000a90046001600160a01b03168560405160240161091792919061156c565b50505b9392505050565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a345780601f10610a0957610100808354040283529160200191610a34565b820191906000526020600020905b815481529060010190602001808311610a1757829003601f168201915b50505050509050606063cbd1603e60e01b8a8a8a8a8a8a8a8a6000808c604051602401610a6b9b9a99989796959493929190611511565b60408051601f198184030181529190526020810180516001600160e01b03167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050610ac58b8b8b8b8b86610e25565b5050505050505050505050565b6001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610bb057600254604051636eb1769f60e11b81526000916001600160a01b038086169263dd62ed3e92610b2c928992911690600401611446565b60206040518083038186803b158015610b4457600080fd5b505afa158015610b58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7c9190611182565b9050818114610bae576002546040516105d19186918691600091610917916001600160a01b031690889060240161156c565b505b505050565b6005546040517f3e3c567f0000000000000000000000000000000000000000000000000000000081526001600160a01b0390911690633e3c567f906108009085908590600401611615565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610c8c5780601f10610c6157610100808354040283529160200191610c8c565b820191906000526020600020905b815481529060010190602001808311610c6f57829003601f168201915b50505050509050606063bb2a349b60e01b8a8a8a8a8a8a8a8a6000808c604051602401610a6b9b9a99989796959493929190611492565b6000816001600160a01b0316836001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610d0857600080fd5b505afa158015610d1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d409190610f54565b6001600160a01b0316149392505050565b6001546040517f915c77b90000000000000000000000000000000000000000000000000000000081526060916001600160a01b03169063915c77b990610da1908890889088908890600401611460565b600060405180830381600087803b158015610dbb57600080fd5b505af1158015610dcf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610df791908101906110e7565b95945050505050565b6000828201838110156106835760405162461bcd60e51b815260040161027390611663565b600354606090610e689088906001600160a01b0390811690891673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14610e60576000610e62565b865b85610d51565b905060008082511115610e905781806020019051810190610e899190611182565b9050610e93565b50825b876001600160a01b03167fc8082d818d67bbb0b463bdaa897d7363157a1425f6b077691285ac6ca82b60b188878985604051610ed29493929190611585565b60405180910390a25050505050505050565b803561068681611823565b60008083601f840112610f00578182fd5b50813567ffffffffffffffff811115610f17578182fd5b6020830191508360208083028501011115610f3157600080fd5b9250929050565b600060208284031215610f49578081fd5b813561068381611823565b600060208284031215610f65578081fd5b815161068381611823565b60008060408385031215610f82578081fd5b8235610f8d81611823565b91506020830135610f9d81611823565b809150509250929050565b60008060008060008060008060006101008a8c031215610fc6578485fd5b8935610fd181611823565b985060208a0135610fe181611823565b975060408a0135610ff181611823565b965060608a0135955060808a0135945060a08a0135935060c08a013567ffffffffffffffff811115611021578384fd5b61102d8c828d01610eef565b9a9d999c50979a9699959894979660e00135949350505050565b60008060006040848603121561105b578283fd5b833561106681611823565b9250602084013567ffffffffffffffff80821115611082578384fd5b818601915086601f830112611095578384fd5b8135818111156110a3578485fd5b8760208285010111156110b4578485fd5b6020830194508093505050509250925092565b6000602082840312156110d8578081fd5b81518015158114610683578182fd5b6000602082840312156110f8578081fd5b815167ffffffffffffffff8082111561110f578283fd5b818401915084601f830112611122578283fd5b815181811115611130578384fd5b604051601f8201601f191681016020018381118282101715611150578586fd5b604052818152838201602001871015611167578485fd5b6111788260208301602087016117f7565b9695505050505050565b600060208284031215611193578081fd5b5051919050565b6001600160a01b03169052565b60008284526020808501945084818502860184845b87811015611266578383038952813560be198836030181126111dc578687fd5b870160c08682016111f6866111f18386610ee4565b61119a565b611200818461175d565b905061120e8887018261119a565b5060408281013590860152606080830135908601526080611231818401846117b2565b838389015261124384890182846113c0565b60a0958601359890950197909752505050988501989250908401906001016111bc565b5090979650505050505050565b818352602080840193600091908185020181018584845b878110156112fc5782840389528135605e198836030181126112aa578687fd5b870160608682016112bf876111f18386610ee4565b358688015260406112d28382018461176a565b935082828901526112e68389018583611309565b9c89019c9750505092860192505060010161128a565b5091979650505050505050565b818352602080840193600091908185020181018584845b878110156112fc5782840389528135609e19883603018112611340578687fd5b870160a0813561134f81611823565b6001600160a01b0390811687526040908382018161136f828c8801610ee4565b168a8a01528035838a0152505050606061138b818401846117b2565b83838a015261139d848a0182846113c0565b608095860135999095019890985250505098850198935090840190600101611320565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600081518084526114028160208601602086016117f7565b601f01601f19169290920160200192915050565b600082516114288184602087016117f7565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261117860808301846113ea565b60006101406001600160a01b03808f168452808e1660208501528c60408501528b60608501528a60808501528160a08501526114d18285018a8c6111a7565b91508760c085015280871660e08501525060ff85166101008401528281036101208401526114ff81856113ea565b9e9d5050505050505050505050505050565b60006101406001600160a01b03808f168452808e1660208501528c60408501528b60608501528a60808501528160a08501526114d18285018a8c611273565b6001600160a01b0392909216825260ff16602082015260400190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b6020808252825182820181905260009190848201906040850190845b818110156116095783517fffffffff0000000000000000000000000000000000000000000000000000000016835292840192918401916001016115cb565b50909695505050505050565b6000602082526116296020830184866111a7565b949350505050565b600060208252611629602083018486611273565b901515815260200190565b60006020825261068360208301846113ea565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526011908201527f42463a2077616c6c6574206c6f636b6564000000000000000000000000000000604082015260600190565b6020808252601c908201527f42463a206d757374206265206f776e6572206f72206665617475726500000000604082015260600190565b60208082526016908201527f54453a20546f6b656e206e6f74207472616461626c6500000000000000000000604082015260600190565b828152604081016004831061175057fe5b8260208301529392505050565b6000823561068381611823565b6000808335601e19843603018112611780578283fd5b830160208101925035905067ffffffffffffffff8111156117a057600080fd5b602081023603831315610f3157600080fd5b6000808335601e198436030181126117c8578283fd5b830160208101925035905067ffffffffffffffff8111156117e857600080fd5b803603831315610f3157600080fd5b60005b838110156118125781810151838201526020016117fa565b83811115610bae5750506000910152565b6001600160a01b03811681146101c857600080fdfea26469706673582212201763212479c219220f9a31d634493911a87ed5183f6d7c604c378eb1fa8b3b1964736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
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.