Source Code
Overview
S Balance
More Info
ContractCreator
Latest 15 internal transactions
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20303514 | 7 days ago | 0 S | ||||
20303500 | 7 days ago | 0 S | ||||
20303493 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281760 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S | ||||
20281688 | 7 days ago | 0 S |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x16425b56...8AFd838ef The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Bonds
Compiler Version
v0.8.26+commit.8a97fa7a
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "./interfaces/IToken.sol"; import "./interfaces/ILPManager.sol"; import "./interfaces/IManager.sol"; contract Bonds is ReentrancyGuard { uint256 private totalAvailableBonds; uint256 public epochDuration = 6 hours; uint256 public fullDistributionEpochs = 12; // 3 days uint256 public genesisEpochTime; uint256 private _forTreasury = 40; uint256 private _forLP = 60; struct Bond { address underlying; uint256 bondPrice; uint256 available; uint256 totaltTokenBought; } struct Bonding { uint256 amount; uint256 epoch; } mapping(address => Bonding[]) public bondings; mapping(address => Bond) public bonds; mapping(address => uint256) public totalClaimed; mapping(address => bool) private isBlacklisted; IManager private Manager; IToken private Token; ILPManager private LPManager; address private Treasury; address private LP; address private Staking; bool private isStarted = false; //--------------------------------------------------// constructor(address _manager) { Manager = IManager(_manager); } //--------------------------------------------------// modifier onlyOwner() { require(msg.sender == Manager.owner(), "Not Authorized"); _; } //--------------------------------------------------// function createBond( address underlying, uint256 bondPrice, uint256 available ) external onlyOwner { bonds[underlying] = Bond(underlying, bondPrice, available, 0); totalAvailableBonds += available; } function setBondPrice( address underlying, uint256 _bondPrice ) external onlyOwner { require(checkIfUnderlying(underlying), "Not a valid underlying"); bonds[underlying].bondPrice = _bondPrice; } function setBondAvailable( address underlying, uint256 _available ) external onlyOwner { require(checkIfUnderlying(underlying), "Not a valid underlying"); bonds[underlying].available += _available; totalAvailableBonds += _available; } function setEpochDuration(uint256 _epochDuration) external onlyOwner { epochDuration = _epochDuration; } function setFullDistributionEpochs( uint256 _fullDistributionEpochs ) external onlyOwner { fullDistributionEpochs = _fullDistributionEpochs; } function setProportions(uint256 _tresury, uint256 _lp) external onlyOwner { _forTreasury = _tresury; _forLP = _lp; } function setManager(address _Manager) external onlyOwner { Manager = IManager(_Manager); } function setBlacklisted( address _address, bool _isBlacklisted ) external onlyOwner { isBlacklisted[_address] = _isBlacklisted; } function setAll() external onlyOwner { Token = IToken(_getContract("Token")); LPManager = ILPManager(_getContract("LPManager")); Treasury = _getContract("Treasury"); LP = _getContract("LP"); Staking = _getContract("Staking"); } //--------------------------------------------------// /** * @dev allows users to buy bonds with authorized underlying tokens * @param underlying the addy of the underlying to use to buy bonds * @param amount the amount of underlying to use to buy bonds */ function buyBonds( address underlying, uint256 amount ) external nonReentrant { require(isStarted, "Epoch not started"); require(checkIfUnderlying(underlying), "Not a valid underlying"); address sender = msg.sender; uint256 price = bonds[underlying].bondPrice; uint256 toMint = (amount * 1e18) / price; Bond storage bond = bonds[underlying]; require(bond.available >= toMint, "Not enough bonds available"); if (underlying == address(Token)) { IERC20(underlying).transferFrom(sender, address(Token), amount); } else { uint256 toTreasury = (amount * _forTreasury) / 100; uint256 toLP = (amount * _forLP) / 100; IERC20(underlying).transferFrom(sender, Treasury, toTreasury); IERC20(underlying).transferFrom(sender, LP, toLP); LPManager.addLiquidity(underlying); } bond.totaltTokenBought += toMint; unchecked { bond.available -= toMint; } bondings[sender].push(Bonding(toMint, getEpoch())); } function claimBondedToken() external nonReentrant { address sender = msg.sender; require(!isBlacklisted[sender], "Not Authorized"); uint256 unlocked = unlockedCalculator(sender); require(unlocked > 0, "Not enough unlocked tToken"); totalClaimed[sender] += unlocked; totalAvailableBonds -= unlocked; Token.mint(sender, unlocked); } //--------------------------------------------------// /** * @dev checks if the underlying is authorized * @param _underlying the address of the underlying to check * @return bool if the underlying is authorized */ function checkIfUnderlying(address _underlying) public view returns (bool) { return bonds[_underlying].underlying == _underlying; } function getEpoch() internal view returns (uint256) { return (block.timestamp - genesisEpochTime) / epochDuration; } /** * @dev calculates the amount of unlocked tToken available for conversion to Token for a user * @param account the address of the user to check */ function unlockedCalculator(address account) public view returns (uint256) { uint256 unlocked = 0; uint256 _fullDistributionEpochs = fullDistributionEpochs; uint256 _length = bondings[account].length; for (uint256 i = 0; i < _length; i++) { uint256 epochsPassed = getEpoch() - bondings[account][i].epoch; epochsPassed = epochsPassed > _fullDistributionEpochs ? _fullDistributionEpochs : epochsPassed; unlocked += (bondings[account][i].amount * epochsPassed) / _fullDistributionEpochs; } return unlocked - totalClaimed[account]; } //--------------------------------------------------// function getTotalAvailableBonds() public view returns (uint256) { return totalAvailableBonds; } function getNextEpoch() public view returns (uint256) { return genesisEpochTime + (getEpoch() + 1) * epochDuration; } //--------------------------------------------------// /** * @dev starts the first epoch counter and opens bonds for buying */ function startEpoch() public onlyOwner { require(!isStarted, "Epoch already started"); genesisEpochTime = block.timestamp; isStarted = true; } function distributePresale( address[] memory users, uint256[] memory amounts ) public onlyOwner { require( users.length == amounts.length, "Arrays must be the same length" ); for (uint256 i = 0; i < users.length; i++) { totalAvailableBonds += amounts[i]; bondings[users[i]].push(Bonding(amounts[i], getEpoch())); } } //--------------------------------------------------// function _getContract( string memory contractName ) internal view returns (address) { return Manager.getContract(contractName); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * 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 ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's 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 returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * 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. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` 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. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance < type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ interface IERC20Metadata is IERC20 { /** * @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 // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ 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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant NOT_ENTERED = 1; uint256 private constant ENTERED = 2; uint256 private _status; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); constructor() { _status = NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.24; interface ILPManager { function addLiquidity(address token) external; }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; interface IManager { function getContract(string memory name) external view returns (address); function owner() external view returns (address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IToken { /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); function mint(address to, uint256 value) external; function burnFrom(address from, uint256 value) external; }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
[{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"bondings","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"epoch","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"bonds","outputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"bondPrice","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"},{"internalType":"uint256","name":"totaltTokenBought","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"buyBonds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_underlying","type":"address"}],"name":"checkIfUnderlying","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimBondedToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"bondPrice","type":"uint256"},{"internalType":"uint256","name":"available","type":"uint256"}],"name":"createBond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"distributePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"epochDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fullDistributionEpochs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"genesisEpochTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalAvailableBonds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"},{"internalType":"bool","name":"_isBlacklisted","type":"bool"}],"name":"setBlacklisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"_available","type":"uint256"}],"name":"setBondAvailable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"underlying","type":"address"},{"internalType":"uint256","name":"_bondPrice","type":"uint256"}],"name":"setBondPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_epochDuration","type":"uint256"}],"name":"setEpochDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fullDistributionEpochs","type":"uint256"}],"name":"setFullDistributionEpochs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_Manager","type":"address"}],"name":"setManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tresury","type":"uint256"},{"internalType":"uint256","name":"_lp","type":"uint256"}],"name":"setProportions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"unlockedCalculator","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061018d5760003560e01c8063896ee58a116100e3578063d85d5eeb1161008c578063efe97d0511610066578063efe97d0514610327578063f98a718d1461032f578063fe10d7741461034257600080fd5b8063d85d5eeb146102b5578063e6ca46cc146102c8578063ef5d9ae81461030757600080fd5b8063c24ca5e2116100bd578063c24ca5e214610287578063d01dd6d21461028f578063d0ebdbe7146102a257600080fd5b8063896ee58a14610264578063a2c8b1771461026c578063adad48731461027457600080fd5b8063497af9d0116101455780636b2707dc1161011f5780636b2707dc1461023f57806376f6804d14610252578063894c469b1461025b57600080fd5b8063497af9d0146102105780634ff0876a14610223578063697b00931461022c57600080fd5b80633d68c1ee116101765780633d68c1ee146101d45780633e7d15c0146101e7578063411e4238146101ef57600080fd5b806325accadc1461019257806330024dfe146101bf575b600080fd5b6101a56101a0366004611a95565b6103ab565b604080519283526020830191909152015b60405180910390f35b6101d26101cd366004611ac1565b6103e7565b005b6101d26101e2366004611ac1565b6104b9565b6101d2610586565b6102026101fd366004611ada565b610822565b6040519081526020016101b6565b6101d261021e366004611afe565b61094d565b61020260025481565b6101d261023a366004611a95565b610a20565b6101d261024d366004611a95565b610b71565b61020260035481565b61020260045481565b6101d2610fcb565b6101d2611154565b6101d2610282366004611bf8565b6112aa565b600154610202565b6101d261029d366004611cd1565b6114a6565b6101d26102b0366004611ada565b611599565b6101d26102c3366004611a95565b611683565b6102f76102d6366004611ada565b6001600160a01b039081166000818152600860205260409020549091161490565b60405190151581526020016101b6565b610202610315366004611ada565b60096020526000908152604090205481565b610202611802565b6101d261033d366004611d0a565b611836565b610381610350366004611ada565b60086020526000908152604090208054600182015460028301546003909301546001600160a01b0390921692909184565b604080516001600160a01b03909516855260208501939093529183015260608201526080016101b6565b600760205281600052604060002081815481106103c757600080fd5b600091825260209091206002909102018054600190910154909250905082565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561043a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045e9190611d3f565b6001600160a01b0316336001600160a01b0316146104b45760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064015b60405180910390fd5b600255565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561050c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105309190611d3f565b6001600160a01b0316336001600160a01b0316146105815760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b600355565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fd9190611d3f565b6001600160a01b0316336001600160a01b03161461064e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b61068c6040518060400160405280600581526020017f546f6b656e000000000000000000000000000000000000000000000000000000815250611985565b600c80546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600981527f4c504d616e61676572000000000000000000000000000000000000000000000060208201526106e990611985565b600d80546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600881527f5472656173757279000000000000000000000000000000000000000000000000602082015261074690611985565b600e80546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600281527f4c5000000000000000000000000000000000000000000000000000000000000060208201526107a390611985565b600f80546001600160a01b0319166001600160a01b039290921691909117905560408051808201909152600781527f5374616b696e6700000000000000000000000000000000000000000000000000602082015261080090611985565b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6003546001600160a01b03821660009081526007602052604081205490918291825b81811015610920576001600160a01b038616600090815260076020526040812080548390811061087657610876611d5c565b906000526020600020906002020160010154610890611a16565b61089a9190611d88565b90508381116108a957806108ab565b835b90508381600760008a6001600160a01b03166001600160a01b0316815260200190815260200160002084815481106108e5576108e5611d5c565b9060005260206000209060020201600001546109019190611d9b565b61090b9190611db2565b6109159086611dd4565b945050600101610844565b506001600160a01b0385166000908152600960205260409020546109449084611d88565b95945050505050565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c49190611d3f565b6001600160a01b0316336001600160a01b031614610a155760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b600591909155600655565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a979190611d3f565b6001600160a01b0316336001600160a01b031614610ae85760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b6001600160a01b0380831660008181526008602052604090205490911614610b525760405162461bcd60e51b815260206004820152601660248201527f4e6f7420612076616c696420756e6465726c79696e670000000000000000000060448201526064016104ab565b6001600160a01b03909116600090815260086020526040902060010155565b610b79611a33565b601054600160a01b900460ff16610bd25760405162461bcd60e51b815260206004820152601160248201527f45706f6368206e6f74207374617274656400000000000000000000000000000060448201526064016104ab565b6001600160a01b0380831660008181526008602052604090205490911614610c3c5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420612076616c696420756e6465726c79696e670000000000000000000060448201526064016104ab565b6001600160a01b038216600090815260086020526040812060010154339181610c6d85670de0b6b3a7640000611d9b565b610c779190611db2565b6001600160a01b0386166000908152600860205260409020600281015491925090821115610ce75760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820626f6e647320617661696c61626c6500000000000060448201526064016104ab565b600c546001600160a01b0390811690871603610d8257600c546040516323b872dd60e01b81526001600160a01b038681166004830152918216602482015260448101879052908716906323b872dd906064016020604051808303816000875af1158015610d58573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7c9190611de7565b50610f39565b6000606460055487610d949190611d9b565b610d9e9190611db2565b90506000606460065488610db29190611d9b565b610dbc9190611db2565b600e546040516323b872dd60e01b81526001600160a01b0389811660048301529182166024820152604481018590529192508916906323b872dd906064016020604051808303816000875af1158015610e19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e3d9190611de7565b50600f546040516323b872dd60e01b81526001600160a01b038881166004830152918216602482015260448101839052908916906323b872dd906064016020604051808303816000875af1158015610e99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ebd9190611de7565b50600d546040517fe3412e3d0000000000000000000000000000000000000000000000000000000081526001600160a01b038a811660048301529091169063e3412e3d90602401600060405180830381600087803b158015610f1e57600080fd5b505af1158015610f32573d6000803e3d6000fd5b5050505050505b81816003016000828254610f4d9190611dd4565b909155505060028101805483900390556001600160a01b038416600090815260076020908152604091829020825180840190935284835291908101610f90611a16565b905281546001818101845560009384526020938490208351600290930201918255929091015191015550610fc79250611a76915050565b5050565b610fd3611a33565b336000818152600a602052604090205460ff16156110245760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b600061102f82610822565b9050600081116110815760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f75676820756e6c6f636b65642074546f6b656e00000000000060448201526064016104ab565b6001600160a01b038216600090815260096020526040812080548392906110a9908490611dd4565b9250508190555080600160008282546110c29190611d88565b9091555050600c546040517f40c10f190000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201849052909116906340c10f1990604401600060405180830381600087803b15801561112e57600080fd5b505af1158015611142573d6000803e3d6000fd5b5050505050506111526001600055565b565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111cb9190611d3f565b6001600160a01b0316336001600160a01b03161461121c5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b601054600160a01b900460ff16156112765760405162461bcd60e51b815260206004820152601560248201527f45706f636820616c72656164792073746172746564000000000000000000000060448201526064016104ab565b42600455601080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b179055565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113219190611d3f565b6001600160a01b0316336001600160a01b0316146113725760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b80518251146113c35760405162461bcd60e51b815260206004820152601e60248201527f417272617973206d757374206265207468652073616d65206c656e677468000060448201526064016104ab565b60005b82518110156114a1578181815181106113e1576113e1611d5c565b6020026020010151600160008282546113fa9190611dd4565b925050819055506007600084838151811061141757611417611d5c565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020604051806040016040528084848151811061145c5761145c611d5c565b60200260200101518152602001611471611a16565b905281546001818101845560009384526020938490208351600290930201918255929091015190820155016113c6565b505050565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061151d9190611d3f565b6001600160a01b0316336001600160a01b03161461156e5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b6001600160a01b03919091166000908152600a60205260409020805460ff1916911515919091179055565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156115ec573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116109190611d3f565b6001600160a01b0316336001600160a01b0316146116615760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116fa9190611d3f565b6001600160a01b0316336001600160a01b03161461174b5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b6001600160a01b03808316600081815260086020526040902054909116146117b55760405162461bcd60e51b815260206004820152601660248201527f4e6f7420612076616c696420756e6465726c79696e670000000000000000000060448201526064016104ab565b6001600160a01b038216600090815260086020526040812060020180548392906117e0908490611dd4565b9250508190555080600160008282546117f99190611dd4565b90915550505050565b600060025461180f611a16565b61181a906001611dd4565b6118249190611d9b565b6004546118319190611dd4565b905090565b600b60009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad9190611d3f565b6001600160a01b0316336001600160a01b0316146118fe5760405162461bcd60e51b815260206004820152600e60248201526d139bdd08105d5d1a1bdc9a5e995960921b60448201526064016104ab565b604080516080810182526001600160a01b0385811680835260208084018781528486018781526000606087018181529481526008909352958220945185546001600160a01b03191694169390931784559151600180850191909155935160028401555160039092019190915581548392919061197b908490611dd4565b9091555050505050565b600b546040517f358177730000000000000000000000000000000000000000000000000000000081526000916001600160a01b0316906335817773906119cf908590600401611e04565b602060405180830381865afa1580156119ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a109190611d3f565b92915050565b600060025460045442611a299190611d88565b6118319190611db2565b600260005403611a6f576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600055565b6001600055565b6001600160a01b0381168114611a9257600080fd5b50565b60008060408385031215611aa857600080fd5b8235611ab381611a7d565b946020939093013593505050565b600060208284031215611ad357600080fd5b5035919050565b600060208284031215611aec57600080fd5b8135611af781611a7d565b9392505050565b60008060408385031215611b1157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611b5f57611b5f611b20565b604052919050565b600067ffffffffffffffff821115611b8157611b81611b20565b5060051b60200190565b600082601f830112611b9c57600080fd5b8135611baf611baa82611b67565b611b36565b8082825260208201915060208360051b860101925085831115611bd157600080fd5b602085015b83811015611bee578035835260209283019201611bd6565b5095945050505050565b60008060408385031215611c0b57600080fd5b823567ffffffffffffffff811115611c2257600080fd5b8301601f81018513611c3357600080fd5b8035611c41611baa82611b67565b8082825260208201915060208360051b850101925087831115611c6357600080fd5b6020840193505b82841015611c8e578335611c7d81611a7d565b825260209384019390910190611c6a565b9450505050602083013567ffffffffffffffff811115611cad57600080fd5b611cb985828601611b8b565b9150509250929050565b8015158114611a9257600080fd5b60008060408385031215611ce457600080fd5b8235611cef81611a7d565b91506020830135611cff81611cc3565b809150509250929050565b600080600060608486031215611d1f57600080fd5b8335611d2a81611a7d565b95602085013595506040909401359392505050565b600060208284031215611d5157600080fd5b8151611af781611a7d565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115611a1057611a10611d72565b8082028115828204841417611a1057611a10611d72565b600082611dcf57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115611a1057611a10611d72565b600060208284031215611df957600080fd5b8151611af781611cc3565b602081526000825180602084015260005b81811015611e325760208186018101516040868401015201611e15565b506000604082850101526040601f19601f8301168401019150509291505056fea264697066735822122064634aba3feead52091e3c0c9783f3fb0dfd7be82318b9fc1da56f71923ee37f64736f6c634300081a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.