Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21677052 | 16 hrs ago | 0.0008 ETH | ||||
21677052 | 16 hrs ago | 0.0008 ETH | ||||
21677052 | 16 hrs ago | 0.0016 ETH | ||||
21669890 | 40 hrs ago | 0.0008 ETH | ||||
21669890 | 40 hrs ago | 0.0008 ETH | ||||
21669890 | 40 hrs ago | 0.0016 ETH | ||||
21662733 | 2 days ago | 0.0008 ETH | ||||
21662733 | 2 days ago | 0.0008 ETH | ||||
21662733 | 2 days ago | 0.0016 ETH | ||||
21655563 | 3 days ago | 0.0008 ETH | ||||
21655563 | 3 days ago | 0.0008 ETH | ||||
21655563 | 3 days ago | 0.0016 ETH | ||||
21648395 | 4 days ago | 0.0008 ETH | ||||
21648395 | 4 days ago | 0.0008 ETH | ||||
21648395 | 4 days ago | 0.0016 ETH | ||||
21641237 | 5 days ago | 0.0008 ETH | ||||
21641237 | 5 days ago | 0.0008 ETH | ||||
21641237 | 5 days ago | 0.0016 ETH | ||||
21634088 | 6 days ago | 0.0008 ETH | ||||
21634088 | 6 days ago | 0.0008 ETH | ||||
21634088 | 6 days ago | 0.0016 ETH | ||||
21626910 | 7 days ago | 0.0008 ETH | ||||
21626910 | 7 days ago | 0.0008 ETH | ||||
21626910 | 7 days ago | 0.0016 ETH | ||||
21619746 | 8 days ago | 0.0008 ETH |
Loading...
Loading
Contract Name:
ChainBridgeBatchRebaseReport
Compiler Version
v0.7.3+commit.9bfce1f6
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.7.3; interface IBridge { function deposit( uint8 destinationChainID, bytes32 resourceID, bytes calldata data, bytes calldata feeData ) external payable; function getFee(uint8 destinationDomainID) external view returns (uint256); } interface IPolicy { function globalAmpleforthEpochAndAMPLSupply() external view returns (uint256, uint256); } /** * @title ChainBridgeBatchRebaseReport * @notice Utility that executes rebase report 'deposit' transactions in batch. */ contract ChainBridgeBatchRebaseReport { function calculateFee(address bridge, uint8[] memory destinationChainIDs) external view returns (uint256) { uint256 totalFee = 0; for (uint256 i = 0; i < destinationChainIDs.length; i++) { uint8 destinationChainID = destinationChainIDs[i]; totalFee += IBridge(bridge).getFee(destinationChainID); } return totalFee; } function execute( address policy, address bridge, uint8[] memory destinationChainIDs, bytes32 resourceID ) external payable { uint256 epoch; uint256 totalSupply; (epoch, totalSupply) = IPolicy(policy).globalAmpleforthEpochAndAMPLSupply(); uint256 dataLen = 64; bytes memory txData = abi.encode(dataLen, epoch, totalSupply); bytes memory feeData = ""; for (uint256 i = 0; i < destinationChainIDs.length; i++) { uint8 destinationChainID = destinationChainIDs[i]; uint256 bridgeFee = IBridge(bridge).getFee(destinationChainID); IBridge(bridge).deposit{value: bridgeFee}( destinationChainID, resourceID, txData, feeData ); } } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"bridge","type":"address"},{"internalType":"uint8[]","name":"destinationChainIDs","type":"uint8[]"}],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"policy","type":"address"},{"internalType":"address","name":"bridge","type":"address"},{"internalType":"uint8[]","name":"destinationChainIDs","type":"uint8[]"},{"internalType":"bytes32","name":"resourceID","type":"bytes32"}],"name":"execute","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061054c806100206000396000f3fe6080604052600436106100295760003560e01c806322d36fc01461002e5780632cae4a0a146100ee575b600080fd5b6100ec6004803603608081101561004457600080fd5b6001600160a01b03823581169260208101359091169181019060608101604082013564010000000081111561007857600080fd5b82018360208201111561008a57600080fd5b803590602001918460208302840111640100000000831117156100ac57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050913592506101c0915050565b005b3480156100fa57600080fd5b506101ae6004803603604081101561011157600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561013c57600080fd5b82018360208201111561014e57600080fd5b8035906020019184602083028401116401000000008311171561017057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610467945050505050565b60408051918252519081900360200190f35b600080856001600160a01b031663105bad4f6040518163ffffffff1660e01b8152600401604080518083038186803b1580156101fb57600080fd5b505afa15801561020f573d6000803e3d6000fd5b505050506040513d604081101561022557600080fd5b5080516020918201516040805193840181905283810183905260608481018390528151808603909101815260a08501825260006080909501858152939650919450929091905b875181101561045b57600088828151811061028257fe5b6020026020010151905060008a6001600160a01b031663083132c4836040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156102d557600080fd5b505afa1580156102e9573d6000803e3d6000fd5b505050506040513d60208110156102ff57600080fd5b810190808051906020019092919050505090508a6001600160a01b03166373c45c9882848c89896040518663ffffffff1660e01b8152600401808560ff1681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561038557818101518382015260200161036d565b50505050905090810190601f1680156103b25780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156103e55781810151838201526020016103cd565b50505050905090810190601f1680156104125780820380516001836020036101000a031916815260200191505b5096505050505050506000604051808303818588803b15801561043457600080fd5b505af1158015610448573d6000803e3d6000fd5b50506001909501945061026b9350505050565b50505050505050505050565b600080805b835181101561050e57600084828151811061048357fe5b60200260200101519050856001600160a01b031663083132c4826040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156104d457600080fd5b505afa1580156104e8573d6000803e3d6000fd5b505050506040513d60208110156104fe57600080fd5b505192909201915060010161046c565b50939250505056fea2646970667358221220c984fda9c32bb5d0ae66e0dfca0c9e6eeeb4eb0ab431d4bbefb211dab8edb8a664736f6c63430007030033
Deployed Bytecode
0x6080604052600436106100295760003560e01c806322d36fc01461002e5780632cae4a0a146100ee575b600080fd5b6100ec6004803603608081101561004457600080fd5b6001600160a01b03823581169260208101359091169181019060608101604082013564010000000081111561007857600080fd5b82018360208201111561008a57600080fd5b803590602001918460208302840111640100000000831117156100ac57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050913592506101c0915050565b005b3480156100fa57600080fd5b506101ae6004803603604081101561011157600080fd5b6001600160a01b03823516919081019060408101602082013564010000000081111561013c57600080fd5b82018360208201111561014e57600080fd5b8035906020019184602083028401116401000000008311171561017057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610467945050505050565b60408051918252519081900360200190f35b600080856001600160a01b031663105bad4f6040518163ffffffff1660e01b8152600401604080518083038186803b1580156101fb57600080fd5b505afa15801561020f573d6000803e3d6000fd5b505050506040513d604081101561022557600080fd5b5080516020918201516040805193840181905283810183905260608481018390528151808603909101815260a08501825260006080909501858152939650919450929091905b875181101561045b57600088828151811061028257fe5b6020026020010151905060008a6001600160a01b031663083132c4836040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156102d557600080fd5b505afa1580156102e9573d6000803e3d6000fd5b505050506040513d60208110156102ff57600080fd5b810190808051906020019092919050505090508a6001600160a01b03166373c45c9882848c89896040518663ffffffff1660e01b8152600401808560ff1681526020018481526020018060200180602001838103835285818151815260200191508051906020019080838360005b8381101561038557818101518382015260200161036d565b50505050905090810190601f1680156103b25780820380516001836020036101000a031916815260200191505b50838103825284518152845160209182019186019080838360005b838110156103e55781810151838201526020016103cd565b50505050905090810190601f1680156104125780820380516001836020036101000a031916815260200191505b5096505050505050506000604051808303818588803b15801561043457600080fd5b505af1158015610448573d6000803e3d6000fd5b50506001909501945061026b9350505050565b50505050505050505050565b600080805b835181101561050e57600084828151811061048357fe5b60200260200101519050856001600160a01b031663083132c4826040518263ffffffff1660e01b8152600401808260ff16815260200191505060206040518083038186803b1580156104d457600080fd5b505afa1580156104e8573d6000803e3d6000fd5b505050506040513d60208110156104fe57600080fd5b505192909201915060010161046c565b50939250505056fea2646970667358221220c984fda9c32bb5d0ae66e0dfca0c9e6eeeb4eb0ab431d4bbefb211dab8edb8a664736f6c63430007030033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ 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.