Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim LP Rewards | 18674742 | 370 days ago | IN | 0 ETH | 0.00371311 | ||||
Remove As LP | 18674740 | 370 days ago | IN | 0 ETH | 0.03951931 | ||||
Add To Pool | 18641735 | 375 days ago | IN | 0 ETH | 0.04108974 | ||||
Add To Pool | 18638111 | 375 days ago | IN | 0 ETH | 0.02265463 | ||||
Add To Pool | 18638087 | 375 days ago | IN | 0 ETH | 0.02370451 | ||||
Claim LP Rewards | 18638078 | 375 days ago | IN | 0 ETH | 0.00340019 | ||||
Add To Pool | 18596317 | 381 days ago | IN | 0 ETH | 0.02416492 | ||||
Add To Pool | 18588742 | 382 days ago | IN | 0 ETH | 0.0312746 | ||||
Add To Pool | 18581032 | 383 days ago | IN | 0 ETH | 0.04128793 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
TreasuryManager
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; import "./interfaces/IConvexDeposits.sol"; import "./interfaces/IConvexStaking.sol"; import "./interfaces/IPrismaDepositor.sol"; import "./interfaces/ICurveExchange.sol"; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol'; /* Treasury module for cvxprisma lp management */ contract TreasuryManager{ using SafeERC20 for IERC20; address public constant crv = address(0xD533a949740bb3306d119CC777fa900bA034cd52); address public constant cvx = address(0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B); address public constant prisma = address(0xdA47862a83dac0c112BA89c6abC2159b95afd71C); address public constant cvxPrisma = address(0x34635280737b5BFe6c7DC2FC3065D60d66e78185); address public constant treasury = address(0x1389388d01708118b497f59521f6943Be2541bb7); address public constant exchange = address(0x3b21C2868B6028CfB38Ff86127eF22E68d16d53B); address public constant deposit = address(0x61404F7c2d8b1F3373eb3c6e8C4b8d8332c2D5B8); address public constant booster = address(0xF403C135812408BFbE8713b5A23a04b3D48AAE31); address public constant lprewards = address(0x4b10c7fAd37cB7A9DaCcEeEe40C0d97549918298); uint256 public constant pid = 258; address public immutable owner; mapping(address => bool) public operators; uint256 public slippage; event OperatorSet(address indexed _op, bool _active); event Swap(uint256 _amountIn, uint256 _amountOut); event Convert(uint256 _amount); event AddedToLP(uint256 _lpamount); event RemovedFromLp(uint256 _lpamount); event ClaimedReward(address indexed _token, uint256 _amount); constructor() { owner = address(0xa3C5A1e09150B75ff251c1a7815A07182c3de2FB); operators[msg.sender] = true; slippage = 970 * 1e15; IERC20(cvxPrisma).safeApprove(exchange, type(uint256).max); IERC20(prisma).safeApprove(exchange, type(uint256).max); IERC20(prisma).safeApprove(deposit, type(uint256).max); IERC20(exchange).safeApprove(booster, type(uint256).max); } modifier onlyOwner() { require(owner == msg.sender, "!owner"); _; } modifier onlyOperator() { require(operators[msg.sender] || owner == msg.sender, "!operator"); _; } function treasuryBalanceOfCvxPrisma() external view returns(uint256){ return IERC20(cvxPrisma).balanceOf(treasury); } function treasuryBalanceOfPrisma() external view returns(uint256){ return IERC20(prisma).balanceOf(treasury); } function setOperator(address _op, bool _active) external onlyOwner{ operators[_op] = _active; emit OperatorSet(_op, _active); } function setSlippageAllowance(uint256 _slip) external onlyOwner{ require(_slip > 0, "!valid slip"); slippage = _slip; } function withdrawTo(IERC20 _asset, uint256 _amount, address _to) external onlyOwner{ _asset.safeTransfer(_to, _amount); } function execute( address _to, uint256 _value, bytes calldata _data ) external onlyOwner returns (bool, bytes memory) { (bool success, bytes memory result) = _to.call{value:_value}(_data); return (success, result); } function calc_minOut_swap(uint256 _amount) external view returns(uint256){ uint256[2] memory amounts = [_amount,0]; uint256 tokenOut = ICurveExchange(exchange).calc_token_amount(amounts, false); tokenOut = tokenOut * slippage / 1e18; return tokenOut; } function calc_minOut_deposit(uint256 _prismaAmount, uint256 _cvxPrismaAmount) external view returns(uint256){ uint256[2] memory amounts = [_prismaAmount,_cvxPrismaAmount]; uint256 tokenOut = ICurveExchange(exchange).calc_token_amount(amounts, true); tokenOut = tokenOut * slippage / 1e18; return tokenOut; } function calc_withdraw_one_coin(uint256 _amount) external view returns(uint256){ uint256 tokenOut = ICurveExchange(exchange).calc_withdraw_one_coin(_amount, 1); tokenOut = tokenOut * slippage / 1e18; return tokenOut; } function swap(uint256 _amount, uint256 _minAmountOut) external onlyOperator{ require(_minAmountOut > 0, "!min_out"); uint256 before = IERC20(cvxPrisma).balanceOf(treasury); //pull IERC20(prisma).safeTransferFrom(treasury,address(this),_amount); //swap prisma for cvxPrisma and return to treasury ICurveExchange(exchange).exchange(0,1,_amount,_minAmountOut, treasury); emit Swap(_amount, IERC20(cvxPrisma).balanceOf(treasury) - before ); } function convert(uint256 _amount, bool _lock) external onlyOperator{ //pull IERC20(prisma).safeTransferFrom(treasury,address(this),_amount); //deposit IPrismaDepositor(deposit).deposit(_amount,_lock); //return IERC20(cvxPrisma).safeTransfer(treasury,_amount); emit Convert(_amount); } function addToPool(uint256 _prismaAmount, uint256 _cvxPrismaAmount, uint256 _minAmountOut) external onlyOperator{ require(_minAmountOut > 0, "!min_out"); //pull IERC20(prisma).safeTransferFrom(treasury,address(this),_prismaAmount); IERC20(cvxPrisma).safeTransferFrom(treasury,address(this),_cvxPrismaAmount); //add lp uint256[2] memory amounts = [_prismaAmount,_cvxPrismaAmount]; ICurveExchange(exchange).add_liquidity(amounts, _minAmountOut, address(this)); //add to convex uint256 lpBalance = IERC20(exchange).balanceOf(address(this)); IConvexDeposits(booster).deposit(pid, lpBalance, true); emit AddedToLP(lpBalance); } function removeFromPool(uint256 _amount, uint256 _minAmountOut) external onlyOperator{ require(_minAmountOut > 0, "!min_out"); //remove from convex IConvexStaking(lprewards).withdrawAndUnwrap(_amount, true); //remove from LP with treasury as receiver ICurveExchange(exchange).remove_liquidity_one_coin(IERC20(exchange).balanceOf(address(this)), 1, _minAmountOut, treasury); uint256 bal = IERC20(crv).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(crv).safeTransfer(treasury, bal); } bal = IERC20(cvx).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(cvx).safeTransfer(treasury, bal); } bal = IERC20(prisma).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(prisma).safeTransfer(treasury, bal); } bal = IERC20(cvxPrisma).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(cvxPrisma).safeTransfer(treasury, bal); } emit RemovedFromLp(_amount); } function removeAsLP(uint256 _amount) external onlyOperator{ //remove from convex IConvexStaking(lprewards).withdrawAndUnwrap(_amount, true); //remove from LP with treasury as receiver IERC20(exchange).safeTransfer(treasury,IERC20(exchange).balanceOf(address(this))); uint256 bal = IERC20(crv).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(crv).safeTransfer(treasury, bal); } bal = IERC20(cvx).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(cvx).safeTransfer(treasury, bal); } bal = IERC20(prisma).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(prisma).safeTransfer(treasury, bal); } emit RemovedFromLp(_amount); } function claimLPRewards() external onlyOperator{ //claim from convex IConvexStaking(lprewards).getReward(); uint256 bal = IERC20(crv).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(crv).safeTransfer(treasury, bal); emit ClaimedReward(crv,bal); } bal = IERC20(cvx).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(cvx).safeTransfer(treasury, bal); emit ClaimedReward(cvx,bal); } bal = IERC20(prisma).balanceOf(address(this)); if(bal > 0){ //transfer to treasury IERC20(prisma).safeTransfer(treasury, bal); emit ClaimedReward(prisma,bal); } } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IPrismaDepositor { function deposit(uint256 _amount, bool _lock) external; }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface ICurveExchange { function exchange( int128, int128, uint256, uint256, address ) external returns (uint256); function calc_token_amount(uint256[2] calldata _amounts, bool _isDeposit) external view returns(uint256); function calc_withdraw_one_coin(uint256 _amount, int128 _index) external view returns(uint256); function add_liquidity(uint256[2] calldata _amounts, uint256 _min_mint_amount, address _receiver) external returns(uint256); function remove_liquidity(uint256 _amount, uint256[2] calldata _min_amounts, address _receiver) external returns(uint256[2] calldata); function remove_liquidity_one_coin(uint256 _amount, int128 _index, uint256 _min_amount, address _receiver) external returns(uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IConvexStaking { function stakeFor(address, uint256) external; function stake( uint256) external; function withdraw(uint256 amount, bool claim) external; function withdrawAndUnwrap(uint256 amount, bool claim) external; function earned(address account) external view returns (uint256); function getReward() external; function getReward(address _account, bool _claimExtras) external; function extraRewardsLength() external view returns (uint256); function extraRewards(uint256 _pid) external view returns (address); function rewardToken() external view returns (address); function balanceOf(address _account) external view returns (uint256); function rewardRate() external view returns(uint256); function totalSupply() external view returns(uint256); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.19; interface IConvexDeposits { function deposit(uint256 _pid, uint256 _amount, bool _stake) external returns(bool); function deposit(uint256 _amount, bool _lock, address _stakeAddress) external; function earmarkRewards(uint256 _pid) external returns(bool); function earmarkFees() external returns(bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to * 0 before setting it to a non-zero value. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// 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); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_lpamount","type":"uint256"}],"name":"AddedToLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ClaimedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Convert","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_op","type":"address"},{"indexed":false,"internalType":"bool","name":"_active","type":"bool"}],"name":"OperatorSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_lpamount","type":"uint256"}],"name":"RemovedFromLp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"uint256","name":"_prismaAmount","type":"uint256"},{"internalType":"uint256","name":"_cvxPrismaAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"addToPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"booster","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_prismaAmount","type":"uint256"},{"internalType":"uint256","name":"_cvxPrismaAmount","type":"uint256"}],"name":"calc_minOut_deposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calc_minOut_swap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"calc_withdraw_one_coin","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimLPRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"convert","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"crv","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cvxPrisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"exchange","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lprewards","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"operators","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"prisma","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"removeAsLP","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"removeFromPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_op","type":"address"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_slip","type":"uint256"}],"name":"setSlippageAllowance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"slippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryBalanceOfCvxPrisma","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryBalanceOfPrisma","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_asset","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60a06040523480156200001157600080fd5b5073a3c5a1e09150b75ff251c1a7815a07182c3de2fb608052336000908152602081905260409020805460ff19166001908117909155670d7621dc582100009055620000897334635280737b5bfe6c7dc2fc3065d60d66e78185733b21c2868b6028cfb38ff86127ef22e68d16d53b60001962000134565b620000c073da47862a83dac0c112ba89c6abc2159b95afd71c733b21c2868b6028cfb38ff86127ef22e68d16d53b60001962000134565b620000f773da47862a83dac0c112ba89c6abc2159b95afd71c7361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b860001962000134565b6200012e733b21c2868b6028cfb38ff86127ef22e68d16d53b73f403c135812408bfbe8713b5a23a04b3d48aae3160001962000134565b620005bd565b801580620001b25750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa1580156200018a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001b09190620004ff565b155b6200022a5760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527f20746f206e6f6e2d7a65726f20616c6c6f77616e63650000000000000000000060648201526084015b60405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b0390811663095ea7b360e01b17909152620002829185916200028716565b505050565b6040805180820190915260208082527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656490820152600090620002d6906001600160a01b0385169084906200035b565b9050805160001480620002fa575080806020019051810190620002fa919062000519565b620002825760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000221565b60606200036c848460008562000374565b949350505050565b606082471015620003d75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000221565b600080866001600160a01b03168587604051620003f591906200056a565b60006040518083038185875af1925050503d806000811462000434576040519150601f19603f3d011682016040523d82523d6000602084013e62000439565b606091505b5090925090506200044d8783838762000458565b979650505050505050565b60608315620004cc578251600003620004c4576001600160a01b0385163b620004c45760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000221565b50816200036c565b6200036c8383815115620004e35781518083602001fd5b8060405162461bcd60e51b815260040162000221919062000588565b6000602082840312156200051257600080fd5b5051919050565b6000602082840312156200052c57600080fd5b815180151581146200053d57600080fd5b9392505050565b60005b838110156200056157818101518382015260200162000547565b50506000910152565b600082516200057e81846020870162000544565b9190910192915050565b6020815260008251806020840152620005a981604085016020870162000544565b601f01601f19169190910160400192915050565b60805161232e6200061f600039600081816102f101528181610474015281816108ab01528181610cf801528181610db6015281816111c301528181611307015281816113960152818161144e0152818161151001526119da015261232e6000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c806395175846116100f9578063d0e30db011610097578063d96073cf11610071578063d96073cf14610407578063f10684541461041a578063f6f2c48d14610423578063f794c6a91461043e57600080fd5b8063d0e30db0146103be578063d276ab2d146103d9578063d2f7265a146103ec57600080fd5b8063b61d27f6116100d3578063b61d27f614610367578063c4e2c1e614610388578063c6def0761461039b578063c7817272146103b657600080fd5b8063951758461461032e5780639a5ef36914610341578063ab5d6dd51461035457600080fd5b8063558a7297116101665780636a4874a1116101405780636a4874a1146102be57806382cfbabc146102d95780638da5cb5b146102ec578063923c1d611461031357600080fd5b8063558a72971461028357806361d027b31461029657806363c40d85146102ab57600080fd5b80631d0b9d09116101a25780631d0b9d09146102495780633cad2a0a1461025f5780633e032a3b1461026757806354b8b09a1461027057600080fd5b806307ab2fd0146101c95780630a3266b0146101de57806313e7c9d814610216575b600080fd5b6101dc6101d7366004611ef4565b610459565b005b6101f973da47862a83dac0c112ba89c6abc2159b95afd71c81565b6040516001600160a01b0390911681526020015b60405180910390f35b610239610224366004611f22565b60006020819052908152604090205460ff1681565b604051901515815260200161020d565b610251610806565b60405190815260200161020d565b6101dc610890565b61025160015481565b61025161027e366004611f3f565b610c35565b6101dc610291366004611f6f565b610cf6565b6101f96000805160206122d983398151915281565b6101dc6102b9366004611fa8565b610d9b565b6101f973d533a949740bb3306d119cc777fa900ba034cd5281565b6102516102e7366004611ef4565b611043565b6101f97f000000000000000000000000000000000000000000000000000000000000000081565b6101f9734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61025161033c366004611ef4565b6110ed565b6101dc61034f366004611fd4565b6111a8565b6101dc610362366004611ef4565b611305565b61037a610375366004611ff9565b611390565b60405161020d9291906120d2565b6101dc6103963660046120ed565b61144c565b6101f973f403c135812408bfbe8713b5a23a04b3d48aae3181565b6102516114ad565b6101f97361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b881565b6101dc6103e7366004611f3f565b6114f5565b6101f9733b21c2868b6028cfb38ff86127ef22e68d16d53b81565b6101dc610415366004611f3f565b6119bf565b61025161010281565b6101f97334635280737b5bfe6c7dc2fc3065d60d66e7818581565b6101f9734b10c7fad37cb7a9dacceeee40c0d9754991829881565b3360009081526020819052604090205460ff168061049f57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6104c45760405162461bcd60e51b81526004016104bb9061212f565b60405180910390fd5b604051636197390160e11b81526004810182905260016024820152734b10c7fad37cb7a9dacceeee40c0d975499182989063c32e720290604401600060405180830381600087803b15801561051857600080fd5b505af115801561052c573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526105d392506000805160206122d98339815191529150733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b79190612152565b733b21c2868b6028cfb38ff86127ef22e68d16d53b9190611c5b565b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610625573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106499190612152565b9050801561067e5761067e73d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa1580156106cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f19190612152565b9050801561072657610726734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190612152565b905080156107ce576107ce73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b6040518281527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a15050565b6040516370a0823160e01b81526000805160206122d9833981519152600482015260009073da47862a83dac0c112ba89c6abc2159b95afd71c906370a08231906024015b602060405180830381865afa158015610867573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088b9190612152565b905090565b3360009081526020819052604090205460ff16806108d657507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6108f25760405162461bcd60e51b81526004016104bb9061212f565b734b10c7fad37cb7a9dacceeee40c0d975499182986001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561094157600080fd5b505af1158015610955573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073d533a949740bb3306d119cc777fa900ba034cd5291506370a0823190602401602060405180830381865afa1580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190612152565b90508015610a4e57610a0473d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b60405181815273d533a949740bb3306d119cc777fa900ba034cd52907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac19190612152565b90508015610b4057610af6734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b604051818152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb39190612152565b90508015610c3257610be873da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b60405181815273da47862a83dac0c112ba89c6abc2159b95afd71c907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b50565b60408051808201825283815260208101839052905163ed8e84f360e01b8152600091908290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f390610c8790859060019060040161218e565b602060405180830381865afa158015610ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc89190612152565b9050670de0b6b3a764000060015482610ce191906121c1565b610ceb91906121d8565b925050505b92915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163314610d3e5760405162461bcd60e51b81526004016104bb906121fa565b6001600160a01b03821660008181526020818152604091829020805460ff191685151590811790915591519182527f1a594081ae893ab78e67d9b9e843547318164322d32c65369d78a96172d9dc8f910160405180910390a25050565b3360009081526020819052604090205460ff1680610de157507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b610dfd5760405162461bcd60e51b81526004016104bb9061212f565b60008111610e1d5760405162461bcd60e51b81526004016104bb9061221a565b610e4b73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523086611cbe565b610e797334635280737b5bfe6c7dc2fc3065d60d66e781856000805160206122d98339815191523085611cbe565b60408051808201825284815260208101849052905163030f92d560e21b8152733b21c2868b6028cfb38ff86127ef22e68d16d53b90630c3e4b5490610ec69084908690309060040161223c565b6020604051808303816000875af1158015610ee5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f099190612152565b506040516370a0823160e01b8152306004820152600090733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610f5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f809190612152565b6040516321d0683360e11b81526101026004820152602481018290526001604482015290915073f403c135812408bfbe8713b5a23a04b3d48aae31906343a0d066906064016020604051808303816000875af1158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110089190612269565b506040518181527fa6a8107039a83951c79bff2674934ac8564693a125f6817ed6dc7f7fdc49e3679060200160405180910390a15050505050565b60405163cc2b27d760e01b815260048101829052600160248201526000908190733b21c2868b6028cfb38ff86127ef22e68d16d53b9063cc2b27d790604401602060405180830381865afa15801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190612152565b9050670de0b6b3a7640000600154826110dc91906121c1565b6110e691906121d8565b9392505050565b604080518082018252828152600060208201819052915163ed8e84f360e01b81528290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f39061113c908590859060040161218e565b602060405180830381865afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612152565b9050670de0b6b3a76400006001548261119691906121c1565b6111a091906121d8565b949350505050565b3360009081526020819052604090205460ff16806111ee57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b61120a5760405162461bcd60e51b81526004016104bb9061212f565b61123873da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523085611cbe565b604051639a40832160e01b81526004810183905281151560248201527361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b890639a40832190604401600060405180830381600087803b15801561128d57600080fd5b505af11580156112a1573d6000803e3d6000fd5b506112d592507334635280737b5bfe6c7dc2fc3065d60d66e7818591506000805160206122d9833981519152905084611c5b565b6040518281527f37ec6b5ba182178b94b69c1f891b21848dd8f216d76f0ddf8be8d54572b8c270906020016107fa565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316331461134d5760405162461bcd60e51b81526004016104bb906121fa565b6000811161138b5760405162461bcd60e51b815260206004820152600b60248201526a02176616c696420736c69760ac1b60448201526064016104bb565b600155565b600060607f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146113dc5760405162461bcd60e51b81526004016104bb906121fa565b600080876001600160a01b03168787876040516113fa929190612286565b60006040518083038185875af1925050503d8060008114611437576040519150601f19603f3d011682016040523d82523d6000602084013e61143c565b606091505b5090999098509650505050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633146114945760405162461bcd60e51b81526004016104bb906121fa565b6114a86001600160a01b0384168284611c5b565b505050565b6040516370a0823160e01b81526000805160206122d983398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a082319060240161084a565b3360009081526020819052604090205460ff168061153b57507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b6115575760405162461bcd60e51b81526004016104bb9061212f565b600081116115775760405162461bcd60e51b81526004016104bb9061221a565b604051636197390160e11b81526004810183905260016024820152734b10c7fad37cb7a9dacceeee40c0d975499182989063c32e720290604401600060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152733b21c2868b6028cfb38ff86127ef22e68d16d53b925063081579a5915082906370a0823190602401602060405180830381865afa15801561163a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165e9190612152565b6040516001600160e01b031960e084901b168152600481019190915260016024820152604481018490526000805160206122d983398151915260648201526084016020604051808303816000875af11580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e29190612152565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015611735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117599190612152565b9050801561178e5761178e73d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa1580156117dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118019190612152565b9050801561183657611836734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015611885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a99190612152565b905080156118de576118de73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa15801561192d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119519190612152565b90508015611986576119867334635280737b5bfe6c7dc2fc3065d60d66e781856000805160206122d983398151915283611c5b565b6040518381527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a1505050565b3360009081526020819052604090205460ff1680611a0557507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633145b611a215760405162461bcd60e51b81526004016104bb9061212f565b60008111611a415760405162461bcd60e51b81526004016104bb9061221a565b6040516370a0823160e01b81526000805160206122d983398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac59190612152565b9050611af573da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523086611cbe565b60405163ddc1f59d60e01b8152600060048201526001602482015260448101849052606481018390526000805160206122d98339815191526084820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ddc1f59d9060a4016020604051808303816000875af1158015611b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b949190612152565b506040516370a0823160e01b81526000805160206122d983398151915260048201527f015fc8ee969fd902d9ebd12a31c54446400a2b512a405366fe14defd6081d22090849083907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c9190612152565b611c469190612296565b604080519283526020830191909152016119b2565b6040516001600160a01b0383166024820152604481018290526114a890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611cfc565b6040516001600160a01b0380851660248301528316604482015260648101829052611cf69085906323b872dd60e01b90608401611c87565b50505050565b6000611d51826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611dd19092919063ffffffff16565b9050805160001480611d72575080806020019051810190611d729190612269565b6114a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104bb565b60606111a0848460008585600080866001600160a01b03168587604051611df891906122a9565b60006040518083038185875af1925050503d8060008114611e35576040519150601f19603f3d011682016040523d82523d6000602084013e611e3a565b606091505b5091509150611e4b87838387611e56565b979650505050505050565b60608315611ec5578251600003611ebe576001600160a01b0385163b611ebe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104bb565b50816111a0565b6111a08383815115611eda5781518083602001fd5b8060405162461bcd60e51b81526004016104bb91906122c5565b600060208284031215611f0657600080fd5b5035919050565b6001600160a01b0381168114610c3257600080fd5b600060208284031215611f3457600080fd5b81356110e681611f0d565b60008060408385031215611f5257600080fd5b50508035926020909101359150565b8015158114610c3257600080fd5b60008060408385031215611f8257600080fd5b8235611f8d81611f0d565b91506020830135611f9d81611f61565b809150509250929050565b600080600060608486031215611fbd57600080fd5b505081359360208301359350604090920135919050565b60008060408385031215611fe757600080fd5b823591506020830135611f9d81611f61565b6000806000806060858703121561200f57600080fd5b843561201a81611f0d565b935060208501359250604085013567ffffffffffffffff8082111561203e57600080fd5b818701915087601f83011261205257600080fd5b81358181111561206157600080fd5b88602082850101111561207357600080fd5b95989497505060200194505050565b60005b8381101561209d578181015183820152602001612085565b50506000910152565b600081518084526120be816020860160208601612082565b601f01601f19169290920160200192915050565b82151581526040602082015260006111a060408301846120a6565b60008060006060848603121561210257600080fd5b833561210d81611f0d565b925060208401359150604084013561212481611f0d565b809150509250925092565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60006020828403121561216457600080fd5b5051919050565b8060005b6002811015611cf657815184526020938401939091019060010161216f565b6060810161219c828561216b565b82151560408301529392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610cf057610cf06121ab565b6000826121f557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b602080825260089082015267085b5a5b97dbdd5d60c21b604082015260600190565b6080810161224a828661216b565b60408201939093526001600160a01b0391909116606090910152919050565b60006020828403121561227b57600080fd5b81516110e681611f61565b8183823760009101908152919050565b81810381811115610cf057610cf06121ab565b600082516122bb818460208701612082565b9190910192915050565b6020815260006110e660208301846120a656fe0000000000000000000000001389388d01708118b497f59521f6943be2541bb7a26469706673582212205c88ba23ce66bb51512e31fe3d77b4f8856dda6183ce19dceefd4b3d8491c41564736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806395175846116100f9578063d0e30db011610097578063d96073cf11610071578063d96073cf14610407578063f10684541461041a578063f6f2c48d14610423578063f794c6a91461043e57600080fd5b8063d0e30db0146103be578063d276ab2d146103d9578063d2f7265a146103ec57600080fd5b8063b61d27f6116100d3578063b61d27f614610367578063c4e2c1e614610388578063c6def0761461039b578063c7817272146103b657600080fd5b8063951758461461032e5780639a5ef36914610341578063ab5d6dd51461035457600080fd5b8063558a7297116101665780636a4874a1116101405780636a4874a1146102be57806382cfbabc146102d95780638da5cb5b146102ec578063923c1d611461031357600080fd5b8063558a72971461028357806361d027b31461029657806363c40d85146102ab57600080fd5b80631d0b9d09116101a25780631d0b9d09146102495780633cad2a0a1461025f5780633e032a3b1461026757806354b8b09a1461027057600080fd5b806307ab2fd0146101c95780630a3266b0146101de57806313e7c9d814610216575b600080fd5b6101dc6101d7366004611ef4565b610459565b005b6101f973da47862a83dac0c112ba89c6abc2159b95afd71c81565b6040516001600160a01b0390911681526020015b60405180910390f35b610239610224366004611f22565b60006020819052908152604090205460ff1681565b604051901515815260200161020d565b610251610806565b60405190815260200161020d565b6101dc610890565b61025160015481565b61025161027e366004611f3f565b610c35565b6101dc610291366004611f6f565b610cf6565b6101f96000805160206122d983398151915281565b6101dc6102b9366004611fa8565b610d9b565b6101f973d533a949740bb3306d119cc777fa900ba034cd5281565b6102516102e7366004611ef4565b611043565b6101f97f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb81565b6101f9734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b81565b61025161033c366004611ef4565b6110ed565b6101dc61034f366004611fd4565b6111a8565b6101dc610362366004611ef4565b611305565b61037a610375366004611ff9565b611390565b60405161020d9291906120d2565b6101dc6103963660046120ed565b61144c565b6101f973f403c135812408bfbe8713b5a23a04b3d48aae3181565b6102516114ad565b6101f97361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b881565b6101dc6103e7366004611f3f565b6114f5565b6101f9733b21c2868b6028cfb38ff86127ef22e68d16d53b81565b6101dc610415366004611f3f565b6119bf565b61025161010281565b6101f97334635280737b5bfe6c7dc2fc3065d60d66e7818581565b6101f9734b10c7fad37cb7a9dacceeee40c0d9754991829881565b3360009081526020819052604090205460ff168061049f57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6104c45760405162461bcd60e51b81526004016104bb9061212f565b60405180910390fd5b604051636197390160e11b81526004810182905260016024820152734b10c7fad37cb7a9dacceeee40c0d975499182989063c32e720290604401600060405180830381600087803b15801561051857600080fd5b505af115801561052c573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526105d392506000805160206122d98339815191529150733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610593573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b79190612152565b733b21c2868b6028cfb38ff86127ef22e68d16d53b9190611c5b565b6040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015610625573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106499190612152565b9050801561067e5761067e73d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa1580156106cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f19190612152565b9050801561072657610726734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015610775573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107999190612152565b905080156107ce576107ce73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b6040518281527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a15050565b6040516370a0823160e01b81526000805160206122d9833981519152600482015260009073da47862a83dac0c112ba89c6abc2159b95afd71c906370a08231906024015b602060405180830381865afa158015610867573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088b9190612152565b905090565b3360009081526020819052604090205460ff16806108d657507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6108f25760405162461bcd60e51b81526004016104bb9061212f565b734b10c7fad37cb7a9dacceeee40c0d975499182986001600160a01b0316633d18b9126040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561094157600080fd5b505af1158015610955573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526000925073d533a949740bb3306d119cc777fa900ba034cd5291506370a0823190602401602060405180830381865afa1580156109ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109cf9190612152565b90508015610a4e57610a0473d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b60405181815273d533a949740bb3306d119cc777fa900ba034cd52907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa158015610a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ac19190612152565b90508015610b4057610af6734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b604051818152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015610b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb39190612152565b90508015610c3257610be873da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b60405181815273da47862a83dac0c112ba89c6abc2159b95afd71c907fd0813ff03c470dcc7baa9ce36914dc2febdfd276d639deffaac383fd3db42ba39060200160405180910390a25b50565b60408051808201825283815260208101839052905163ed8e84f360e01b8152600091908290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f390610c8790859060019060040161218e565b602060405180830381865afa158015610ca4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc89190612152565b9050670de0b6b3a764000060015482610ce191906121c1565b610ceb91906121d8565b925050505b92915050565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b03163314610d3e5760405162461bcd60e51b81526004016104bb906121fa565b6001600160a01b03821660008181526020818152604091829020805460ff191685151590811790915591519182527f1a594081ae893ab78e67d9b9e843547318164322d32c65369d78a96172d9dc8f910160405180910390a25050565b3360009081526020819052604090205460ff1680610de157507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b610dfd5760405162461bcd60e51b81526004016104bb9061212f565b60008111610e1d5760405162461bcd60e51b81526004016104bb9061221a565b610e4b73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523086611cbe565b610e797334635280737b5bfe6c7dc2fc3065d60d66e781856000805160206122d98339815191523085611cbe565b60408051808201825284815260208101849052905163030f92d560e21b8152733b21c2868b6028cfb38ff86127ef22e68d16d53b90630c3e4b5490610ec69084908690309060040161223c565b6020604051808303816000875af1158015610ee5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f099190612152565b506040516370a0823160e01b8152306004820152600090733b21c2868b6028cfb38ff86127ef22e68d16d53b906370a0823190602401602060405180830381865afa158015610f5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f809190612152565b6040516321d0683360e11b81526101026004820152602481018290526001604482015290915073f403c135812408bfbe8713b5a23a04b3d48aae31906343a0d066906064016020604051808303816000875af1158015610fe4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110089190612269565b506040518181527fa6a8107039a83951c79bff2674934ac8564693a125f6817ed6dc7f7fdc49e3679060200160405180910390a15050505050565b60405163cc2b27d760e01b815260048101829052600160248201526000908190733b21c2868b6028cfb38ff86127ef22e68d16d53b9063cc2b27d790604401602060405180830381865afa15801561109f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c39190612152565b9050670de0b6b3a7640000600154826110dc91906121c1565b6110e691906121d8565b9392505050565b604080518082018252828152600060208201819052915163ed8e84f360e01b81528290733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ed8e84f39061113c908590859060040161218e565b602060405180830381865afa158015611159573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061117d9190612152565b9050670de0b6b3a76400006001548261119691906121c1565b6111a091906121d8565b949350505050565b3360009081526020819052604090205460ff16806111ee57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b61120a5760405162461bcd60e51b81526004016104bb9061212f565b61123873da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523085611cbe565b604051639a40832160e01b81526004810183905281151560248201527361404f7c2d8b1f3373eb3c6e8c4b8d8332c2d5b890639a40832190604401600060405180830381600087803b15801561128d57600080fd5b505af11580156112a1573d6000803e3d6000fd5b506112d592507334635280737b5bfe6c7dc2fc3065d60d66e7818591506000805160206122d9833981519152905084611c5b565b6040518281527f37ec6b5ba182178b94b69c1f891b21848dd8f216d76f0ddf8be8d54572b8c270906020016107fa565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b0316331461134d5760405162461bcd60e51b81526004016104bb906121fa565b6000811161138b5760405162461bcd60e51b815260206004820152600b60248201526a02176616c696420736c69760ac1b60448201526064016104bb565b600155565b600060607f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633146113dc5760405162461bcd60e51b81526004016104bb906121fa565b600080876001600160a01b03168787876040516113fa929190612286565b60006040518083038185875af1925050503d8060008114611437576040519150601f19603f3d011682016040523d82523d6000602084013e61143c565b606091505b5090999098509650505050505050565b7f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633146114945760405162461bcd60e51b81526004016104bb906121fa565b6114a86001600160a01b0384168284611c5b565b505050565b6040516370a0823160e01b81526000805160206122d983398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a082319060240161084a565b3360009081526020819052604090205460ff168061153b57507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b6115575760405162461bcd60e51b81526004016104bb9061212f565b600081116115775760405162461bcd60e51b81526004016104bb9061221a565b604051636197390160e11b81526004810183905260016024820152734b10c7fad37cb7a9dacceeee40c0d975499182989063c32e720290604401600060405180830381600087803b1580156115cb57600080fd5b505af11580156115df573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152733b21c2868b6028cfb38ff86127ef22e68d16d53b925063081579a5915082906370a0823190602401602060405180830381865afa15801561163a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165e9190612152565b6040516001600160e01b031960e084901b168152600481019190915260016024820152604481018490526000805160206122d983398151915260648201526084016020604051808303816000875af11580156116be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e29190612152565b506040516370a0823160e01b815230600482015260009073d533a949740bb3306d119cc777fa900ba034cd52906370a0823190602401602060405180830381865afa158015611735573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117599190612152565b9050801561178e5761178e73d533a949740bb3306d119cc777fa900ba034cd526000805160206122d983398151915283611c5b565b6040516370a0823160e01b8152306004820152734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b906370a0823190602401602060405180830381865afa1580156117dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118019190612152565b9050801561183657611836734e3fbd56cd56c3e72c1403e103b45db9da5b9d2b6000805160206122d983398151915283611c5b565b6040516370a0823160e01b815230600482015273da47862a83dac0c112ba89c6abc2159b95afd71c906370a0823190602401602060405180830381865afa158015611885573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a99190612152565b905080156118de576118de73da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d983398151915283611c5b565b6040516370a0823160e01b81523060048201527334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa15801561192d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119519190612152565b90508015611986576119867334635280737b5bfe6c7dc2fc3065d60d66e781856000805160206122d983398151915283611c5b565b6040518381527f7cdb9f5b68ff932d2ca63883152480a7f128d519796e51d0c7d4e70b7544c930906020015b60405180910390a1505050565b3360009081526020819052604090205460ff1680611a0557507f000000000000000000000000a3c5a1e09150b75ff251c1a7815a07182c3de2fb6001600160a01b031633145b611a215760405162461bcd60e51b81526004016104bb9061212f565b60008111611a415760405162461bcd60e51b81526004016104bb9061221a565b6040516370a0823160e01b81526000805160206122d983398151915260048201526000907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611aa1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac59190612152565b9050611af573da47862a83dac0c112ba89c6abc2159b95afd71c6000805160206122d98339815191523086611cbe565b60405163ddc1f59d60e01b8152600060048201526001602482015260448101849052606481018390526000805160206122d98339815191526084820152733b21c2868b6028cfb38ff86127ef22e68d16d53b9063ddc1f59d9060a4016020604051808303816000875af1158015611b70573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b949190612152565b506040516370a0823160e01b81526000805160206122d983398151915260048201527f015fc8ee969fd902d9ebd12a31c54446400a2b512a405366fe14defd6081d22090849083907334635280737b5bfe6c7dc2fc3065d60d66e78185906370a0823190602401602060405180830381865afa158015611c18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c3c9190612152565b611c469190612296565b604080519283526020830191909152016119b2565b6040516001600160a01b0383166024820152604481018290526114a890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611cfc565b6040516001600160a01b0380851660248301528316604482015260648101829052611cf69085906323b872dd60e01b90608401611c87565b50505050565b6000611d51826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611dd19092919063ffffffff16565b9050805160001480611d72575080806020019051810190611d729190612269565b6114a85760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104bb565b60606111a0848460008585600080866001600160a01b03168587604051611df891906122a9565b60006040518083038185875af1925050503d8060008114611e35576040519150601f19603f3d011682016040523d82523d6000602084013e611e3a565b606091505b5091509150611e4b87838387611e56565b979650505050505050565b60608315611ec5578251600003611ebe576001600160a01b0385163b611ebe5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104bb565b50816111a0565b6111a08383815115611eda5781518083602001fd5b8060405162461bcd60e51b81526004016104bb91906122c5565b600060208284031215611f0657600080fd5b5035919050565b6001600160a01b0381168114610c3257600080fd5b600060208284031215611f3457600080fd5b81356110e681611f0d565b60008060408385031215611f5257600080fd5b50508035926020909101359150565b8015158114610c3257600080fd5b60008060408385031215611f8257600080fd5b8235611f8d81611f0d565b91506020830135611f9d81611f61565b809150509250929050565b600080600060608486031215611fbd57600080fd5b505081359360208301359350604090920135919050565b60008060408385031215611fe757600080fd5b823591506020830135611f9d81611f61565b6000806000806060858703121561200f57600080fd5b843561201a81611f0d565b935060208501359250604085013567ffffffffffffffff8082111561203e57600080fd5b818701915087601f83011261205257600080fd5b81358181111561206157600080fd5b88602082850101111561207357600080fd5b95989497505060200194505050565b60005b8381101561209d578181015183820152602001612085565b50506000910152565b600081518084526120be816020860160208601612082565b601f01601f19169290920160200192915050565b82151581526040602082015260006111a060408301846120a6565b60008060006060848603121561210257600080fd5b833561210d81611f0d565b925060208401359150604084013561212481611f0d565b809150509250925092565b60208082526009908201526810b7b832b930ba37b960b91b604082015260600190565b60006020828403121561216457600080fd5b5051919050565b8060005b6002811015611cf657815184526020938401939091019060010161216f565b6060810161219c828561216b565b82151560408301529392505050565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610cf057610cf06121ab565b6000826121f557634e487b7160e01b600052601260045260246000fd5b500490565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b602080825260089082015267085b5a5b97dbdd5d60c21b604082015260600190565b6080810161224a828661216b565b60408201939093526001600160a01b0391909116606090910152919050565b60006020828403121561227b57600080fd5b81516110e681611f61565b8183823760009101908152919050565b81810381811115610cf057610cf06121ab565b600082516122bb818460208701612082565b9190910192915050565b6020815260006110e660208301846120a656fe0000000000000000000000001389388d01708118b497f59521f6943be2541bb7a26469706673582212205c88ba23ce66bb51512e31fe3d77b4f8856dda6183ce19dceefd4b3d8491c41564736f6c63430008130033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 29 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.