Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18666288 | 401 days ago | 0.0001 ETH | ||||
18666288 | 401 days ago | 0.0001 ETH | ||||
18666221 | 401 days ago | 0.0001 ETH | ||||
18666221 | 401 days ago | 0.0001 ETH | ||||
18662494 | 401 days ago | 0.0001 ETH | ||||
18662494 | 401 days ago | 0.0001 ETH | ||||
18661560 | 401 days ago | 0.0001 ETH | ||||
18661560 | 401 days ago | 0.0001 ETH | ||||
18661130 | 401 days ago | 0.0001 ETH | ||||
18661130 | 401 days ago | 0.0001 ETH | ||||
18658158 | 402 days ago | 0.0001 ETH | ||||
18658158 | 402 days ago | 0.0001 ETH | ||||
18653728 | 403 days ago | 0.0001 ETH | ||||
18653728 | 403 days ago | 0.0001 ETH | ||||
18653722 | 403 days ago | 0.0001 ETH | ||||
18653722 | 403 days ago | 0.0001 ETH | ||||
18645693 | 404 days ago | 0.0001 ETH | ||||
18645693 | 404 days ago | 0.0001 ETH | ||||
18644189 | 404 days ago | 0.0001 ETH | ||||
18644189 | 404 days ago | 0.0001 ETH | ||||
18644070 | 404 days ago | 0.0001 ETH | ||||
18644070 | 404 days ago | 0.0001 ETH | ||||
18636482 | 405 days ago | 0.0001 ETH | ||||
18636482 | 405 days ago | 0.0001 ETH | ||||
18633088 | 405 days ago | 0.0001 ETH |
Loading...
Loading
Contract Name:
FeeHandlerRouter
Compiler Version
v0.8.11+commit.d7f03943
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// The Licensed Work is (c) 2022 Sygma // SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.11; import "../interfaces/IFeeHandler.sol"; import "../utils/AccessControl.sol"; /** @title Handles FeeHandler routing for resources. @author ChainSafe Systems. @notice This contract is intended to be used with the Bridge contract. */ contract FeeHandlerRouter is IFeeHandler, AccessControl { address public immutable _bridgeAddress; // destination domainID => resourceID => feeHandlerAddress mapping (uint8 => mapping(bytes32 => IFeeHandler)) public _domainResourceIDToFeeHandlerAddress; event FeeChanged( uint256 newFee ); modifier onlyBridge() { _onlyBridge(); _; } function _onlyBridge() private view { require(msg.sender == _bridgeAddress, "sender must be bridge contract"); } modifier onlyAdmin() { _onlyAdmin(); _; } function _onlyAdmin() private view { require(hasRole(DEFAULT_ADMIN_ROLE, _msgSender()), "sender doesn't have admin role"); } /** @param bridgeAddress Contract address of previously deployed Bridge. */ constructor(address bridgeAddress) { _bridgeAddress = bridgeAddress; _setupRole(DEFAULT_ADMIN_ROLE, msg.sender); } /** @notice Maps the {handlerAddress} to {resourceID} to {destinantionDomainID} in {_domainResourceIDToFeeHandlerAddress}. @param destinationDomainID ID of chain FeeHandler contracts will be called. @param resourceID ResourceID for which the corresponding FeeHandler will collect/calcualte fee. @param handlerAddress Address of FeeHandler which will be called for specified resourceID. */ function adminSetResourceHandler(uint8 destinationDomainID, bytes32 resourceID, IFeeHandler handlerAddress) external onlyAdmin { _domainResourceIDToFeeHandlerAddress[destinationDomainID][resourceID] = handlerAddress; } /** @notice Initiates collecting fee with corresponding fee handler contract using IFeeHandler interface. @param sender Sender of the deposit. @param fromDomainID ID of the source chain. @param destinationDomainID ID of chain deposit will be bridged to. @param resourceID ResourceID to be used when making deposits. @param depositData Additional data to be passed to specified handler. @param feeData Additional data to be passed to the fee handler. */ function collectFee(address sender, uint8 fromDomainID, uint8 destinationDomainID, bytes32 resourceID, bytes calldata depositData, bytes calldata feeData) payable external onlyBridge { IFeeHandler feeHandler = _domainResourceIDToFeeHandlerAddress[destinationDomainID][resourceID]; feeHandler.collectFee{value: msg.value}(sender, fromDomainID, destinationDomainID, resourceID, depositData, feeData); } /** @notice Initiates calculating fee with corresponding fee handler contract using IFeeHandler interface. @param sender Sender of the deposit. @param fromDomainID ID of the source chain. @param destinationDomainID ID of chain deposit will be bridged to. @param resourceID ResourceID to be used when making deposits. @param depositData Additional data to be passed to specified handler. @param feeData Additional data to be passed to the fee handler. @return fee Returns the fee amount. @return tokenAddress Returns the address of the token to be used for fee. */ function calculateFee(address sender, uint8 fromDomainID, uint8 destinationDomainID, bytes32 resourceID, bytes calldata depositData, bytes calldata feeData) external view returns(uint256 fee, address tokenAddress) { IFeeHandler feeHandler = _domainResourceIDToFeeHandlerAddress[destinationDomainID][resourceID]; return feeHandler.calculateFee(sender, fromDomainID, destinationDomainID, resourceID, depositData, feeData); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.11; // This is adapted from https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.0.0/contracts/access/AccessControl.sol // The only difference is added getRoleMemberIndex(bytes32 role, address account) function. import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context { using EnumerableSet for EnumerableSet.AddressSet; using Address for address; struct RoleData { EnumerableSet.AddressSet members; bytes32 adminRole; } mapping (bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view returns (bool) { return _roles[role].members.contains(account); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view returns (uint256) { return _roles[role].members.length(); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view returns (address) { return _roles[role].members.at(index); } /** * @dev Returns the index of the account that have `role`. */ function getRoleMemberIndex(bytes32 role, address account) public view returns (uint256) { return _roles[role].members._inner._indexes[bytes32(uint256(uint160(account)))]; } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant"); _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual { require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke"); _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { _roles[role].adminRole = adminRole; } function _grantRole(bytes32 role, address account) private { if (_roles[role].members.add(account)) { emit RoleGranted(role, account, _msgSender()); } } function _revokeRole(bytes32 role, address account) private { if (_roles[role].members.remove(account)) { emit RoleRevoked(role, account, _msgSender()); } } }
// The Licensed Work is (c) 2022 Sygma // SPDX-License-Identifier: BUSL-1.1 pragma solidity 0.8.11; /** @title Interface to be used with fee handlers. @author ChainSafe Systems. */ interface IFeeHandler { /** @notice This event is emitted when the fee is collected. @param sender Sender of the deposit. @param fromDomainID ID of the source chain. @param destinationDomainID ID of chain deposit will be bridged to. @param resourceID ResourceID to be used when making deposits. @param fee Collected fee amount. @param tokenAddress Address of the token in which the fee was collected (0 for the base currency). */ event FeeCollected( address sender, uint8 fromDomainID, uint8 destinationDomainID, bytes32 resourceID, uint256 fee, address tokenAddress ); /** @notice This event is emitted when the fee is distributed to an address. @param tokenAddress Address of the token in which the fee was collected (0 for the base currency). @param recipient Address that receives the distributed fee. @param amount Amount that is distributed. */ event FeeDistributed( address tokenAddress, address recipient, uint256 amount ); /** @notice Collects fee for deposit. @param sender Sender of the deposit. @param fromDomainID ID of the source chain. @param destinationDomainID ID of chain deposit will be bridged to. @param resourceID ResourceID to be used when making deposits. @param depositData Additional data to be passed to specified handler. @param feeData Additional data to be passed to the fee handler. */ function collectFee(address sender, uint8 fromDomainID, uint8 destinationDomainID, bytes32 resourceID, bytes calldata depositData, bytes calldata feeData) payable external; /** @notice Calculates fee for deposit. @param sender Sender of the deposit. @param fromDomainID ID of the source chain. @param destinationDomainID ID of chain deposit will be bridged to. @param resourceID ResourceID to be used when making deposits. @param depositData Additional data to be passed to specified handler. @param feeData Additional data to be passed to the fee handler. @return Returns the fee amount. @return Returns the address of the token to be used for fee. */ function calculateFee(address sender, uint8 fromDomainID, uint8 destinationDomainID, bytes32 resourceID, bytes calldata depositData, bytes calldata feeData) external view returns(uint256, address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping(bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; if (lastIndex != toDeleteIndex) { bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex } // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } }
// 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.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"bridgeAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"FeeChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint8","name":"fromDomainID","type":"uint8"},{"indexed":false,"internalType":"uint8","name":"destinationDomainID","type":"uint8"},{"indexed":false,"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"},{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"}],"name":"FeeCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAddress","type":"address"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FeeDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_bridgeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"","type":"uint8"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"_domainResourceIDToFeeHandlerAddress","outputs":[{"internalType":"contract IFeeHandler","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"destinationDomainID","type":"uint8"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"contract IFeeHandler","name":"handlerAddress","type":"address"}],"name":"adminSetResourceHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint8","name":"fromDomainID","type":"uint8"},{"internalType":"uint8","name":"destinationDomainID","type":"uint8"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"bytes","name":"depositData","type":"bytes"},{"internalType":"bytes","name":"feeData","type":"bytes"}],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint8","name":"fromDomainID","type":"uint8"},{"internalType":"uint8","name":"destinationDomainID","type":"uint8"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"},{"internalType":"bytes","name":"depositData","type":"bytes"},{"internalType":"bytes","name":"feeData","type":"bytes"}],"name":"collectFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"getRoleMemberIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5060405162000ed338038062000ed383398101604081905262000034916200013e565b6001600160a01b0381166080526200004e60003362000055565b5062000170565b62000061828262000065565b5050565b6000828152602081815260409091206200008a918390620006c5620000cc821b17901c565b15620000615760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b6000620000e3836001600160a01b038416620000ec565b90505b92915050565b60008181526001830160205260408120546200013557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620000e6565b506000620000e6565b6000602082840312156200015157600080fd5b81516001600160a01b03811681146200016957600080fd5b9392505050565b608051610d40620001936000396000818161018c015261073e0152610d406000f3fe6080604052600436106100dd5760003560e01c80634e0df3f61161007f578063a217fddf11610059578063a217fddf14610297578063ca15c873146102ac578063d547741f146102cc578063ef4f081f146102ec57600080fd5b80634e0df3f6146102275780639010d07c1461024757806391d148541461026757600080fd5b80632f2ff15d116100bb5780632f2ff15d1461015a578063318c136e1461017a57806336568abe146101c65780633d94ebc6146101e657600080fd5b80631af5fe38146100e2578063248a9ca3146101045780632530706514610147575b600080fd5b3480156100ee57600080fd5b506101026100fd366004610a44565b610329565b005b34801561011057600080fd5b5061013461011f366004610a84565b60009081526020819052604090206002015490565b6040519081526020015b60405180910390f35b610102610155366004610ae6565b61036e565b34801561016657600080fd5b50610102610175366004610b93565b610411565b34801561018657600080fd5b506101ae7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013e565b3480156101d257600080fd5b506101026101e1366004610b93565b6104a4565b3480156101f257600080fd5b506101ae610201366004610bc3565b60016020908152600092835260408084209091529082529020546001600160a01b031681565b34801561023357600080fd5b50610134610242366004610b93565b61051e565b34801561025357600080fd5b506101ae610262366004610bed565b610549565b34801561027357600080fd5b50610287610282366004610b93565b610568565b604051901515815260200161013e565b3480156102a357600080fd5b50610134600081565b3480156102b857600080fd5b506101346102c7366004610a84565b610580565b3480156102d857600080fd5b506101026102e7366004610b93565b610597565b3480156102f857600080fd5b5061030c610307366004610ae6565b610618565b604080519283526001600160a01b0390911660208301520161013e565b6103316106da565b60ff9290921660009081526001602090815260408083209383529290522080546001600160a01b0319166001600160a01b03909216919091179055565b610376610733565b60ff8616600090815260016020908152604080832088845290915290819020549051632530706560e01b81526001600160a01b0390911690819063253070659034906103d4908d908d908d908d908d908d908d908d90600401610c38565b6000604051808303818588803b1580156103ed57600080fd5b505af1158015610401573d6000803e3d6000fd5b5050505050505050505050505050565b60008281526020819052604090206002015461042d9033610568565b6104965760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b60648201526084015b60405180910390fd5b6104a082826107ab565b5050565b6001600160a01b03811633146105145760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161048d565b6104a08282610804565b6000828152602081815260408083206001600160a01b03851684526001019091529020545b92915050565b6000828152602081905260408120610561908361085d565b9392505050565b60008281526020819052604081206105619083610869565b60008181526020819052604081206105439061088b565b6000828152602081905260409020600201546105b39033610568565b6105145760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b606482015260840161048d565b60ff8616600090815260016020908152604080832088845290915280822054905163ef4f081f60e01b815282916001600160a01b031690819063ef4f081f90610673908e908e908e908e908e908e908e908e90600401610c38565b6040805180830381865afa15801561068f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b39190610c94565b92509250509850989650505050505050565b6000610561836001600160a01b038416610895565b6106e5600033610568565b6107315760405162461bcd60e51b815260206004820152601e60248201527f73656e64657220646f65736e277420686176652061646d696e20726f6c650000604482015260640161048d565b565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146107315760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d7573742062652062726964676520636f6e74726163740000604482015260640161048d565b60008281526020819052604090206107c390826106c5565b156104a05760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b600082815260208190526040902061081c90826108e4565b156104a05760405133906001600160a01b0383169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b600061056183836108f9565b6001600160a01b03811660009081526001830160205260408120541515610561565b6000610543825490565b60008181526001830160205260408120546108dc57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610543565b506000610543565b6000610561836001600160a01b038416610923565b600082600001828154811061091057610910610cb9565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610a0c576000610947600183610ccf565b855490915060009061095b90600190610ccf565b90508181146109c057600086600001828154811061097b5761097b610cb9565b906000526020600020015490508087600001848154811061099e5761099e610cb9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806109d1576109d1610cf4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610543565b6000915050610543565b803560ff81168114610a2757600080fd5b919050565b6001600160a01b0381168114610a4157600080fd5b50565b600080600060608486031215610a5957600080fd5b610a6284610a16565b9250602084013591506040840135610a7981610a2c565b809150509250925092565b600060208284031215610a9657600080fd5b5035919050565b60008083601f840112610aaf57600080fd5b50813567ffffffffffffffff811115610ac757600080fd5b602083019150836020828501011115610adf57600080fd5b9250929050565b60008060008060008060008060c0898b031215610b0257600080fd5b8835610b0d81610a2c565b9750610b1b60208a01610a16565b9650610b2960408a01610a16565b955060608901359450608089013567ffffffffffffffff80821115610b4d57600080fd5b610b598c838d01610a9d565b909650945060a08b0135915080821115610b7257600080fd5b50610b7f8b828c01610a9d565b999c989b5096995094979396929594505050565b60008060408385031215610ba657600080fd5b823591506020830135610bb881610a2c565b809150509250929050565b60008060408385031215610bd657600080fd5b610bdf83610a16565b946020939093013593505050565b60008060408385031215610c0057600080fd5b50508035926020909101359150565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038916815260ff8816602082015260ff8716604082015285606082015260c060808201526000610c7260c083018688610c0f565b82810360a0840152610c85818587610c0f565b9b9a5050505050505050505050565b60008060408385031215610ca757600080fd5b825191506020830151610bb881610a2c565b634e487b7160e01b600052603260045260246000fd5b600082821015610cef57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220aea8122be46ffcf4f50b37233711a64df0713707477b3455a6c0645e87cf6df964736f6c634300080b00330000000000000000000000004d878e8fb90178588cda4cf1dccdc9a6d2757089
Deployed Bytecode
0x6080604052600436106100dd5760003560e01c80634e0df3f61161007f578063a217fddf11610059578063a217fddf14610297578063ca15c873146102ac578063d547741f146102cc578063ef4f081f146102ec57600080fd5b80634e0df3f6146102275780639010d07c1461024757806391d148541461026757600080fd5b80632f2ff15d116100bb5780632f2ff15d1461015a578063318c136e1461017a57806336568abe146101c65780633d94ebc6146101e657600080fd5b80631af5fe38146100e2578063248a9ca3146101045780632530706514610147575b600080fd5b3480156100ee57600080fd5b506101026100fd366004610a44565b610329565b005b34801561011057600080fd5b5061013461011f366004610a84565b60009081526020819052604090206002015490565b6040519081526020015b60405180910390f35b610102610155366004610ae6565b61036e565b34801561016657600080fd5b50610102610175366004610b93565b610411565b34801561018657600080fd5b506101ae7f0000000000000000000000004d878e8fb90178588cda4cf1dccdc9a6d275708981565b6040516001600160a01b03909116815260200161013e565b3480156101d257600080fd5b506101026101e1366004610b93565b6104a4565b3480156101f257600080fd5b506101ae610201366004610bc3565b60016020908152600092835260408084209091529082529020546001600160a01b031681565b34801561023357600080fd5b50610134610242366004610b93565b61051e565b34801561025357600080fd5b506101ae610262366004610bed565b610549565b34801561027357600080fd5b50610287610282366004610b93565b610568565b604051901515815260200161013e565b3480156102a357600080fd5b50610134600081565b3480156102b857600080fd5b506101346102c7366004610a84565b610580565b3480156102d857600080fd5b506101026102e7366004610b93565b610597565b3480156102f857600080fd5b5061030c610307366004610ae6565b610618565b604080519283526001600160a01b0390911660208301520161013e565b6103316106da565b60ff9290921660009081526001602090815260408083209383529290522080546001600160a01b0319166001600160a01b03909216919091179055565b610376610733565b60ff8616600090815260016020908152604080832088845290915290819020549051632530706560e01b81526001600160a01b0390911690819063253070659034906103d4908d908d908d908d908d908d908d908d90600401610c38565b6000604051808303818588803b1580156103ed57600080fd5b505af1158015610401573d6000803e3d6000fd5b5050505050505050505050505050565b60008281526020819052604090206002015461042d9033610568565b6104965760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526e0818591b5a5b881d1bc819dc985b9d608a1b60648201526084015b60405180910390fd5b6104a082826107ab565b5050565b6001600160a01b03811633146105145760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b606482015260840161048d565b6104a08282610804565b6000828152602081815260408083206001600160a01b03851684526001019091529020545b92915050565b6000828152602081905260408120610561908361085d565b9392505050565b60008281526020819052604081206105619083610869565b60008181526020819052604081206105439061088b565b6000828152602081905260409020600201546105b39033610568565b6105145760405162461bcd60e51b815260206004820152603060248201527f416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e60448201526f2061646d696e20746f207265766f6b6560801b606482015260840161048d565b60ff8616600090815260016020908152604080832088845290915280822054905163ef4f081f60e01b815282916001600160a01b031690819063ef4f081f90610673908e908e908e908e908e908e908e908e90600401610c38565b6040805180830381865afa15801561068f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b39190610c94565b92509250509850989650505050505050565b6000610561836001600160a01b038416610895565b6106e5600033610568565b6107315760405162461bcd60e51b815260206004820152601e60248201527f73656e64657220646f65736e277420686176652061646d696e20726f6c650000604482015260640161048d565b565b336001600160a01b037f0000000000000000000000004d878e8fb90178588cda4cf1dccdc9a6d275708916146107315760405162461bcd60e51b815260206004820152601e60248201527f73656e646572206d7573742062652062726964676520636f6e74726163740000604482015260640161048d565b60008281526020819052604090206107c390826106c5565b156104a05760405133906001600160a01b0383169084907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d90600090a45050565b600082815260208190526040902061081c90826108e4565b156104a05760405133906001600160a01b0383169084907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b90600090a45050565b600061056183836108f9565b6001600160a01b03811660009081526001830160205260408120541515610561565b6000610543825490565b60008181526001830160205260408120546108dc57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610543565b506000610543565b6000610561836001600160a01b038416610923565b600082600001828154811061091057610910610cb9565b9060005260206000200154905092915050565b60008181526001830160205260408120548015610a0c576000610947600183610ccf565b855490915060009061095b90600190610ccf565b90508181146109c057600086600001828154811061097b5761097b610cb9565b906000526020600020015490508087600001848154811061099e5761099e610cb9565b6000918252602080832090910192909255918252600188019052604090208390555b85548690806109d1576109d1610cf4565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610543565b6000915050610543565b803560ff81168114610a2757600080fd5b919050565b6001600160a01b0381168114610a4157600080fd5b50565b600080600060608486031215610a5957600080fd5b610a6284610a16565b9250602084013591506040840135610a7981610a2c565b809150509250925092565b600060208284031215610a9657600080fd5b5035919050565b60008083601f840112610aaf57600080fd5b50813567ffffffffffffffff811115610ac757600080fd5b602083019150836020828501011115610adf57600080fd5b9250929050565b60008060008060008060008060c0898b031215610b0257600080fd5b8835610b0d81610a2c565b9750610b1b60208a01610a16565b9650610b2960408a01610a16565b955060608901359450608089013567ffffffffffffffff80821115610b4d57600080fd5b610b598c838d01610a9d565b909650945060a08b0135915080821115610b7257600080fd5b50610b7f8b828c01610a9d565b999c989b5096995094979396929594505050565b60008060408385031215610ba657600080fd5b823591506020830135610bb881610a2c565b809150509250929050565b60008060408385031215610bd657600080fd5b610bdf83610a16565b946020939093013593505050565b60008060408385031215610c0057600080fd5b50508035926020909101359150565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60018060a01b038916815260ff8816602082015260ff8716604082015285606082015260c060808201526000610c7260c083018688610c0f565b82810360a0840152610c85818587610c0f565b9b9a5050505050505050505050565b60008060408385031215610ca757600080fd5b825191506020830151610bb881610a2c565b634e487b7160e01b600052603260045260246000fd5b600082821015610cef57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220aea8122be46ffcf4f50b37233711a64df0713707477b3455a6c0645e87cf6df964736f6c634300080b0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004d878e8fb90178588cda4cf1dccdc9a6d2757089
-----Decoded View---------------
Arg [0] : bridgeAddress (address): 0x4D878E8Fb90178588Cda4cf1DCcdC9a6d2757089
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d878e8fb90178588cda4cf1dccdc9a6d2757089
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.