ETH Price: $3,442.19 (-1.02%)
Gas: 5 Gwei

Contract

0x38baBedCb1f226B49b2089DA0b84e52b6181Ca59
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Redeem194297702024-03-14 0:43:23110 days ago1710377003IN
0x38baBedC...b6181Ca59
0 ETH0.004294451.32484056
Redeem192998872024-02-24 20:39:59128 days ago1708807199IN
0x38baBedC...b6181Ca59
0 ETH0.003196738.20563741
Redeem192290952024-02-14 22:12:47138 days ago1707948767IN
0x38baBedC...b6181Ca59
0 ETH0.0019790523.65277775
Redeem190182422024-01-16 8:25:23168 days ago1705393523IN
0x38baBedC...b6181Ca59
0 ETH0.0020571624.58638143
Redeem180708272023-09-05 14:18:35300 days ago1693923515IN
0x38baBedC...b6181Ca59
0 ETH0.0015199718.1660596
Redeem174031912023-06-03 22:44:47394 days ago1685832287IN
0x38baBedC...b6181Ca59
0 ETH0.0029577235.34943082
Redeem173975492023-06-03 3:40:59395 days ago1685763659IN
0x38baBedC...b6181Ca59
0 ETH0.0015372123.09131992
Redeem170540292023-04-15 18:00:11443 days ago1681581611IN
0x38baBedC...b6181Ca59
0 ETH0.0022417426.79624463
Redeem169789682023-04-05 0:10:59454 days ago1680653459IN
0x38baBedC...b6181Ca59
0 ETH0.002432829.0758795
Redeem168857452023-03-22 21:16:23467 days ago1679519783IN
0x38baBedC...b6181Ca59
0 ETH0.0020544424.55388088
Redeem168634962023-03-19 18:19:59470 days ago1679249999IN
0x38baBedC...b6181Ca59
0 ETH0.0011499118.85995284
Redeem166552242023-02-18 11:28:35499 days ago1676719715IN
0x38baBedC...b6181Ca59
0 ETH0.0004790519.9633238
Redeem165919312023-02-09 14:56:23508 days ago1675954583IN
0x38baBedC...b6181Ca59
0 ETH0.0034339141.0406712
Redeem164799412023-01-24 23:25:59524 days ago1674602759IN
0x38baBedC...b6181Ca59
0 ETH0.0023471728.0523787
Redeem163121482023-01-01 13:14:47547 days ago1672578887IN
0x38baBedC...b6181Ca59
0 ETH0.0011434613.6662448
Redeem162420282022-12-22 18:26:59557 days ago1671733619IN
0x38baBedC...b6181Ca59
0 ETH0.0010929913.06302166
Redeem162186912022-12-19 12:18:23560 days ago1671452303IN
0x38baBedC...b6181Ca59
0 ETH0.0010142112.12147552
Redeem160958872022-12-02 8:20:11578 days ago1669969211IN
0x38baBedC...b6181Ca59
0 ETH0.00026411.00165763
Redeem160618492022-11-27 14:13:59582 days ago1669558439IN
0x38baBedC...b6181Ca59
0 ETH0.0009218911.01805364
Redeem160505552022-11-26 0:23:35584 days ago1669422215IN
0x38baBedC...b6181Ca59
0 ETH0.0008615310.29664875
Redeem160364212022-11-24 1:01:23586 days ago1669251683IN
0x38baBedC...b6181Ca59
0 ETH0.0010288112.2959845
Redeem160139542022-11-20 21:37:11589 days ago1668980231IN
0x38baBedC...b6181Ca59
0 ETH0.0009557711.42466157
Redeem160118652022-11-20 14:37:23589 days ago1668955043IN
0x38baBedC...b6181Ca59
0 ETH0.0017274120.64534115
Redeem157072002022-10-09 1:17:23632 days ago1665278243IN
0x38baBedC...b6181Ca59
0 ETH0.0017750521.21469082
Redeem155799902022-09-21 6:18:47650 days ago1663741127IN
0x38baBedC...b6181Ca59
0 ETH0.00052936.32690717
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
aCNVRedemption

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2022-04-01
*/

// SPDX-License-Identifier: WTFPL
pragma solidity >=0.8.0;


/**
     ██████╗ ██████╗ ███╗   ██╗ ██████╗ █████╗ ██╗   ██╗██████╗
    ██╔════╝██╔═══██╗████╗  ██║██╔════╝██╔══██╗██║   ██║╚════██╗
    ██║     ██║   ██║██╔██╗ ██║██║     ███████║██║   ██║ █████╔╝
    ██║     ██║   ██║██║╚██╗██║██║     ██╔══██║╚██╗ ██╔╝ ╚═══██╗
    ╚██████╗╚██████╔╝██║ ╚████║╚██████╗██║  ██║ ╚████╔╝ ██████╔╝
     ╚═════╝ ╚═════╝ ╚═╝  ╚═══╝ ╚═════╝╚═╝  ╚═╝  ╚═══╝  ╚═════╝
    Concave
*/

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)



/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `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);

    /**
     * @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);
}

contract aCNVRedemption {

    event Redemption(address indexed redeemer, uint256 output);

    /* -------------------------------------------------------------------------- */
    /*                                   STORAGE                                  */
    /* -------------------------------------------------------------------------- */

    IERC20 public constant CNV = IERC20(0x000000007a58f5f58E697e51Ab0357BC9e260A04);

    IERC20 public constant aCNV = IERC20(0x6Ff0106D34FEEe8A8aCF2e7b9168480f86B82E2f);

    mapping(address => bool) hasRedeemed;

    /* -------------------------------------------------------------------------- */
    /*                                REDEEM LOGIC                                */
    /* -------------------------------------------------------------------------- */

    // @notice This contract is minted aCNV's totalSupply at CNV launch,
    // redemption rate is 1:1
    function redeem(address to) external returns (uint256 output) {

        require(hasRedeemed[msg.sender] == false, "!ALREADY_REDEEMED");

        output = aCNV.balanceOf(msg.sender);

        hasRedeemed[msg.sender] = true;

        CNV.transfer(to, output);

        emit Redemption(msg.sender, output);
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"output","type":"uint256"}],"name":"Redemption","type":"event"},{"inputs":[],"name":"CNV","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aCNV","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"output","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506102fb806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634b3c58281461004657806395a2251f1461007e578063d51a020b1461009f575b600080fd5b610061736ff0106d34feee8a8acf2e7b9168480f86b82e2f81565b6040516001600160a01b0390911681526020015b60405180910390f35b61009161008c36600461025a565b6100b6565b604051908152602001610075565b6100616f7a58f5f58e697e51ab0357bc9e260a0481565b3360009081526020819052604081205460ff161561010e5760405162461bcd60e51b8152602060048201526011602482015270085053149150511657d491511151535151607a1b604482015260640160405180910390fd5b6040516370a0823160e01b8152336004820152736ff0106d34feee8a8acf2e7b9168480f86b82e2f906370a0823190602401602060405180830381865afa15801561015d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610181919061028a565b3360009081526020819052604090819020805460ff191660011790555163a9059cbb60e01b81526001600160a01b0384166004820152602481018290529091506f7a58f5f58e697e51ab0357bc9e260a049063a9059cbb906044016020604051808303816000875af11580156101fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021f91906102a3565b5060405181815233907fe6c82503aaaa3db78b70f183901ae8668918f895b3982b2c851cf2ffe0c6c6399060200160405180910390a2919050565b60006020828403121561026c57600080fd5b81356001600160a01b038116811461028357600080fd5b9392505050565b60006020828403121561029c57600080fd5b5051919050565b6000602082840312156102b557600080fd5b8151801515811461028357600080fdfea26469706673582212208de303bf1169fce7abd9842a96174a68cc9945b30d1be1eadd306e472eb66cb864736f6c634300080b0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100415760003560e01c80634b3c58281461004657806395a2251f1461007e578063d51a020b1461009f575b600080fd5b610061736ff0106d34feee8a8acf2e7b9168480f86b82e2f81565b6040516001600160a01b0390911681526020015b60405180910390f35b61009161008c36600461025a565b6100b6565b604051908152602001610075565b6100616f7a58f5f58e697e51ab0357bc9e260a0481565b3360009081526020819052604081205460ff161561010e5760405162461bcd60e51b8152602060048201526011602482015270085053149150511657d491511151535151607a1b604482015260640160405180910390fd5b6040516370a0823160e01b8152336004820152736ff0106d34feee8a8acf2e7b9168480f86b82e2f906370a0823190602401602060405180830381865afa15801561015d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610181919061028a565b3360009081526020819052604090819020805460ff191660011790555163a9059cbb60e01b81526001600160a01b0384166004820152602481018290529091506f7a58f5f58e697e51ab0357bc9e260a049063a9059cbb906044016020604051808303816000875af11580156101fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061021f91906102a3565b5060405181815233907fe6c82503aaaa3db78b70f183901ae8668918f895b3982b2c851cf2ffe0c6c6399060200160405180910390a2919050565b60006020828403121561026c57600080fd5b81356001600160a01b038116811461028357600080fd5b9392505050565b60006020828403121561029c57600080fd5b5051919050565b6000602082840312156102b557600080fd5b8151801515811461028357600080fdfea26469706673582212208de303bf1169fce7abd9842a96174a68cc9945b30d1be1eadd306e472eb66cb864736f6c634300080b0033

Deployed Bytecode Sourcemap

3860:1271:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4308:80;;4345:42;4308:80;;;;;-1:-1:-1;;;;;191:32:1;;;173:51;;161:2;146:18;4308:80:0;;;;;;;;4807:321;;;;;;:::i;:::-;;:::i;:::-;;;672:25:1;;;660:2;645:18;4807:321:0;526:177:1;4220:79:0;;4256:42;4220:79;;4807:321;4902:10;4853:14;4890:23;;;;;;;;;;;;;:32;4882:62;;;;-1:-1:-1;;;4882:62:0;;910:2:1;4882:62:0;;;892:21:1;949:2;929:18;;;922:30;-1:-1:-1;;;968:18:1;;;961:47;1025:18;;4882:62:0;;;;;;;;4966:26;;-1:-1:-1;;;4966:26:0;;4981:10;4966:26;;;173:51:1;4345:42:0;;4966:14;;146:18:1;;4966:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5017:10;5005:11;:23;;;;;;;;;;;;:30;;-1:-1:-1;;5005:30:0;5031:4;5005:30;;;5048:24;-1:-1:-1;;;5048:24:0;;-1:-1:-1;;;;;1643:32:1;;5048:24:0;;;1625:51:1;1692:18;;;1685:34;;;;;-1:-1:-1;4256:42:0;;5048:12;;1598:18:1;;5048:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;5090:30:0;;672:25:1;;;5101:10:0;;5090:30;;660:2:1;645:18;5090:30:0;;;;;;;4807:321;;;:::o;235:286:1:-;294:6;347:2;335:9;326:7;322:23;318:32;315:52;;;363:1;360;353:12;315:52;389:23;;-1:-1:-1;;;;;441:31:1;;431:42;;421:70;;487:1;484;477:12;421:70;510:5;235:286;-1:-1:-1;;;235:286:1:o;1262:184::-;1332:6;1385:2;1373:9;1364:7;1360:23;1356:32;1353:52;;;1401:1;1398;1391:12;1353:52;-1:-1:-1;1424:16:1;;1262:184;-1:-1:-1;1262:184:1:o;1730:277::-;1797:6;1850:2;1838:9;1829:7;1825:23;1821:32;1818:52;;;1866:1;1863;1856:12;1818:52;1898:9;1892:16;1951:5;1944:13;1937:21;1930:5;1927:32;1917:60;;1973:1;1970;1963:12

Swarm Source

ipfs://8de303bf1169fce7abd9842a96174a68cc9945b30d1be1eadd306e472eb66cb8

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.