Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x60806040 | 16196675 | 630 days ago | IN | 0 ETH | 0.02649794 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
aMATICc_R3
Compiler Version
v0.8.6+commit.11564f7e
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.0; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165CheckerUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol"; import "../interfaces/IinternetBond_R1.sol"; import "../interfaces/ICertToken.sol"; import "../interfaces/IOwnable.sol"; contract aMATICc_R3 is OwnableUpgradeable, ERC165Upgradeable, ERC20Upgradeable, ICertToken { /** * Variables */ address public pool; address public bondToken; // also known as aMATICb /** * Modifiers */ modifier onlyMinter() { require( msg.sender == pool || msg.sender == bondToken, "onlyMinter: not allowed" ); _; } function initialize(address polygonPool, address _bondToken) public initializer { __Ownable_init(); __ERC20_init_unchained("Ankr MATIC Reward Bearing Certificate", "aMATICc"); pool = polygonPool; bondToken = _bondToken; uint256 initSupply = IinternetBond_R1(bondToken).totalSharesSupply(); // mint init supply if not inizialized super._mint(address(bondToken), initSupply); } function bondTransferTo(address account, uint256 amount) external override onlyMinter { super._transfer(address(bondToken), account, amount); } function bondTransferFrom(address account, uint256 amount) external override onlyMinter { super._transfer(account, address(bondToken), amount); } function ratio() public view override returns (uint256) { return IinternetBond_R1(bondToken).ratio(); } function burn(address account, uint256 amount) external override onlyMinter { _burn(account, amount); } function mint(address account, uint256 amount) external override onlyMinter { _mint(account, amount); } function changePoolContract(address newPool) external override onlyOwner { address oldPool = pool; pool = newPool; emit PoolContractChanged(oldPool, newPool); } function changeBondToken(address newBondToken) external override onlyOwner { address oldBondToken = bondToken; bondToken = newBondToken; emit BondTokenChanged(oldBondToken, newBondToken); } function balanceWithRewardsOf(address account) public view override returns (uint256) { uint256 shares = this.balanceOf(account); return IinternetBond_R1(bondToken).sharesToBalance(shares); } function isRebasing() public pure override returns (bool) { return false; } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return super.supportsInterface(interfaceId) || interfaceId == type(IOwnable).interfaceId || interfaceId == type(ICertToken).interfaceId; } function name() public pure override returns (string memory) { return "Ankr Staked MATIC"; } function symbol() public pure override returns (string memory) { return "ankrMATIC"; } }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.6; interface IinternetBond_R1 { event CertTokenChanged(address oldCertToken, address newCertToken); event SwapFeeOperatorChanged(address oldSwapFeeOperator, address newSwapFeeOperator); event SwapFeeRatioUpdate(uint256 newSwapFeeRatio); function balanceToShares(uint256 bonds) external view returns (uint256); function burn(address account, uint256 amount) external; function changeCertToken(address newCertToken) external; function changeSwapFeeOperator(address newSwapFeeOperator) external; function commitDelayedBurn(address account, uint256 amount) external; function getSwapFeeInBonds(uint256 bonds) external view returns(uint256); function getSwapFeeInShares(uint256 shares) external view returns(uint256); function lockForDelayedBurn(address account, uint256 amount) external; function lockShares(uint256 shares) external; function lockSharesFor(address account, uint256 shares) external; function mintBonds(address account, uint256 amount) external; function pendingBurn(address account) external view returns (uint256); function ratio() external view returns (uint256); function sharesOf(address account) external view returns (uint256); function sharesToBalance(uint256 shares) external view returns (uint256); function totalSharesSupply() external view returns (uint256); function unlockShares(uint256 shares) external; function unlockSharesFor(address account, uint256 bonds) external; function updateSwapFeeRatio(uint256 newSwapFeeRatio) external; }
// SPDX-License-Identifier: GPL-3.0-only pragma solidity ^0.8.0; interface IOwnable { event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); function owner() external view returns (address); function renounceOwnership() external; function transferOwnership(address newOwner) external; }
pragma solidity ^0.8.0; interface ICertToken { event PoolContractChanged(address oldPool, address newPool); event BondTokenChanged(address oldBondToken, address newBondToken); function changePoolContract(address newPoolContract) external; function changeBondToken(address newBondToken) external; function burn(address account, uint256 amount) external; function mint(address account, uint256 amount) external; function bondTransferTo(address account, uint256 shares) external; function bondTransferFrom(address account, uint256 shares) external; function balanceWithRewardsOf(address account) external returns (uint256); function isRebasing() external returns (bool); function ratio() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165Upgradeable { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; import "../../proxy/utils/Initializable.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable { function __ERC165_init() internal initializer { __ERC165_init_unchained(); } function __ERC165_init_unchained() internal initializer { } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165Upgradeable).interfaceId; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "./IERC165Upgradeable.sol"; /** * @dev Library used to query support of an interface declared via {IERC165}. * * Note that these functions return the actual result of the query: they do not * `revert` if an interface is not supported. It is up to the caller to decide * what to do in these cases. */ library ERC165CheckerUpgradeable { // As per the EIP-165 spec, no interface should ever match 0xffffffff bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; /** * @dev Returns true if `account` supports the {IERC165} interface, */ function supportsERC165(address account) internal view returns (bool) { // Any contract that implements ERC165 must explicitly indicate support of // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid return _supportsERC165Interface(account, type(IERC165Upgradeable).interfaceId) && !_supportsERC165Interface(account, _INTERFACE_ID_INVALID); } /** * @dev Returns true if `account` supports the interface defined by * `interfaceId`. Support for {IERC165} itself is queried automatically. * * See {IERC165-supportsInterface}. */ function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { // query support of both ERC165 as per the spec and support of _interfaceId return supportsERC165(account) && _supportsERC165Interface(account, interfaceId); } /** * @dev Returns a boolean array where each value corresponds to the * interfaces passed in and whether they're supported or not. This allows * you to batch check interfaces for a contract where your expectation * is that some interfaces may not be supported. * * See {IERC165-supportsInterface}. * * _Available since v3.4._ */ function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool[] memory) { // an array of booleans corresponding to interfaceIds and whether they're supported or not bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); // query support of ERC165 itself if (supportsERC165(account)) { // query support of each interface in interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { interfaceIdsSupported[i] = _supportsERC165Interface(account, interfaceIds[i]); } } return interfaceIdsSupported; } /** * @dev Returns true if `account` supports all the interfaces defined in * `interfaceIds`. Support for {IERC165} itself is queried automatically. * * Batch-querying can lead to gas savings by skipping repeated checks for * {IERC165} support. * * See {IERC165-supportsInterface}. */ function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { // query support of ERC165 itself if (!supportsERC165(account)) { return false; } // query support of each interface in _interfaceIds for (uint256 i = 0; i < interfaceIds.length; i++) { if (!_supportsERC165Interface(account, interfaceIds[i])) { return false; } } // all interfaces supported return true; } /** * @notice Query if a contract implements an interface, does not check ERC165 support * @param account The address of the contract to query for support of an interface * @param interfaceId The interface identifier, as specified in ERC-165 * @return true if the contract at account indicates support of the interface with * identifier interfaceId, false otherwise * @dev Assumes that account contains a contract that supports ERC165, otherwise * the behavior of this method is undefined. This precondition can be checked * with {supportsERC165}. * Interface identification is specified in ERC-165. */ function _supportsERC165Interface(address account, bytes4 interfaceId) private view returns (bool) { bytes memory encodedParams = abi.encodeWithSelector(IERC165Upgradeable.supportsInterface.selector, interfaceId); (bool success, bytes memory result) = account.staticcall{gas: 30000}(encodedParams); if (result.length < 32) return false; return success && abi.decode(result, (bool)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @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 ContextUpgradeable is Initializable { function __Context_init() internal initializer { __Context_init_unchained(); } function __Context_init_unchained() internal initializer { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } uint256[50] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20MetadataUpgradeable is IERC20Upgradeable { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @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.8.0; import "./IERC20Upgradeable.sol"; import "./extensions/IERC20MetadataUpgradeable.sol"; import "../../utils/ContextUpgradeable.sol"; import "../../proxy/utils/Initializable.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 Contracts guidelines: functions revert * instead 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 ERC20Upgradeable is Initializable, ContextUpgradeable, IERC20Upgradeable, IERC20MetadataUpgradeable { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ function __ERC20_init(string memory name_, string memory symbol_) internal initializer { __Context_init_unchained(); __ERC20_init_unchained(name_, symbol_); } function __ERC20_init_unchained(string memory name_, string memory symbol_) internal initializer { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return 18; } /** * @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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); unchecked { _approve(sender, _msgSender(), currentAllowance - amount); } 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(_msgSender(), spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * This 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[sender] = senderBalance - amount; } _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(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: * * - `account` 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 += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(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 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 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 {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} uint256[45] private __gap; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. */ bool private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Modifier to protect an initializer function from being invoked twice. */ modifier initializer() { require(_initializing || !_initialized, "Initializable: contract is already initialized"); bool isTopLevelCall = !_initializing; if (isTopLevelCall) { _initializing = true; _initialized = true; } _; if (isTopLevelCall) { _initializing = false; } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.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 OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal initializer { __Context_init_unchained(); __Ownable_init_unchained(); } function __Ownable_init_unchained() internal initializer { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } uint256[49] private __gap; }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "berlin", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldBondToken","type":"address"},{"indexed":false,"internalType":"address","name":"newBondToken","type":"address"}],"name":"BondTokenChanged","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldPool","type":"address"},{"indexed":false,"internalType":"address","name":"newPool","type":"address"}],"name":"PoolContractChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceWithRewardsOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bondToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bondTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"bondTransferTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newBondToken","type":"address"}],"name":"changeBondToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newPool","type":"address"}],"name":"changePoolContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"polygonPool","type":"address"},{"internalType":"address","name":"_bondToken","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isRebasing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50611700806100206000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80636d20d3d0116100f95780639dc29fac11610097578063c28f439211610071578063c28f4392146103b4578063d12f08b6146103c7578063dd62ed3e146103da578063f2fde38b1461041357600080fd5b80639dc29fac1461037b578063a457c2d71461038e578063a9059cbb146103a157600080fd5b8063715018a6116100d3578063715018a61461033557806371ca337d1461033d5780638da5cb5b1461034557806395d89b411461035657600080fd5b80636d20d3d0146102e65780636e6e273e146102f957806370a082311461030c57600080fd5b8063313ce56711610166578063485cc95511610140578063485cc955146102a65780634bc3f6e9146102b95780635d0a81c1146102cc5780635dfba115146102df57600080fd5b8063313ce5671461026f578063395093511461027e57806340c10f191461029157600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063095ea7b31461020c57806316f0115b1461021f57806318160ddd1461024a57806323b872dd1461025c575b600080fd5b6101c16101bc3660046114d3565b610426565b60405190151581526020015b60405180910390f35b604080518082019091526011815270416e6b72205374616b6564204d4154494360781b60208201525b6040516101cd9190611516565b6101c161021a3660046114a9565b610478565b60c954610232906001600160a01b031681565b6040516001600160a01b0390911681526020016101cd565b6099545b6040519081526020016101cd565b6101c161026a36600461146d565b61048e565b604051601281526020016101cd565b6101c161028c3660046114a9565b61053d565b6102a461029f3660046114a9565b610579565b005b6102a46102b436600461143a565b6105c6565b6102a46102c73660046114a9565b610736565b61024e6102da36600461141f565b61078d565b60006101c1565b6102a46102f436600461141f565b61088d565b6102a46103073660046114a9565b610919565b61024e61031a36600461141f565b6001600160a01b031660009081526097602052604090205490565b6102a461096f565b61024e6109a5565b6033546001600160a01b0316610232565b604080518082019091526009815268616e6b724d4154494360b81b60208201526101ff565b6102a46103893660046114a9565b610a27565b6101c161039c3660046114a9565b610a70565b6101c16103af3660046114a9565b610b09565b60ca54610232906001600160a01b031681565b6102a46103d536600461141f565b610b16565b61024e6103e836600461143a565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b6102a461042136600461141f565b610b9a565b60006301ffc9a760e01b6001600160e01b03198316148061045757506001600160e01b03198216630704183b60e11b145b8061047257506001600160e01b0319821663359a89ad60e01b145b92915050565b6000610485338484610c35565b50600192915050565b600061049b848484610d59565b6001600160a01b0384166000908152609860209081526040808320338452909152902054828110156105255760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105328533858403610c35565b506001949350505050565b3360008181526098602090815260408083206001600160a01b03871684529091528120549091610485918590610574908690611625565b610c35565b60c9546001600160a01b031633148061059c575060ca546001600160a01b031633145b6105b85760405162461bcd60e51b815260040161051c906115b9565b6105c28282610f28565b5050565b600054610100900460ff16806105df575060005460ff16155b6105fb5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561061d576000805461ffff19166101011790555b610625611007565b6106666040518060600160405280602581526020016116a66025913960405180604001604052806007815260200166614d415449436360c81b815250611082565b60c980546001600160a01b038086166001600160a01b03199283161790925560ca8054928516929091168217905560408051633541867360e21b815290516000929163d50619cc916004808301926020929190829003018186803b1580156106cd57600080fd5b505afa1580156106e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070591906114fd565b60ca5490915061071e906001600160a01b031682610f28565b508015610731576000805461ff00191690555b505050565b60c9546001600160a01b0316331480610759575060ca546001600160a01b031633145b6107755760405162461bcd60e51b815260040161051c906115b9565b60ca546105c29083906001600160a01b031683610d59565b6040516370a0823160e01b81526001600160a01b0382166004820152600090819030906370a082319060240160206040518083038186803b1580156107d157600080fd5b505afa1580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080991906114fd565b60ca546040516353735f3760e01b8152600481018390529192506001600160a01b0316906353735f379060240160206040518083038186803b15801561084e57600080fd5b505afa158015610862573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088691906114fd565b9392505050565b6033546001600160a01b031633146108b75760405162461bcd60e51b815260040161051c906115f0565b60ca80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f818ee857cc8ed5f39a8e7364bcde88550cef56298e95cd4259dd4eefc55dff5691015b60405180910390a15050565b60c9546001600160a01b031633148061093c575060ca546001600160a01b031633145b6109585760405162461bcd60e51b815260040161051c906115b9565b60ca546105c2906001600160a01b03168383610d59565b6033546001600160a01b031633146109995760405162461bcd60e51b815260040161051c906115f0565b6109a36000611100565b565b60ca54604080516371ca337d60e01b815290516000926001600160a01b0316916371ca337d916004808301926020929190829003018186803b1580156109ea57600080fd5b505afa1580156109fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2291906114fd565b905090565b60c9546001600160a01b0316331480610a4a575060ca546001600160a01b031633145b610a665760405162461bcd60e51b815260040161051c906115b9565b6105c28282611152565b3360009081526098602090815260408083206001600160a01b038616845290915281205482811015610af25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161051c565b610aff3385858403610c35565b5060019392505050565b6000610485338484610d59565b6033546001600160a01b03163314610b405760405162461bcd60e51b815260040161051c906115f0565b60c980546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa0e8e976fdd0e98162e455be8dce022221ced6cb25fb567069b040948d668181910161090d565b6033546001600160a01b03163314610bc45760405162461bcd60e51b815260040161051c906115f0565b6001600160a01b038116610c295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161051c565b610c3281611100565b50565b6001600160a01b038316610c975760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161051c565b6001600160a01b038216610cf85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161051c565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610dbd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161051c565b6001600160a01b038216610e1f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161051c565b6001600160a01b03831660009081526097602052604090205481811015610e975760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161051c565b6001600160a01b03808516600090815260976020526040808220858503905591851681529081208054849290610ece908490611625565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f1a91815260200190565b60405180910390a350505050565b6001600160a01b038216610f7e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161051c565b8060996000828254610f909190611625565b90915550506001600160a01b03821660009081526097602052604081208054839290610fbd908490611625565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600054610100900460ff1680611020575060005460ff16155b61103c5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561105e576000805461ffff19166101011790555b6110666112a0565b61106e61130a565b8015610c32576000805461ff001916905550565b600054610100900460ff168061109b575060005460ff16155b6110b75760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff161580156110d9576000805461ffff19166101011790555b82516110ec90609a90602086019061136a565b50815161071e90609b90602085019061136a565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166111b25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161051c565b6001600160a01b038216600090815260976020526040902054818110156112265760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161051c565b6001600160a01b038316600090815260976020526040812083830390556099805484929061125590849061163d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600054610100900460ff16806112b9575060005460ff16155b6112d55760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561106e576000805461ffff19166101011790558015610c32576000805461ff001916905550565b600054610100900460ff1680611323575060005460ff16155b61133f5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff16158015611361576000805461ffff19166101011790555b61106e33611100565b82805461137690611654565b90600052602060002090601f01602090048101928261139857600085556113de565b82601f106113b157805160ff19168380011785556113de565b828001600101855582156113de579182015b828111156113de5782518255916020019190600101906113c3565b506113ea9291506113ee565b5090565b5b808211156113ea57600081556001016113ef565b80356001600160a01b038116811461141a57600080fd5b919050565b60006020828403121561143157600080fd5b61088682611403565b6000806040838503121561144d57600080fd5b61145683611403565b915061146460208401611403565b90509250929050565b60008060006060848603121561148257600080fd5b61148b84611403565b925061149960208501611403565b9150604084013590509250925092565b600080604083850312156114bc57600080fd5b6114c583611403565b946020939093013593505050565b6000602082840312156114e557600080fd5b81356001600160e01b03198116811461088657600080fd5b60006020828403121561150f57600080fd5b5051919050565b600060208083528351808285015260005b8181101561154357858101830151858201604001528201611527565b81811115611555576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f6f6e6c794d696e7465723a206e6f7420616c6c6f776564000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156116385761163861168f565b500190565b60008282101561164f5761164f61168f565b500390565b600181811c9082168061166857607f821691505b6020821081141561168957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfe416e6b72204d41544943205265776172642042656172696e67204365727469666963617465a2646970667358221220869218d7386c50982d67aae4a8ff750d6b588fc76d9a8400fb21b2c197677b8664736f6c63430008060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80636d20d3d0116100f95780639dc29fac11610097578063c28f439211610071578063c28f4392146103b4578063d12f08b6146103c7578063dd62ed3e146103da578063f2fde38b1461041357600080fd5b80639dc29fac1461037b578063a457c2d71461038e578063a9059cbb146103a157600080fd5b8063715018a6116100d3578063715018a61461033557806371ca337d1461033d5780638da5cb5b1461034557806395d89b411461035657600080fd5b80636d20d3d0146102e65780636e6e273e146102f957806370a082311461030c57600080fd5b8063313ce56711610166578063485cc95511610140578063485cc955146102a65780634bc3f6e9146102b95780635d0a81c1146102cc5780635dfba115146102df57600080fd5b8063313ce5671461026f578063395093511461027e57806340c10f191461029157600080fd5b806301ffc9a7146101ae57806306fdde03146101d6578063095ea7b31461020c57806316f0115b1461021f57806318160ddd1461024a57806323b872dd1461025c575b600080fd5b6101c16101bc3660046114d3565b610426565b60405190151581526020015b60405180910390f35b604080518082019091526011815270416e6b72205374616b6564204d4154494360781b60208201525b6040516101cd9190611516565b6101c161021a3660046114a9565b610478565b60c954610232906001600160a01b031681565b6040516001600160a01b0390911681526020016101cd565b6099545b6040519081526020016101cd565b6101c161026a36600461146d565b61048e565b604051601281526020016101cd565b6101c161028c3660046114a9565b61053d565b6102a461029f3660046114a9565b610579565b005b6102a46102b436600461143a565b6105c6565b6102a46102c73660046114a9565b610736565b61024e6102da36600461141f565b61078d565b60006101c1565b6102a46102f436600461141f565b61088d565b6102a46103073660046114a9565b610919565b61024e61031a36600461141f565b6001600160a01b031660009081526097602052604090205490565b6102a461096f565b61024e6109a5565b6033546001600160a01b0316610232565b604080518082019091526009815268616e6b724d4154494360b81b60208201526101ff565b6102a46103893660046114a9565b610a27565b6101c161039c3660046114a9565b610a70565b6101c16103af3660046114a9565b610b09565b60ca54610232906001600160a01b031681565b6102a46103d536600461141f565b610b16565b61024e6103e836600461143a565b6001600160a01b03918216600090815260986020908152604080832093909416825291909152205490565b6102a461042136600461141f565b610b9a565b60006301ffc9a760e01b6001600160e01b03198316148061045757506001600160e01b03198216630704183b60e11b145b8061047257506001600160e01b0319821663359a89ad60e01b145b92915050565b6000610485338484610c35565b50600192915050565b600061049b848484610d59565b6001600160a01b0384166000908152609860209081526040808320338452909152902054828110156105255760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6105328533858403610c35565b506001949350505050565b3360008181526098602090815260408083206001600160a01b03871684529091528120549091610485918590610574908690611625565b610c35565b60c9546001600160a01b031633148061059c575060ca546001600160a01b031633145b6105b85760405162461bcd60e51b815260040161051c906115b9565b6105c28282610f28565b5050565b600054610100900460ff16806105df575060005460ff16155b6105fb5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561061d576000805461ffff19166101011790555b610625611007565b6106666040518060600160405280602581526020016116a66025913960405180604001604052806007815260200166614d415449436360c81b815250611082565b60c980546001600160a01b038086166001600160a01b03199283161790925560ca8054928516929091168217905560408051633541867360e21b815290516000929163d50619cc916004808301926020929190829003018186803b1580156106cd57600080fd5b505afa1580156106e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070591906114fd565b60ca5490915061071e906001600160a01b031682610f28565b508015610731576000805461ff00191690555b505050565b60c9546001600160a01b0316331480610759575060ca546001600160a01b031633145b6107755760405162461bcd60e51b815260040161051c906115b9565b60ca546105c29083906001600160a01b031683610d59565b6040516370a0823160e01b81526001600160a01b0382166004820152600090819030906370a082319060240160206040518083038186803b1580156107d157600080fd5b505afa1580156107e5573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080991906114fd565b60ca546040516353735f3760e01b8152600481018390529192506001600160a01b0316906353735f379060240160206040518083038186803b15801561084e57600080fd5b505afa158015610862573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088691906114fd565b9392505050565b6033546001600160a01b031633146108b75760405162461bcd60e51b815260040161051c906115f0565b60ca80546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f818ee857cc8ed5f39a8e7364bcde88550cef56298e95cd4259dd4eefc55dff5691015b60405180910390a15050565b60c9546001600160a01b031633148061093c575060ca546001600160a01b031633145b6109585760405162461bcd60e51b815260040161051c906115b9565b60ca546105c2906001600160a01b03168383610d59565b6033546001600160a01b031633146109995760405162461bcd60e51b815260040161051c906115f0565b6109a36000611100565b565b60ca54604080516371ca337d60e01b815290516000926001600160a01b0316916371ca337d916004808301926020929190829003018186803b1580156109ea57600080fd5b505afa1580156109fe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2291906114fd565b905090565b60c9546001600160a01b0316331480610a4a575060ca546001600160a01b031633145b610a665760405162461bcd60e51b815260040161051c906115b9565b6105c28282611152565b3360009081526098602090815260408083206001600160a01b038616845290915281205482811015610af25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161051c565b610aff3385858403610c35565b5060019392505050565b6000610485338484610d59565b6033546001600160a01b03163314610b405760405162461bcd60e51b815260040161051c906115f0565b60c980546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fa0e8e976fdd0e98162e455be8dce022221ced6cb25fb567069b040948d668181910161090d565b6033546001600160a01b03163314610bc45760405162461bcd60e51b815260040161051c906115f0565b6001600160a01b038116610c295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161051c565b610c3281611100565b50565b6001600160a01b038316610c975760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161051c565b6001600160a01b038216610cf85760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161051c565b6001600160a01b0383811660008181526098602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316610dbd5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161051c565b6001600160a01b038216610e1f5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161051c565b6001600160a01b03831660009081526097602052604090205481811015610e975760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161051c565b6001600160a01b03808516600090815260976020526040808220858503905591851681529081208054849290610ece908490611625565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610f1a91815260200190565b60405180910390a350505050565b6001600160a01b038216610f7e5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161051c565b8060996000828254610f909190611625565b90915550506001600160a01b03821660009081526097602052604081208054839290610fbd908490611625565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600054610100900460ff1680611020575060005460ff16155b61103c5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561105e576000805461ffff19166101011790555b6110666112a0565b61106e61130a565b8015610c32576000805461ff001916905550565b600054610100900460ff168061109b575060005460ff16155b6110b75760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff161580156110d9576000805461ffff19166101011790555b82516110ec90609a90602086019061136a565b50815161071e90609b90602085019061136a565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166111b25760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161051c565b6001600160a01b038216600090815260976020526040902054818110156112265760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161051c565b6001600160a01b038316600090815260976020526040812083830390556099805484929061125590849061163d565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b600054610100900460ff16806112b9575060005460ff16155b6112d55760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff1615801561106e576000805461ffff19166101011790558015610c32576000805461ff001916905550565b600054610100900460ff1680611323575060005460ff16155b61133f5760405162461bcd60e51b815260040161051c9061156b565b600054610100900460ff16158015611361576000805461ffff19166101011790555b61106e33611100565b82805461137690611654565b90600052602060002090601f01602090048101928261139857600085556113de565b82601f106113b157805160ff19168380011785556113de565b828001600101855582156113de579182015b828111156113de5782518255916020019190600101906113c3565b506113ea9291506113ee565b5090565b5b808211156113ea57600081556001016113ef565b80356001600160a01b038116811461141a57600080fd5b919050565b60006020828403121561143157600080fd5b61088682611403565b6000806040838503121561144d57600080fd5b61145683611403565b915061146460208401611403565b90509250929050565b60008060006060848603121561148257600080fd5b61148b84611403565b925061149960208501611403565b9150604084013590509250925092565b600080604083850312156114bc57600080fd5b6114c583611403565b946020939093013593505050565b6000602082840312156114e557600080fd5b81356001600160e01b03198116811461088657600080fd5b60006020828403121561150f57600080fd5b5051919050565b600060208083528351808285015260005b8181101561154357858101830151858201604001528201611527565b81811115611555576000604083870101525b50601f01601f1916929092016040019392505050565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b60208082526017908201527f6f6e6c794d696e7465723a206e6f7420616c6c6f776564000000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600082198211156116385761163861168f565b500190565b60008282101561164f5761164f61168f565b500390565b600181811c9082168061166857607f821691505b6020821081141561168957634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fdfe416e6b72204d41544943205265776172642042656172696e67204365727469666963617465a2646970667358221220869218d7386c50982d67aae4a8ff750d6b588fc76d9a8400fb21b2c197677b8664736f6c63430008060033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 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.