ERC-20
Stablecoin
Overview
Max Total Supply
5,991,956.271115883925102812 eUSD
Holders
701 (0.00%)
Market
Price
$0.98 @ 0.000295 ETH (-0.08%)
Onchain Market Cap
$5,850,150.63
Circulating Supply Market Cap
$5,850,152.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0 eUSDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
EUSD
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/Context.sol"; import "../interfaces/Iconfigurator.sol"; /** * @title Interest-bearing ERC20-like token for Lybra protocol. * * eUSD balances are dynamic and represent the holder's share in the total amount * of Ether controlled by the protocol. Account shares aren't normalized, so the * contract also stores the sum of all shares to calculate each account's token balance * which equals to: * * shares[account] * totalSupply / _totalShares * * For example, assume that we have: * * _getTotalMintedEUSD() -> 1000 eUSD * sharesOf(user1) -> 100 * sharesOf(user2) -> 400 * * Therefore: * * balanceOf(user1) -> 200 tokens which corresponds 200 eUSD * balanceOf(user2) -> 800 tokens which corresponds 800 eUSD * * Since balances of all token holders change when the amount of total shares * changes, this token cannot fully implement ERC20 standard: it only emits `Transfer` * events upon explicit transfer between holders. In contrast, when total amount of * pooled Ether increases, no `Transfer` events are generated: doing so would require * emitting an event for each token holder and thus running an unbounded loop. */ contract EUSD is IERC20, Context { Iconfigurator public immutable configurator; uint256 private _totalShares; uint256 private _totalSupply; /** * @dev eUSD balances are dynamic and are calculated based on the accounts' shares * and the total supply by the protocol. Account shares aren't * normalized, so the contract also stores the sum of all shares to calculate * each account's token balance which equals to: * * shares[account] * _getTotalMintedEUSD() / _getTotalShares() */ mapping(address => uint256) private shares; /** * @dev Allowances are nominated in tokens, not token shares. */ mapping(address => mapping(address => uint256)) private allowances; /** * @notice An executed shares transfer from `sender` to `recipient`. * * @dev emitted in pair with an ERC20-defined `Transfer` event. */ event TransferShares(address indexed from, address indexed to, uint256 sharesValue); /** * @notice An executed `burnShares` request * * @dev Reports simultaneously burnt shares amount * and corresponding eUSD amount. * The eUSD amount is calculated twice: before and after the burning incurred rebase. * * @param account holder of the burnt shares * @param preRebaseTokenAmount amount of eUSD the burnt shares corresponded to before the burn * @param postRebaseTokenAmount amount of eUSD the burnt shares corresponded to after the burn * @param sharesAmount amount of burnt shares */ event SharesBurnt(address indexed account, uint256 preRebaseTokenAmount, uint256 postRebaseTokenAmount, uint256 sharesAmount); modifier onlyMintVault() { require(configurator.mintVault(msg.sender), "RCP"); _; } modifier mintEnabled() { require(!configurator.vaultMintPaused(msg.sender), "MPP"); _; } modifier burnEnabled() { require(!configurator.vaultBurnPaused(msg.sender), "BPP"); _; } constructor(address _config) { configurator = Iconfigurator(_config); } /** * @return the name of the token. */ function name() public pure returns (string memory) { return "eUSD"; } /** * @return the symbol of the token, usually a shorter version of the * name. */ function symbol() public pure returns (string memory) { return "eUSD"; } /** * @return the number of decimals for getting user representation of a token amount. */ function decimals() public pure returns (uint8) { return 18; } /** * @return the amount of eUSD in existence. * * @dev Always equals to `_getTotalMintedEUSD()` since token amount * is pegged to the total amount of eUSD controlled by the protocol. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @return the amount of tokens owned by the `_account`. * * @dev Balances are dynamic and equal the `_account`'s share in the amount of the * total Ether controlled by the protocol. See `sharesOf`. */ function balanceOf(address _account) public view returns (uint256) { return getMintedEUSDByShares(_sharesOf(_account)); } /** * @notice Moves `_amount` tokens from the caller's account to the `_recipient` account. * * @return a boolean value indicating whether the operation succeeded. * Emits a `Transfer` event. * Emits a `TransferShares` event. * * Requirements: * * - `_recipient` cannot be the zero address. * - the caller must have a balance of at least `_amount`. * * @dev The `_amount` argument is the amount of tokens, not shares. */ function transfer(address _recipient, uint256 _amount) public returns (bool) { address owner = _msgSender(); _transfer(owner, _recipient, _amount); return true; } /** * @return the remaining number of tokens that `_spender` is allowed to spend * on behalf of `_owner` through `transferFrom`. This is zero by default. * * @dev This value changes when `approve` or `transferFrom` is called. */ function allowance(address _owner, address _spender) public view returns (uint256) { return allowances[_owner][_spender]; } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @notice Sets `_amount` as the allowance of `_spender` over the caller's tokens. * * @return a boolean value indicating whether the operation succeeded. * Emits an `Approval` event. * * Requirements: * * - `_spender` cannot be the zero address. * * @dev The `_amount` argument is the amount of tokens, not shares. */ function approve(address _spender, uint256 _amount) public returns (bool) { address owner = _msgSender(); _approve(owner, _spender, _amount); return true; } /** * @notice Moves `_amount` tokens from `_sender` to `_recipient` using the * allowance mechanism. `_amount` is then deducted from the caller's * allowance. * * @return a boolean value indicating whether the operation succeeded. * * Emits a `Transfer` event. * Emits a `TransferShares` event. * Emits an `Approval` event indicating the updated allowance. * * Requirements: * * - `_sender` and `_recipient` cannot be the zero addresses. * - `_sender` must have a balance of at least `_amount`. * - the caller must have allowance for `_sender`'s tokens of at least `_amount`. * * @dev The `_amount` argument is the amount of tokens, not shares. */ function transferFrom(address from, address to, uint256 amount) public returns (bool) { address spender = _msgSender(); if (!configurator.mintVault(spender)) { _spendAllowance(from, spender, amount); } _transfer(from, to, amount); return true; } /** * @notice Atomically increases the allowance granted to `_spender` by the caller by `_addedValue`. * * This is an alternative to `approve` that can be used as a mitigation for * Emits an `Approval` event indicating the updated allowance. * * Requirements: * * - `_spender` cannot be the the zero address. */ function increaseAllowance(address _spender, uint256 _addedValue) public returns (bool) { address owner = _msgSender(); _approve(owner, _spender, allowances[owner][_spender] + _addedValue); return true; } /** * @notice Atomically decreases the allowance granted to `_spender` by the caller by `_subtractedValue`. * * This is an alternative to `approve` that can be used as a mitigation for * 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) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @return the total amount of shares in existence. * * @dev The sum of all accounts' shares can be an arbitrary number, therefore * it is necessary to store it in order to calculate each account's relative share. */ function getTotalShares() public view returns (uint256) { return _totalShares; } /** * @return the amount of shares owned by `_account`. */ function sharesOf(address _account) public view returns (uint256) { return _sharesOf(_account); } /** * @return the amount of shares that corresponds to `_EUSDAmount` protocol-supplied eUSD. */ function getSharesByMintedEUSD(uint256 _EUSDAmount) public view returns (uint256) { uint256 totalMintedEUSD = _totalSupply; if (totalMintedEUSD == 0) { return 0; } return _EUSDAmount *_totalShares / totalMintedEUSD; } /** * @return the amount of eUSD that corresponds to `_sharesAmount` token shares. */ function getMintedEUSDByShares(uint256 _sharesAmount) public view returns (uint256) { if (_totalShares == 0) { return 0; } return _sharesAmount * _totalSupply / _totalShares; } /** * @notice Moves `_sharesAmount` token shares from the caller's account to the `_recipient` account. * * @return amount of transferred tokens. * Emits a `TransferShares` event. * Emits a `Transfer` event. * * Requirements: * * - `_recipient` cannot be the zero address. * - the caller must have at least `_sharesAmount` shares. * * @dev The `_sharesAmount` argument is the amount of shares, not tokens. */ function transferShares(address _recipient, uint256 _sharesAmount) public returns (uint256) { address owner = _msgSender(); _transferShares(owner, _recipient, _sharesAmount); emit TransferShares(owner, _recipient, _sharesAmount); uint256 tokensAmount = getMintedEUSDByShares(_sharesAmount); emit Transfer(owner, _recipient, tokensAmount); return tokensAmount; } /** * @notice Moves `_amount` tokens from `_sender` to `_recipient`. * Emits a `Transfer` event. * Emits a `TransferShares` event. */ function _transfer(address _sender, address _recipient, uint256 _amount) internal { uint256 _sharesToTransfer = getSharesByMintedEUSD(_amount); _transferShares(_sender, _recipient, _sharesToTransfer); emit Transfer(_sender, _recipient, _amount); emit TransferShares(_sender, _recipient, _sharesToTransfer); } /** * @notice Sets `_amount` as the allowance of `_spender` over the `_owner` s tokens. * * 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 { require(_owner != address(0), "APPROVE_FROM_ZERO_ADDRESS"); require(_spender != address(0), "APPROVE_TO_ZERO_ADDRESS"); allowances[_owner][_spender] = _amount; emit Approval(_owner, _spender, _amount); } /** * @return the amount of shares owned by `_account`. */ function _sharesOf(address _account) internal view returns (uint256) { return shares[_account]; } /** * @notice Moves `_sharesAmount` shares from `_sender` to `_recipient`. * * Requirements: * * - `_sender` cannot be the zero address. * - `_recipient` cannot be the zero address. * - `_sender` must hold at least `_sharesAmount` shares. */ function _transferShares(address _sender, address _recipient, uint256 _sharesAmount) internal { require(_sender != address(0), "TRANSFER_FROM_THE_ZERO_ADDRESS"); require(_recipient != address(0), "TRANSFER_TO_THE_ZERO_ADDRESS"); uint256 currentSenderShares = shares[_sender]; require(_sharesAmount <= currentSenderShares, "TRANSFER_AMOUNT_EXCEEDS_BALANCE"); shares[_sender] = currentSenderShares - _sharesAmount; shares[_recipient] = shares[_recipient] + _sharesAmount; } /** * @notice Creates `sharesAmount` shares and assigns them to `_recipient`, increasing the total amount of shares. * @dev This operation also increases the total supply of tokens. * * Requirements: * * - `_recipient` cannot be the zero address. * - the contract must not be paused. */ function mint(address _recipient, uint256 _mintAmount) external onlyMintVault mintEnabled returns (uint256 newTotalShares) { require(_recipient != address(0), "MINT_TO_THE_ZERO_ADDRESS"); require(_mintAmount != 0, "ZA"); uint256 sharesAmount = getSharesByMintedEUSD(_mintAmount); if (sharesAmount == 0) { require(_totalSupply == 0, "ZA"); //eUSD totalSupply is 0: assume that shares correspond to eUSD 1-to-1 sharesAmount = _mintAmount; } newTotalShares = _totalShares + sharesAmount; _totalShares = newTotalShares; shares[_recipient] = shares[_recipient] + sharesAmount; _totalSupply += _mintAmount; emit Transfer(address(0), _recipient, _mintAmount); } /** * @notice Destroys `sharesAmount` shares from `_account`'s holdings, decreasing the total amount of shares. * @dev This operation also decrease the total supply of tokens. * * Requirements: * * - `_account` cannot be the zero address. * - `_account` must hold at least `sharesAmount` shares. * - the contract must not be paused. */ function burn(address _account, uint256 _burnAmount) external onlyMintVault burnEnabled returns (uint256 newTotalShares) { require(_account != address(0), "BURN_FROM_THE_ZERO_ADDRESS"); uint256 sharesAmount = getSharesByMintedEUSD(_burnAmount); require(sharesAmount != 0, "ZA"); newTotalShares = _onlyBurnShares(_account, sharesAmount); _totalSupply -= _burnAmount; emit Transfer(_account, address(0), _burnAmount); } /** * @notice Destroys `sharesAmount` shares from `_account`'s holdings, decreasing the total amount of shares. * @dev This doesn't decrease the token total supply. * * Requirements: * * - `_account` cannot be the zero address. * - `_account` must hold at least `sharesAmount` shares. * - the contract must not be paused. */ function burnShares(address _account, uint256 _sharesAmount) external onlyMintVault burnEnabled returns (uint256 newTotalShares) { require(_account != address(0), "BURN_FROM_THE_ZERO_ADDRESS"); require(_sharesAmount != 0, "ZA"); newTotalShares = _onlyBurnShares(_account, _sharesAmount); } function _onlyBurnShares(address _account, uint256 _sharesAmount) private returns (uint256 newTotalShares) { uint256 accountShares = shares[_account]; require(_sharesAmount <= accountShares, "BURN_AMOUNT_EXCEEDS_BALANCE"); uint256 preRebaseTokenAmount = getMintedEUSDByShares(_sharesAmount); newTotalShares = _totalShares - _sharesAmount; _totalShares = newTotalShares; shares[_account] = accountShares - _sharesAmount; uint256 postRebaseTokenAmount = getMintedEUSDByShares(_sharesAmount); emit SharesBurnt(_account, preRebaseTokenAmount, postRebaseTokenAmount, _sharesAmount); // Notice: we're not emitting a Transfer event to the zero address here since shares burn // works by redistributing the amount of tokens corresponding to the burned shares between // all other token holders. The total supply of the token doesn't change as the result. // This is equivalent to performing a send from `address` to each other token holder address, // but we cannot reflect this as it would require sending an unbounded number of events. // We're emitting `SharesBurnt` event to provide an explicit rebase log record nonetheless. } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.17; interface Iconfigurator { function mintVault(address pool) external view returns(bool); function mintVaultMaxSupply(address pool) external view returns(uint256); function vaultMintPaused(address pool) external view returns(bool); function vaultBurnPaused(address pool) external view returns(bool); function tokenMiner(address pool) external view returns(bool); function getSafeCollateralRatio(address pool) external view returns(uint256); function getBadCollateralRatio(address pool) external view returns(uint256); function getVaultWeight(address pool) external view returns (uint256); function vaultMintFeeApy(address pool) external view returns(uint256); function vaultKeeperRatio(address pool) external view returns(uint256); function redemptionFee() external view returns(uint256); function getEUSDAddress() external view returns(address); function peUSD() external view returns(address); function eUSDMiningIncentives() external view returns(address); function getProtocolRewardsPool() external view returns(address); function flashloanFee() external view returns(uint256); function getEUSDMaxLocked() external view returns (uint256); function stableToken() external view returns (address); function isRedemptionProvider(address user) external view returns (bool); function becomeRedemptionProvider(bool _bool) external; function refreshMintReward(address user) external; function distributeRewards() external; function hasRole(bytes32 role, address account) external view returns (bool); }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_config","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"preRebaseTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"postRebaseTokenAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sharesAmount","type":"uint256"}],"name":"SharesBurnt","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"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"sharesValue","type":"uint256"}],"name":"TransferShares","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"},{"internalType":"uint256","name":"_burnAmount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"uint256","name":"newTotalShares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_sharesAmount","type":"uint256"}],"name":"burnShares","outputs":[{"internalType":"uint256","name":"newTotalShares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configurator","outputs":[{"internalType":"contract Iconfigurator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"uint256","name":"_sharesAmount","type":"uint256"}],"name":"getMintedEUSDByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_EUSDAmount","type":"uint256"}],"name":"getSharesByMintedEUSD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"_recipient","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"newTotalShares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"sharesOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_sharesAmount","type":"uint256"}],"name":"transferShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a060405234801561001057600080fd5b5060405161148e38038061148e83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b6080516113d26100bc600039600081816101ad015281816103220152818161040b015281816104b8015281816107920152818161083601528181610add0152610b8101526113d26000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c806395d89b41116100ad578063baab9dab11610071578063baab9dab1461028e578063d5002f2e146102a1578063dd62ed3e146102a9578063ee7a7c04146102bc578063f5eb42dc146102cf57600080fd5b806395d89b41146101315780639dc29fac14610242578063a457c2d714610255578063a9059cbb14610268578063b85364e51461027b57600080fd5b8063313ce567116100f4578063313ce567146101e757806339509351146101f657806340c10f191461020957806370a082311461021c5780638fcb4e5b1461022f57600080fd5b806306fdde0314610131578063095ea7b31461016057806318160ddd1461018357806323b872dd146101955780632b507df8146101a8575b600080fd5b6040805180820182526004815263195554d160e21b602082015290516101579190611175565b60405180910390f35b61017361016e3660046111df565b6102e2565b6040519015158152602001610157565b6001545b604051908152602001610157565b6101736101a3366004611209565b6102fc565b6101cf7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b039091168152602001610157565b60405160128152602001610157565b6101736102043660046111df565b6103b4565b6101876102173660046111df565b6103f3565b61018761022a366004611245565b6106ad565b61018761023d3660046111df565b6106cf565b6101876102503660046111df565b61077a565b6101736102633660046111df565b6109ae565b6101736102763660046111df565b610a29565b610187610289366004611260565b610a37565b61018761029c366004611260565b610a6d565b600054610187565b6101876102b7366004611279565b610a9a565b6101876102ca3660046111df565b610ac5565b6101876102dd366004611245565b610ca7565b6000336102f0818585610cc5565b60019150505b92915050565b6000803360405163f2afd39960e01b81526001600160a01b0380831660048301529192507f00000000000000000000000000000000000000000000000000000000000000009091169063f2afd39990602401602060405180830381865afa15801561036b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038f91906112ac565b61039e5761039e858285610dd2565b6103a9858585610e4c565b506001949350505050565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091906102f090829086906103ee9087906112e4565b610cc5565b60405163f2afd39960e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f2afd39990602401602060405180830381865afa15801561045a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047e91906112ac565b6104a35760405162461bcd60e51b815260040161049a906112f7565b60405180910390fd5b604051633009ae0f60e21b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c026b83c90602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b91906112ac565b1561055e5760405162461bcd60e51b815260206004820152600360248201526204d50560ec1b604482015260640161049a565b6001600160a01b0383166105b45760405162461bcd60e51b815260206004820152601860248201527f4d494e545f544f5f5448455f5a45524f5f414444524553530000000000000000604482015260640161049a565b816000036105d45760405162461bcd60e51b815260040161049a90611314565b60006105df83610a37565b90508060000361060c57600154156106095760405162461bcd60e51b815260040161049a90611314565b50815b8060005461061a91906112e4565b60008181556001600160a01b0386168152600260205260409020549092506106439082906112e4565b6001600160a01b038516600090815260026020526040812091909155600180548592906106719084906112e4565b90915550506040518381526001600160a01b0385169060009060008051602061137d833981519152906020015b60405180910390a35092915050565b6001600160a01b0381166000908152600260205260408120546102f690610a6d565b6000336106dd818585610ef2565b836001600160a01b0316816001600160a01b03167f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb8560405161072291815260200190565b60405180910390a3600061073584610a6d565b9050846001600160a01b0316826001600160a01b031660008051602061137d8339815191528360405161076a91815260200190565b60405180910390a3949350505050565b60405163f2afd39960e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f2afd39990602401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080591906112ac565b6108215760405162461bcd60e51b815260040161049a906112f7565b604051630222130f60e31b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631110987890602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a991906112ac565b156108dc5760405162461bcd60e51b815260206004820152600360248201526204250560ec1b604482015260640161049a565b6001600160a01b0383166109325760405162461bcd60e51b815260206004820152601a60248201527f4255524e5f46524f4d5f5448455f5a45524f5f41444452455353000000000000604482015260640161049a565b600061093d83610a37565b90508060000361095f5760405162461bcd60e51b815260040161049a90611314565b6109698482611063565b9150826001600082825461097d9190611330565b90915550506040518381526000906001600160a01b0386169060008051602061137d8339815191529060200161069e565b600033816109bc8286610a9a565b905083811015610a1c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161049a565b6103a98286868403610cc5565b6000336102f0818585610e4c565b600154600090808203610a4d5750600092915050565b8060005484610a5c9190611343565b610a66919061135a565b9392505050565b60008054600003610a8057506000919050565b600054600154610a909084611343565b6102f6919061135a565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b60405163f2afd39960e01b81523360048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063f2afd39990602401602060405180830381865afa158015610b2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5091906112ac565b610b6c5760405162461bcd60e51b815260040161049a906112f7565b604051630222130f60e31b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690631110987890602401602060405180830381865afa158015610bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf491906112ac565b15610c275760405162461bcd60e51b815260206004820152600360248201526204250560ec1b604482015260640161049a565b6001600160a01b038316610c7d5760405162461bcd60e51b815260206004820152601a60248201527f4255524e5f46524f4d5f5448455f5a45524f5f41444452455353000000000000604482015260640161049a565b81600003610c9d5760405162461bcd60e51b815260040161049a90611314565b610a668383611063565b6001600160a01b0381166000908152600260205260408120546102f6565b6001600160a01b038316610d1b5760405162461bcd60e51b815260206004820152601960248201527f415050524f56455f46524f4d5f5a45524f5f4144445245535300000000000000604482015260640161049a565b6001600160a01b038216610d715760405162461bcd60e51b815260206004820152601760248201527f415050524f56455f544f5f5a45524f5f41444452455353000000000000000000604482015260640161049a565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610dde8484610a9a565b90506000198114610e465781811015610e395760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161049a565b610e468484848403610cc5565b50505050565b6000610e5782610a37565b9050610e64848483610ef2565b826001600160a01b0316846001600160a01b031660008051602061137d83398151915284604051610e9791815260200190565b60405180910390a3826001600160a01b0316846001600160a01b03167f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb83604051610ee491815260200190565b60405180910390a350505050565b6001600160a01b038316610f485760405162461bcd60e51b815260206004820152601e60248201527f5452414e534645525f46524f4d5f5448455f5a45524f5f414444524553530000604482015260640161049a565b6001600160a01b038216610f9e5760405162461bcd60e51b815260206004820152601c60248201527f5452414e534645525f544f5f5448455f5a45524f5f4144445245535300000000604482015260640161049a565b6001600160a01b038316600090815260026020526040902054808211156110075760405162461bcd60e51b815260206004820152601f60248201527f5452414e534645525f414d4f554e545f455843454544535f42414c414e434500604482015260640161049a565b6110118282611330565b6001600160a01b0380861660009081526002602052604080822093909355908516815220546110419083906112e4565b6001600160a01b03909316600090815260026020526040902092909255505050565b6001600160a01b038216600090815260026020526040812054808311156110cc5760405162461bcd60e51b815260206004820152601b60248201527f4255524e5f414d4f554e545f455843454544535f42414c414e43450000000000604482015260640161049a565b60006110d784610a6d565b9050836000546110e79190611330565b600081905592506110f88483611330565b6001600160a01b03861660009081526002602052604081209190915561111d85610a6d565b60408051848152602081018390529081018790529091506001600160a01b038716907f8b2a1e1ad5e0578c3dd82494156e985dade827a87c573b5c1c7716a32162ad649060600160405180910390a250505092915050565b600060208083528351808285015260005b818110156111a257858101830151858201604001528201611186565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146111da57600080fd5b919050565b600080604083850312156111f257600080fd5b6111fb836111c3565b946020939093013593505050565b60008060006060848603121561121e57600080fd5b611227846111c3565b9250611235602085016111c3565b9150604084013590509250925092565b60006020828403121561125757600080fd5b610a66826111c3565b60006020828403121561127257600080fd5b5035919050565b6000806040838503121561128c57600080fd5b611295836111c3565b91506112a3602084016111c3565b90509250929050565b6000602082840312156112be57600080fd5b81518015158114610a6657600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156102f6576102f66112ce565b60208082526003908201526205243560ec1b604082015260600190565b6020808252600290820152615a4160f01b604082015260600190565b818103818111156102f6576102f66112ce565b80820281158282048414176102f6576102f66112ce565b60008261137757634e487b7160e01b600052601260045260246000fd5b50049056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fc6d82b81d4839ce12dcde83da3973196e0dfbe573f3ab09916fee3667f9368964736f6c63430008110033000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c806395d89b41116100ad578063baab9dab11610071578063baab9dab1461028e578063d5002f2e146102a1578063dd62ed3e146102a9578063ee7a7c04146102bc578063f5eb42dc146102cf57600080fd5b806395d89b41146101315780639dc29fac14610242578063a457c2d714610255578063a9059cbb14610268578063b85364e51461027b57600080fd5b8063313ce567116100f4578063313ce567146101e757806339509351146101f657806340c10f191461020957806370a082311461021c5780638fcb4e5b1461022f57600080fd5b806306fdde0314610131578063095ea7b31461016057806318160ddd1461018357806323b872dd146101955780632b507df8146101a8575b600080fd5b6040805180820182526004815263195554d160e21b602082015290516101579190611175565b60405180910390f35b61017361016e3660046111df565b6102e2565b6040519015158152602001610157565b6001545b604051908152602001610157565b6101736101a3366004611209565b6102fc565b6101cf7f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff81565b6040516001600160a01b039091168152602001610157565b60405160128152602001610157565b6101736102043660046111df565b6103b4565b6101876102173660046111df565b6103f3565b61018761022a366004611245565b6106ad565b61018761023d3660046111df565b6106cf565b6101876102503660046111df565b61077a565b6101736102633660046111df565b6109ae565b6101736102763660046111df565b610a29565b610187610289366004611260565b610a37565b61018761029c366004611260565b610a6d565b600054610187565b6101876102b7366004611279565b610a9a565b6101876102ca3660046111df565b610ac5565b6101876102dd366004611245565b610ca7565b6000336102f0818585610cc5565b60019150505b92915050565b6000803360405163f2afd39960e01b81526001600160a01b0380831660048301529192507f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff9091169063f2afd39990602401602060405180830381865afa15801561036b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061038f91906112ac565b61039e5761039e858285610dd2565b6103a9858585610e4c565b506001949350505050565b3360008181526003602090815260408083206001600160a01b03871684529091528120549091906102f090829086906103ee9087906112e4565b610cc5565b60405163f2afd39960e01b81523360048201526000907f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b03169063f2afd39990602401602060405180830381865afa15801561045a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061047e91906112ac565b6104a35760405162461bcd60e51b815260040161049a906112f7565b60405180910390fd5b604051633009ae0f60e21b81523360048201527f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b03169063c026b83c90602401602060405180830381865afa158015610507573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061052b91906112ac565b1561055e5760405162461bcd60e51b815260206004820152600360248201526204d50560ec1b604482015260640161049a565b6001600160a01b0383166105b45760405162461bcd60e51b815260206004820152601860248201527f4d494e545f544f5f5448455f5a45524f5f414444524553530000000000000000604482015260640161049a565b816000036105d45760405162461bcd60e51b815260040161049a90611314565b60006105df83610a37565b90508060000361060c57600154156106095760405162461bcd60e51b815260040161049a90611314565b50815b8060005461061a91906112e4565b60008181556001600160a01b0386168152600260205260409020549092506106439082906112e4565b6001600160a01b038516600090815260026020526040812091909155600180548592906106719084906112e4565b90915550506040518381526001600160a01b0385169060009060008051602061137d833981519152906020015b60405180910390a35092915050565b6001600160a01b0381166000908152600260205260408120546102f690610a6d565b6000336106dd818585610ef2565b836001600160a01b0316816001600160a01b03167f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb8560405161072291815260200190565b60405180910390a3600061073584610a6d565b9050846001600160a01b0316826001600160a01b031660008051602061137d8339815191528360405161076a91815260200190565b60405180910390a3949350505050565b60405163f2afd39960e01b81523360048201526000907f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b03169063f2afd39990602401602060405180830381865afa1580156107e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080591906112ac565b6108215760405162461bcd60e51b815260040161049a906112f7565b604051630222130f60e31b81523360048201527f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b031690631110987890602401602060405180830381865afa158015610885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a991906112ac565b156108dc5760405162461bcd60e51b815260206004820152600360248201526204250560ec1b604482015260640161049a565b6001600160a01b0383166109325760405162461bcd60e51b815260206004820152601a60248201527f4255524e5f46524f4d5f5448455f5a45524f5f41444452455353000000000000604482015260640161049a565b600061093d83610a37565b90508060000361095f5760405162461bcd60e51b815260040161049a90611314565b6109698482611063565b9150826001600082825461097d9190611330565b90915550506040518381526000906001600160a01b0386169060008051602061137d8339815191529060200161069e565b600033816109bc8286610a9a565b905083811015610a1c5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161049a565b6103a98286868403610cc5565b6000336102f0818585610e4c565b600154600090808203610a4d5750600092915050565b8060005484610a5c9190611343565b610a66919061135a565b9392505050565b60008054600003610a8057506000919050565b600054600154610a909084611343565b6102f6919061135a565b6001600160a01b03918216600090815260036020908152604080832093909416825291909152205490565b60405163f2afd39960e01b81523360048201526000907f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b03169063f2afd39990602401602060405180830381865afa158015610b2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5091906112ac565b610b6c5760405162461bcd60e51b815260040161049a906112f7565b604051630222130f60e31b81523360048201527f000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff6001600160a01b031690631110987890602401602060405180830381865afa158015610bd0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf491906112ac565b15610c275760405162461bcd60e51b815260206004820152600360248201526204250560ec1b604482015260640161049a565b6001600160a01b038316610c7d5760405162461bcd60e51b815260206004820152601a60248201527f4255524e5f46524f4d5f5448455f5a45524f5f41444452455353000000000000604482015260640161049a565b81600003610c9d5760405162461bcd60e51b815260040161049a90611314565b610a668383611063565b6001600160a01b0381166000908152600260205260408120546102f6565b6001600160a01b038316610d1b5760405162461bcd60e51b815260206004820152601960248201527f415050524f56455f46524f4d5f5a45524f5f4144445245535300000000000000604482015260640161049a565b6001600160a01b038216610d715760405162461bcd60e51b815260206004820152601760248201527f415050524f56455f544f5f5a45524f5f41444452455353000000000000000000604482015260640161049a565b6001600160a01b0383811660008181526003602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610dde8484610a9a565b90506000198114610e465781811015610e395760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161049a565b610e468484848403610cc5565b50505050565b6000610e5782610a37565b9050610e64848483610ef2565b826001600160a01b0316846001600160a01b031660008051602061137d83398151915284604051610e9791815260200190565b60405180910390a3826001600160a01b0316846001600160a01b03167f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb83604051610ee491815260200190565b60405180910390a350505050565b6001600160a01b038316610f485760405162461bcd60e51b815260206004820152601e60248201527f5452414e534645525f46524f4d5f5448455f5a45524f5f414444524553530000604482015260640161049a565b6001600160a01b038216610f9e5760405162461bcd60e51b815260206004820152601c60248201527f5452414e534645525f544f5f5448455f5a45524f5f4144445245535300000000604482015260640161049a565b6001600160a01b038316600090815260026020526040902054808211156110075760405162461bcd60e51b815260206004820152601f60248201527f5452414e534645525f414d4f554e545f455843454544535f42414c414e434500604482015260640161049a565b6110118282611330565b6001600160a01b0380861660009081526002602052604080822093909355908516815220546110419083906112e4565b6001600160a01b03909316600090815260026020526040902092909255505050565b6001600160a01b038216600090815260026020526040812054808311156110cc5760405162461bcd60e51b815260206004820152601b60248201527f4255524e5f414d4f554e545f455843454544535f42414c414e43450000000000604482015260640161049a565b60006110d784610a6d565b9050836000546110e79190611330565b600081905592506110f88483611330565b6001600160a01b03861660009081526002602052604081209190915561111d85610a6d565b60408051848152602081018390529081018790529091506001600160a01b038716907f8b2a1e1ad5e0578c3dd82494156e985dade827a87c573b5c1c7716a32162ad649060600160405180910390a250505092915050565b600060208083528351808285015260005b818110156111a257858101830151858201604001528201611186565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b03811681146111da57600080fd5b919050565b600080604083850312156111f257600080fd5b6111fb836111c3565b946020939093013593505050565b60008060006060848603121561121e57600080fd5b611227846111c3565b9250611235602085016111c3565b9150604084013590509250925092565b60006020828403121561125757600080fd5b610a66826111c3565b60006020828403121561127257600080fd5b5035919050565b6000806040838503121561128c57600080fd5b611295836111c3565b91506112a3602084016111c3565b90509250929050565b6000602082840312156112be57600080fd5b81518015158114610a6657600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156102f6576102f66112ce565b60208082526003908201526205243560ec1b604082015260600190565b6020808252600290820152615a4160f01b604082015260600190565b818103818111156102f6576102f66112ce565b80820281158282048414176102f6576102f66112ce565b60008261137757634e487b7160e01b600052601260045260246000fd5b50049056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220fc6d82b81d4839ce12dcde83da3973196e0dfbe573f3ab09916fee3667f9368964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff
-----Decoded View---------------
Arg [0] : _config (address): 0xC8353594Eeedc5ce5a4544D3D9907b694c4690Ff
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c8353594eeedc5ce5a4544d3d9907b694c4690ff
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.