More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 674 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Process | 15909350 | 755 days ago | IN | 0 ETH | 0.00052326 | ||||
Lock | 15909347 | 755 days ago | IN | 0.00087177 ETH | 0.00169947 | ||||
Process | 15855351 | 763 days ago | IN | 0 ETH | 0.00238606 | ||||
Process | 15837474 | 765 days ago | IN | 0 ETH | 0.00037365 | ||||
Lock | 15832888 | 766 days ago | IN | 0.00190149 ETH | 0.00356783 | ||||
Lock | 15832604 | 766 days ago | IN | 0.00233448 ETH | 0.00354594 | ||||
Lock | 15648133 | 792 days ago | IN | 0.00107868 ETH | 0.00210242 | ||||
Process | 15166152 | 866 days ago | IN | 0 ETH | 0.00059417 | ||||
Lock | 15166145 | 866 days ago | IN | 0.0008902 ETH | 0.00173507 | ||||
Process | 15165489 | 866 days ago | IN | 0 ETH | 0.00084842 | ||||
Lock | 15165479 | 866 days ago | IN | 0.00117317 ETH | 0.00228681 | ||||
Process | 15062718 | 882 days ago | IN | 0 ETH | 0.00040211 | ||||
Lock | 15062717 | 882 days ago | IN | 0.0006599 ETH | 0.00128631 | ||||
Process | 14980963 | 897 days ago | IN | 0 ETH | 0.00165984 | ||||
Lock | 14980960 | 897 days ago | IN | 0.00210756 ETH | 0.00410817 | ||||
Process | 14895355 | 911 days ago | IN | 0 ETH | 0.00342323 | ||||
Lock | 14895295 | 911 days ago | IN | 0.00560915 ETH | 0.01093363 | ||||
Unlock | 14665562 | 948 days ago | IN | 0 ETH | 0.01468862 | ||||
Process | 14411641 | 988 days ago | IN | 0 ETH | 0.00348966 | ||||
Lock | 14411570 | 988 days ago | IN | 0.00376143 ETH | 0.00733265 | ||||
Redeem All | 14327760 | 1001 days ago | IN | 0 ETH | 0.00293142 | ||||
Process | 14325631 | 1001 days ago | IN | 0 ETH | 0.0015386 | ||||
Lock | 14325597 | 1001 days ago | IN | 0.00125381 ETH | 0.00244398 | ||||
Unlock | 14152091 | 1028 days ago | IN | 0 ETH | 0.00293737 | ||||
Fund Unlock | 14152089 | 1028 days ago | IN | 0.00350768 ETH | 0.00202426 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15909350 | 755 days ago | 0.00087177 ETH | ||||
15855351 | 763 days ago | 0.00107868 ETH | ||||
15837474 | 765 days ago | 0.00233448 ETH | ||||
15166152 | 866 days ago | 0.0008902 ETH | ||||
15165489 | 866 days ago | 0.00117317 ETH | ||||
15062718 | 882 days ago | 0.0006599 ETH | ||||
14980963 | 897 days ago | 0.00210756 ETH | ||||
14895355 | 911 days ago | 0.00560915 ETH | ||||
14665562 | 948 days ago | 0.01403072 ETH | ||||
14411641 | 988 days ago | 0.00376143 ETH | ||||
14325631 | 1001 days ago | 0.00125381 ETH | ||||
14152091 | 1028 days ago | 0.00350768 ETH | ||||
14012121 | 1050 days ago | 0.01321498 ETH | ||||
13938952 | 1061 days ago | 0.00571018 ETH | ||||
13880968 | 1070 days ago | 0.00283757 ETH | ||||
13880854 | 1070 days ago | 0.00283757 ETH | ||||
13878324 | 1070 days ago | 0.03055337 ETH | ||||
13858707 | 1073 days ago | 0.00905471 ETH | ||||
13816248 | 1080 days ago | 0.00489444 ETH | ||||
13752696 | 1090 days ago | 0.00514722 ETH | ||||
13720956 | 1095 days ago | 0.00962573 ETH | ||||
13704482 | 1098 days ago | 0.00613707 ETH | ||||
13662431 | 1104 days ago | 0.00970053 ETH | ||||
13657417 | 1105 days ago | 0.00766795 ETH | ||||
13641425 | 1108 days ago | 0.0118782 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x64E89431...deB842dB4 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
MainMultiBridge
Compiler Version
v0.6.8+commit.0bbfe453
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Unlicense pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol"; import "../dependencies/MultiBridge.sol"; import "../dependencies/FeeAccrual.sol"; import "../dependencies/ERC20MintSnapshot.sol"; /** * PRISM MainMultiBridge * * Attributes: * - Locks PRISM tokens and supplies * - Unlocks PRISM tokens from an authorized member after a cross-chain migration */ contract MainMultiBridge is MultiBridge, FeeAccrual { using SafeERC20 for ERC20MintSnapshot; // Gas Units Required for an `unlock` uint256 private constant MAIN_UNLOCK_COST = 81574; event CrossChainFeeAccrual(uint256 amount); event CrossChainBurn(uint256 amount); constructor(ERC20MintSnapshot prism, uint256[] memory chainList) public MultiBridge(MAIN_UNLOCK_COST, chainList) FeeAccrual(prism) {} function lock( address to, uint256 amount, uint256 chain ) external payable override validFunding() validChain(chain) { // Zero Security Assumptions uint256 lockAmount = PRISM.balanceOf(address(this)); PRISM.safeTransferFrom(msg.sender, address(this), amount); lockAmount = PRISM.balanceOf(address(this)).sub(lockAmount); uint256 id = crossChainTransfer++; outwardTransfers[id] = CrossChainTransfer( to, false, safe88( tx.gasprice, "Multibridge::lock: tx gas price exceeds 32 bits" ), amount, chain ); // Optionally captured by off-chain migrator emit CrossChainTransferLocked(msg.sender, id); } function unlock( uint256 satelliteChain, uint256 i, address to, uint256 amount ) external override onlyOperator() { bytes32 h = keccak256(abi.encode(satelliteChain, i, to, amount)); uint256 refundGasPrice = inwardTransferFunding[h]; if (refundGasPrice == PROCESSED) return; inwardTransferFunding[h] = PROCESSED; PRISM.safeTransfer(to, amount); if (refundGasPrice != 0) msg.sender.sendValue(refundGasPrice * MAIN_UNLOCK_COST); emit CrossChainTransferUnlocked(to, amount, satelliteChain); } // Fee handling function accrueFees(uint224 amount) external onlyOwner() { accruedFees.push( Fees( safe32( block.number, "Multibridge::accrueFees: block number exceeds 32 bits" ), amount ) ); emit CrossChainFeeAccrual(amount); } // Token Burning function burn(uint256 amount) external onlyOperator() { ERC20Burnable(address(PRISM)).burn(amount); emit CrossChainBurn(amount); } function collectPRISM(uint256 amount) external onlyOwner() { PRISM.safeTransfer(msg.sender, amount); } }
// SPDX-License-Identifier: Unlicense pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract Controller is Ownable { mapping(address => bool) operator; modifier onlyOperator() { require(operator[msg.sender], "Only-operator"); _; } constructor() public { operator[msg.sender] = true; } function setOperator(address _operator, bool _whiteList) public onlyOwner { operator[_operator] = _whiteList; } }
// SPDX-License-Identifier: Unlicense pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // Code Based on Compound's Comp.sol: https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol contract ERC20MintSnapshot is ERC20 { /// @notice A checkpoint for marking number of mints from a given block struct Checkpoint { uint32 fromBlock; uint224 mints; } /// @notice A record of mint checkpoints for each account, by index mapping(address => mapping(uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping(address => uint32) public numCheckpoints; // Address to signify snapshotted total mint amount address private constant TOTAL_MINT = address(0); constructor(string memory name, string memory symbol) public ERC20(name, symbol) {} /** * @notice Determine the prior amount of mints for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the mint balance at * @return The amount of mints the account had as of the given block */ function getPriorMints(address account, uint256 blockNumber) public view returns (uint224) { require( blockNumber < block.number, "ERC20MintSnapshot::getPriorMints: not yet determined" ); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].mints; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.mints; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].mints; } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal override { uint224 value = safe224( amount, "ERC20MintSnapshot::_beforeTokenTransfer: Amount minted exceeds limit" ); if (from == address(0) && value > 0) { uint32 totalMintNum = numCheckpoints[TOTAL_MINT]; uint224 totalMintOld = totalMintNum > 0 ? checkpoints[TOTAL_MINT][totalMintNum - 1].mints : 0; uint224 totalMintNew = add224( totalMintOld, value, "ERC20MintSnapshot::_beforeTokenTransfer: mint amount overflows" ); _writeCheckpoint(TOTAL_MINT, totalMintNum, totalMintNew); uint32 minterNum = numCheckpoints[to]; uint224 minterOld = minterNum > 0 ? checkpoints[to][minterNum - 1].mints : 0; uint224 minterNew = add224( minterOld, value, "ERC20MintSnapshot::_beforeTokenTransfer: mint amount overflows" ); _writeCheckpoint(to, minterNum, minterNew); } } function _writeCheckpoint( address minter, uint32 nCheckpoints, uint224 newMints ) internal { uint32 blockNumber = safe32( block.number, "ERC20MintSnapshot::_writeCheckpoint: block number exceeds 32 bits" ); if ( nCheckpoints > 0 && checkpoints[minter][nCheckpoints - 1].fromBlock == blockNumber ) { checkpoints[minter][nCheckpoints - 1].mints = newMints; } else { checkpoints[minter][nCheckpoints] = Checkpoint( blockNumber, newMints ); numCheckpoints[minter] = nCheckpoints + 1; } } function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function safe224(uint256 n, string memory errorMessage) internal pure returns (uint224) { require(n < 2**224, errorMessage); return uint224(n); } function add224( uint224 a, uint224 b, string memory errorMessage ) internal pure returns (uint224) { uint224 c = a + b; require(c >= a, errorMessage); return c; } }
// SPDX-License-Identifier: Unlicense pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "./ERC20MintSnapshot.sol"; contract FeeAccrual { using SafeMath for uint256; using SafeERC20 for ERC20MintSnapshot; Fees[] internal accruedFees; struct Fees { uint32 blockNumber; uint224 amount; mapping(address => bool) claimed; } // Token to pay out fees in and query about proportions ERC20MintSnapshot internal immutable PRISM; // Address to signify snapshotted total mint amount address private constant TOTAL_MINT = address(0); event CrossChainFeesClaimed(address indexed beneficiary, uint256 amount); constructor(ERC20MintSnapshot prism) internal { PRISM = prism; } function totalAvailableRedemption() external view returns (uint256 total) { for (uint256 i = 0; i < accruedFees.length; i++) total = total.add(availableRedemption(i)); } function availableRedemption(uint256 num) public view returns (uint256) { Fees memory fees = accruedFees[num]; if (accruedFees[num].claimed[msg.sender]) return 0; uint256 userMints = uint256(PRISM.getPriorMints(msg.sender, fees.blockNumber)); uint256 totalMints = uint256(PRISM.getPriorMints(TOTAL_MINT, fees.blockNumber)); uint256 amount = uint256(fees.amount); return amount.mul(userMints).div(totalMints); } function redeemAll() external { uint256 availableFees = 0; for (uint256 i = 0; i < accruedFees.length; i++) { uint256 available = availableRedemption(i); if (available > 0) { availableFees = availableFees.add(available); accruedFees[i].claimed[msg.sender] = true; } } require(availableFees > 0, "FeeAccrual::redeem: No fees are claimable"); PRISM.safeTransfer(msg.sender, availableFees); emit CrossChainFeesClaimed(msg.sender, availableFees); } function redeem(uint256 num) external { uint256 availableFees = availableRedemption(num); require( availableFees != 0, "FeeAccrual::redeem: No fees are claimable" ); accruedFees[num].claimed[msg.sender] = true; PRISM.safeTransfer(msg.sender, availableFees); emit CrossChainFeesClaimed(msg.sender, availableFees); } function safe32(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } }
// SPDX-License-Identifier: Unlicense pragma solidity >=0.6.0 <0.8.0; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "./Controller.sol"; /** * PRISM MultiBridge * * Attributes: * - Stores cross-chain transfers until they are processed * - Supports the tracking of cross-chain transfers via hash-based IDs * - Ensures users fund the necessary gas cost for the migrations based on a flag */ abstract contract MultiBridge is Controller { using SafeERC20 for ERC20; using SafeMath for uint256; using Address for address payable; mapping (uint256 => bool) public isSupportedChain; struct CrossChainTransfer { address to; bool processed; uint88 gasPrice; uint256 amount; uint256 chain; } // Numeric flag for processed inward transfers uint256 internal constant PROCESSED = type(uint256).max; // Gas Costs // - Process gas cost uint256 private constant PROCESS_COST = 65990; // - Unlock gas cost uint256 private immutable UNLOCK_COST; // Holding all pending cross chain transfer info // - ID of cross chain transfers uint256 internal crossChainTransfer; // - Enforce funding supply from users bool internal forceFunding = true; // - Outward transfer data mapping(uint256 => CrossChainTransfer) public outwardTransfers; // - Inward gas price funding, used as a flag for processed txs via `PROCESSED` mapping(bytes32 => uint256) public inwardTransferFunding; event CrossChainTransferLocked(address indexed from, uint256 i); event CrossChainTransferProcessed( address indexed to, uint256 amount, uint256 chain ); event CrossChainUnlockFundsReceived( address indexed to, uint256 amount, uint256 chain, uint256 orderId ); event CrossChainTransferUnlocked( address indexed to, uint256 amount, uint256 chain ); modifier validChain(uint256 chain) { _validChain(chain); _; } modifier validFunding() { _validFunding(); _; } constructor(uint256 unlockCost, uint256[] memory chainList) public Controller() { UNLOCK_COST = unlockCost; for (uint i = 0; i < chainList.length; i++) { isSupportedChain[chainList[i]] = true; } } function setForceFunding(bool _forceFunding) external onlyOwner() { forceFunding = _forceFunding; } function whiteListChain(uint256 _chainId, bool _whiteList) external onlyOwner() { isSupportedChain[_chainId] = _whiteList; } function process(uint256 i) external onlyOperator() { CrossChainTransfer memory cct = outwardTransfers[i]; outwardTransfers[i].processed = true; if (forceFunding) msg.sender.sendValue(cct.gasPrice * PROCESS_COST); emit CrossChainTransferProcessed(cct.to, cct.amount, cct.chain); } function fundUnlock( uint256 satelliteChain, uint256 i, address to, uint256 amount ) external payable { uint256 funds = msg.value.div(UNLOCK_COST); require( funds != 0, "MultiBridge::fundUnlock: Incorrect amount of funds supplied" ); bytes32 h = keccak256(abi.encode(satelliteChain, i, to, amount)); require( inwardTransferFunding[h] != PROCESSED, "MultiBridge::fundUnlock: Transaction already unlocked" ); require( inwardTransferFunding[h] == 0, "MultiBridge::fundUnlock: Funding already provided" ); inwardTransferFunding[h] = funds; emit CrossChainUnlockFundsReceived(to, amount, satelliteChain, i); } function _validChain(uint256 chain) private view { require( isSupportedChain[chain], "MultiBridge::lock: Invalid chain specified" ); } function _validFunding() private view { // Ensure sufficient funds accompany deposit to fund migration require( !forceFunding || tx.gasprice.mul(PROCESS_COST) <= msg.value, "MultiBridge::lock: Insufficient funds provided to fund migration" ); } function checkTxProcessed( uint256 satelliteChain, uint256 i, address to, uint256 amount ) external view returns (bool) { return inwardTransferFunding[ keccak256(abi.encode(satelliteChain, i, to, amount)) ] == PROCESSED; } function lock( address to, uint256 amount, uint256 chain ) external payable virtual; function unlock( uint256 satelliteChain, uint256 i, address to, uint256 amount ) external virtual; function safe88(uint256 n, string memory errorMessage) internal pure returns (uint88) { require(n < 2**88, errorMessage); return uint88(n); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * 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); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./IERC20.sol"; import "../../math/SafeMath.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../../utils/Context.sol"; import "./ERC20.sol"; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { using SafeMath for uint256; /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.sol"; import "../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 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"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (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"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 999999 }, "evmVersion": "istanbul", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract ERC20MintSnapshot","name":"prism","type":"address"},{"internalType":"uint256[]","name":"chainList","type":"uint256[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainBurn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainFeeAccrual","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beneficiary","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CrossChainFeesClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"i","type":"uint256"}],"name":"CrossChainTransferLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chain","type":"uint256"}],"name":"CrossChainTransferProcessed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chain","type":"uint256"}],"name":"CrossChainTransferUnlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"chain","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"orderId","type":"uint256"}],"name":"CrossChainUnlockFundsReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint224","name":"amount","type":"uint224"}],"name":"accrueFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"availableRedemption","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"satelliteChain","type":"uint256"},{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"checkTxProcessed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"collectPRISM","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"satelliteChain","type":"uint256"},{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"fundUnlock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"inwardTransferFunding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"isSupportedChain","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"chain","type":"uint256"}],"name":"lock","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"outwardTransfers","outputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"processed","type":"bool"},{"internalType":"uint88","name":"gasPrice","type":"uint88"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"chain","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"i","type":"uint256"}],"name":"process","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_forceFunding","type":"bool"}],"name":"setForceFunding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"},{"internalType":"bool","name":"_whiteList","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAvailableRedemption","outputs":[{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"satelliteChain","type":"uint256"},{"internalType":"uint256","name":"i","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"bool","name":"_whiteList","type":"bool"}],"name":"whiteListChain","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x60806040526004361061016a5760003560e01c8063558a7297116100cb578063db006a751161007f578063e886ff8411610059578063e886ff841461054c578063f2fde38b1461059e578063ffb2c479146105de5761016a565b8063db006a75146104b9578063db487acc146104e3578063e2ab691d1461050d5761016a565b8063741bb6e7116100b0578063741bb6e7146104015780638da5cb5b146104335780638ef0526a146104715761016a565b8063558a7297146103a4578063715018a6146103ec5761016a565b80632f4350c21161012257806342966c681161010757806342966c68146102f75780635153d4671461032157806351c29b411461035f5761016a565b80632f4350c2146102b657806341d228f7146102cb5761016a565b80631782e35b116101535780631782e35b146102235780631c3cc025146102385780632232f7511461028c5761016a565b80630e3af3741461016f5780630ed16339146101ab575b600080fd5b34801561017b57600080fd5b506101996004803603602081101561019257600080fd5b5035610608565b60408051918252519081900360200190f35b3480156101b757600080fd5b506101d5600480360360208110156101ce57600080fd5b503561061a565b6040805173ffffffffffffffffffffffffffffffffffffffff909616865293151560208601526affffffffffffffffffffff9092168484015260608401526080830152519081900360a00190f35b34801561022f57600080fd5b50610199610693565b34801561024457600080fd5b5061028a6004803603608081101561025b57600080fd5b5080359060208101359073ffffffffffffffffffffffffffffffffffffffff60408201351690606001356106c8565b005b34801561029857600080fd5b50610199600480360360208110156102af57600080fd5b50356108bf565b3480156102c257600080fd5b5061028a610b79565b3480156102d757600080fd5b5061028a600480360360208110156102ee57600080fd5b50351515610ceb565b34801561030357600080fd5b5061028a6004803603602081101561031a57600080fd5b5035610dc4565b34801561032d57600080fd5b5061034b6004803603602081101561034457600080fd5b5035610f04565b604080519115158252519081900360200190f35b61028a6004803603608081101561037557600080fd5b5080359060208101359073ffffffffffffffffffffffffffffffffffffffff6040820135169060600135610f19565b3480156103b057600080fd5b5061028a600480360360408110156103c757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611151565b3480156103f857600080fd5b5061028a61124f565b34801561040d57600080fd5b5061028a6004803603604081101561042457600080fd5b50803590602001351515611366565b34801561043f57600080fd5b5061044861144c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561047d57600080fd5b5061028a6004803603602081101561049457600080fd5b50357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16611468565b3480156104c557600080fd5b5061028a600480360360208110156104dc57600080fd5b5035611605565b3480156104ef57600080fd5b5061028a6004803603602081101561050657600080fd5b5035611740565b61028a6004803603606081101561052357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060208101359060400135611832565b34801561055857600080fd5b5061034b6004803603608081101561056f57600080fd5b5080359060208101359073ffffffffffffffffffffffffffffffffffffffff6040820135169060600135611bc0565b3480156105aa57600080fd5b5061028a600480360360208110156105c157600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611c46565b3480156105ea57600080fd5b5061028a6004803603602081101561060157600080fd5b5035611de7565b60066020526000908152604090205481565b60056020526000908152604090208054600182015460029092015473ffffffffffffffffffffffffffffffffffffffff82169274010000000000000000000000000000000000000000830460ff1692750100000000000000000000000000000000000000000090046affffffffffffffffffffff169185565b6000805b6007548110156106c4576106ba6106ad826108bf565b839063ffffffff611fcf16565b9150600101610697565b5090565b3360009081526001602052604090205460ff1661074657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4f6e6c792d6f70657261746f7200000000000000000000000000000000000000604482015290519081900360640190fd5b60408051602080820187905281830186905273ffffffffffffffffffffffffffffffffffffffff8516606083015260808083018590528351808403909101815260a0909201835281519181019190912060008181526006909252919020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8114156107d35750506108b9565b60008281526006602052604090207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905561084b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516858563ffffffff61204c16565b8015610866576108663362013ea6830263ffffffff6120de16565b6040805184815260208101889052815173ffffffffffffffffffffffffffffffffffffffff8716927fd5a3e9f9700ecd9cabe430626008229653621fa5d5c23972da71b17160fed1bd928290030190a250505b50505050565b60006108c9612948565b600783815481106108d657fe5b6000918252602091829020604080518082019091526002909202015463ffffffff811682527bffffffffffffffffffffffffffffffffffffffffffffffffffffffff640100000000909104169181019190915260078054919250908490811061093b57fe5b600091825260208083203384526001600290930201919091019052604090205460ff161561096d576000915050610b74565b8051604080517fad5abb3b00000000000000000000000000000000000000000000000000000000815233600482015263ffffffff90921660248301525160009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd4325169163ad5abb3b91604480820192602092909190829003018186803b158015610a0b57600080fd5b505afa158015610a1f573d6000803e3d6000fd5b505050506040513d6020811015610a3557600080fd5b50518251604080517fad5abb3b00000000000000000000000000000000000000000000000000000000815260006004820181905263ffffffff909316602482015290517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff9093169350909173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd4325169163ad5abb3b916044808301926020929190829003018186803b158015610af957600080fd5b505afa158015610b0d573d6000803e3d6000fd5b505050506040513d6020811015610b2357600080fd5b505160208401517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff918216925016610b6d82610b61838663ffffffff61220416565b9063ffffffff61227716565b9450505050505b919050565b6000805b600754811015610c11576000610b92826108bf565b90508015610c0857610baa838263ffffffff611fcf16565b9250600160078381548110610bbb57fe5b6000918252602080832033845260029290920290910160010190526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790555b50600101610b7d565b5060008111610c6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612aae6029913960400191505060405180910390fd5b610cb273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516338363ffffffff61204c16565b60408051828152905133917fe7aca168b7cdb9ad70dc64d9daeca50e66d8ff1667910078d5340f4d624d6e71919081900360200190a250565b610cf36122f8565b73ffffffffffffffffffffffffffffffffffffffff16610d1161144c565b73ffffffffffffffffffffffffffffffffffffffff1614610d9357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3360009081526001602052604090205460ff16610e4257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4f6e6c792d6f70657261746f7200000000000000000000000000000000000000604482015290519081900360640190fd5b7f000000000000000000000000d46df541148932690b81092f600f35208afd432573ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b158015610eb557600080fd5b505af1158015610ec9573d6000803e3d6000fd5b50506040805184815290517f3a726361b5b87048302448d9814a133f46d2d7de1b2b04d2e70c24d40bd219899350908190036020019150a150565b60026020526000908152604090205460ff1681565b6000610f4b347f0000000000000000000000000000000000000000000000000000000000013ea663ffffffff61227716565b905080610fa3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603b8152602001806129b8603b913960400191505060405180910390fd5b60408051602080820188905281830187905273ffffffffffffffffffffffffffffffffffffffff8616606083015260808083018690528351808403909101815260a0909201835281519181019190912060008181526006909252919020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1415611079576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526035815260200180612b986035913960400191505060405180910390fd5b600081815260066020526040902054156110de576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180612af86031913960400191505060405180910390fd5b6000818152600660209081526040918290208490558151858152908101889052808201879052905173ffffffffffffffffffffffffffffffffffffffff8616917f0e3d8db210da558c0c8c57cd7c249e7f33af0e0189b0d53361bb365ae338f9a9919081900360600190a2505050505050565b6111596122f8565b73ffffffffffffffffffffffffffffffffffffffff1661117761144c565b73ffffffffffffffffffffffffffffffffffffffff16146111f957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b6112576122f8565b73ffffffffffffffffffffffffffffffffffffffff1661127561144c565b73ffffffffffffffffffffffffffffffffffffffff16146112f757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b61136e6122f8565b73ffffffffffffffffffffffffffffffffffffffff1661138c61144c565b73ffffffffffffffffffffffffffffffffffffffff161461140e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60009182526002602052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b6114706122f8565b73ffffffffffffffffffffffffffffffffffffffff1661148e61144c565b73ffffffffffffffffffffffffffffffffffffffff161461151057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6007604051806040016040528061153f43604051806060016040528060358152602001612a79603591396122fc565b63ffffffff90811682527bffffffffffffffffffffffffffffffffffffffffffffffffffffffff808616602093840181905285546001810187556000968752958490208551600290970201805495850151909216640100000000029583167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00000000909516949094179091169390931790925560408051918252517f05ec2eb90552461452cd2449bc267ea1dfa4407e8960f98da15ced4b86066a26929181900390910190a150565b6000611610826108bf565b905080611668576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180612aae6029913960400191505060405180910390fd5b60016007838154811061167757fe5b6000918252602080832033808552600293909302016001019052604090912080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016921515929092179091556117069073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516908361204c565b60408051828152905133917fe7aca168b7cdb9ad70dc64d9daeca50e66d8ff1667910078d5340f4d624d6e71919081900360200190a25050565b6117486122f8565b73ffffffffffffffffffffffffffffffffffffffff1661176661144c565b73ffffffffffffffffffffffffffffffffffffffff16146117e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61182f73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516338363ffffffff61204c16565b50565b61183a6123b1565b806118448161242c565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516916370a0823191602480820192602092909190829003018186803b1580156118d457600080fd5b505afa1580156118e8573d6000803e3d6000fd5b505050506040513d60208110156118fe57600080fd5b5051905061194a73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd43251633308763ffffffff61249316565b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051611a1491839173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000d46df541148932690b81092f600f35208afd432516916370a08231916024808301926020929190829003018186803b1580156119dc57600080fd5b505afa1580156119f0573d6000803e3d6000fd5b505050506040513d6020811015611a0657600080fd5b50519063ffffffff61252816565b90506000600360008154809291906001019190505590506040518060a001604052808773ffffffffffffffffffffffffffffffffffffffff168152602001600015158152602001611a7d3a6040518060600160405280602f8152602001612b69602f913961259f565b6affffffffffffffffffffff90811682526020808301899052604092830188905260008581526005825283902084518154868401518787015190951675010000000000000000000000000000000000000000000274ffffffffffffffffffffffffffffffffffffffffff95151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff73ffffffffffffffffffffffffffffffffffffffff9094167fffffffffffffffffffffffff000000000000000000000000000000000000000090931692909217929092161793909316929092178255606084015160018301556080909301516002909101558051838152905133927f6cc803c3e9c29fa1bc336c0799c463deaf16e1c89dac5f6364971c21c0cd693c928290030190a2505050505050565b60408051602080820187905281830186905273ffffffffffffffffffffffffffffffffffffffff8516606083015260808083018590528351808403909101815260a090920183528151918101919091206000908152600690915220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14949350505050565b611c4e6122f8565b73ffffffffffffffffffffffffffffffffffffffff16611c6c61144c565b73ffffffffffffffffffffffffffffffffffffffff1614611cee57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611d5a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806129f36026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b3360009081526001602052604090205460ff16611e6557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4f6e6c792d6f70657261746f7200000000000000000000000000000000000000604482015290519081900360640190fd5b611e6d61295f565b506000818152600560208181526040808420815160a081018352815473ffffffffffffffffffffffffffffffffffffffff8116825260ff7401000000000000000000000000000000000000000080830482161515848801526affffffffffffffffffffff750100000000000000000000000000000000000000000084041695840195909552600184015460608401526002840154608084015296889052949093527fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9093161790915560045490911615611f69576040810151611f699033906affffffffffffffffffffff16620101c60263ffffffff6120de16565b806000015173ffffffffffffffffffffffffffffffffffffffff167fdfd519367f5fd2d6e6b7fad3a1d4adabcfc603db84263569e451060887ca41bb82606001518360800151604051808381526020018281526020019250505060405180910390a25050565b60008282018381101561204357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b90505b92915050565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790526120d9908490612616565b505050565b8047101561214d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146121a5576040519150601f19603f3d011682016040523d82523d6000602084013e6121aa565b606091505b50509050806120d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180612a19603a913960400191505060405180910390fd5b60008261221357506000612046565b8282028284828161222057fe5b0414612043576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612ad76021913960400191505060405180910390fd5b60008082116122e757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816122f057fe5b049392505050565b3390565b60008164010000000084106123a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561236e578181015183820152602001612356565b50505050905090810190601f16801561239b5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b509192915050565b60045460ff1615806123d55750346123d23a620101c663ffffffff61220416565b11155b61242a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526040815260200180612b296040913960400191505060405180910390fd5b565b60008181526002602052604090205460ff1661182f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a81526020018061298e602a913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526108b9908590612616565b60008282111561259957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000816b01000000000000000000000084106123a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815283516024840152835190928392604490910191908501908083836000831561236e578181015183820152602001612356565b6060612678826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166126ee9092919063ffffffff16565b8051909150156120d95780806020019051602081101561269757600080fd5b50516120d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612bcd602a913960400191505060405180910390fd5b60606126fd8484600085612707565b90505b9392505050565b606082471015612762576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612a536026913960400191505060405180910390fd5b61276b856128c2565b6127d657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b6020831061284057805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612803565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146128a2576040519150601f19603f3d011682016040523d82523d6000602084013e6128a7565b606091505b50915091506128b78282866128c8565b979650505050505050565b3b151590565b606083156128d7575081612700565b8251156128e75782518084602001fd5b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181815284516024840152845185939192839260440191908501908083836000831561236e578181015183820152602001612356565b604080518082019091526000808252602082015290565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091529056fe4d756c74694272696467653a3a6c6f636b3a20496e76616c696420636861696e207370656369666965644d756c74694272696467653a3a66756e64556e6c6f636b3a20496e636f727265637420616d6f756e74206f662066756e647320737570706c6965644f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4d756c74696272696467653a3a616363727565466565733a20626c6f636b206e756d626572206578636565647320333220626974734665654163637275616c3a3a72656465656d3a204e6f20666565732061726520636c61696d61626c65536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774d756c74694272696467653a3a66756e64556e6c6f636b3a2046756e64696e6720616c72656164792070726f76696465644d756c74694272696467653a3a6c6f636b3a20496e73756666696369656e742066756e64732070726f766964656420746f2066756e64206d6967726174696f6e4d756c74696272696467653a3a6c6f636b3a20747820676173207072696365206578636565647320333220626974734d756c74694272696467653a3a66756e64556e6c6f636b3a205472616e73616374696f6e20616c726561647920756e6c6f636b65645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a264697066735822122088b498a8baa404e5e5d6572900264c20e617c135e3d2ba0e7d8480fd20131e9864736f6c63430006080033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,686.66 | 0.00434163 | $16.01 |
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.