ETH Price: $2,291.20 (-2.25%)

Contract

0x46b825C8Ff734D534e6E40b2fE2C21643eCBF493
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Redeem169531892023-04-01 8:43:11525 days ago1680338591IN
0x46b825C8...43eCBF493
0 ETH0.0032785120.99485197
Redeem161970712022-12-16 11:50:35630 days ago1671191435IN
0x46b825C8...43eCBF493
0 ETH0.0022363814.83056251
Redeem161823412022-12-14 10:29:23632 days ago1671013763IN
0x46b825C8...43eCBF493
0 ETH0.0018801512.46819507
Redeem161775732022-12-13 18:30:11633 days ago1670956211IN
0x46b825C8...43eCBF493
0 ETH0.0038364625.44345749
Redeem161682522022-12-12 11:12:59634 days ago1670843579IN
0x46b825C8...43eCBF493
0 ETH0.0018976412.58417499
Redeem161668522022-12-12 6:30:47635 days ago1670826647IN
0x46b825C8...43eCBF493
0 ETH0.0019003914.21561194
Redeem161663832022-12-12 4:56:35635 days ago1670820995IN
0x46b825C8...43eCBF493
0 ETH0.0024290616.10955011
Redeem161549282022-12-10 14:33:35636 days ago1670682815IN
0x46b825C8...43eCBF493
0 ETH0.0041983727.84366334
Redeem161549142022-12-10 14:30:47636 days ago1670682647IN
0x46b825C8...43eCBF493
0 ETH0.0047724231.65071004
Redeem161540402022-12-10 11:35:23636 days ago1670672123IN
0x46b825C8...43eCBF493
0 ETH0.0024464916.22513445
Redeem161515672022-12-10 3:18:35637 days ago1670642315IN
0x46b825C8...43eCBF493
0 ETH0.0022550514.95431614
Redeem161489342022-12-09 18:28:35637 days ago1670610515IN
0x46b825C8...43eCBF493
0 ETH0.0033175122
Redeem161475062022-12-09 13:41:59637 days ago1670593319IN
0x46b825C8...43eCBF493
0 ETH0.0033011821.9004239
Redeem161434792022-12-09 0:09:47638 days ago1670544587IN
0x46b825C8...43eCBF493
0 ETH0.0023613515.66052419
Redeem161337262022-12-07 15:29:11639 days ago1670426951IN
0x46b825C8...43eCBF493
0 ETH0.0024887716.50685684
Redeem161274102022-12-06 18:01:23640 days ago1670349683IN
0x46b825C8...43eCBF493
0 ETH0.0034279322.73405883
Redeem161228782022-12-06 2:51:11641 days ago1670295071IN
0x46b825C8...43eCBF493
0 ETH0.0020052615
Redeem161196272022-12-05 15:54:59641 days ago1670255699IN
0x46b825C8...43eCBF493
0 ETH0.0023978517.93675704
Redeem161167342022-12-05 6:12:47642 days ago1670220767IN
0x46b825C8...43eCBF493
0 ETH0.0020643913.68886347
Redeem161163682022-12-05 4:59:35642 days ago1670216375IN
0x46b825C8...43eCBF493
0 ETH0.0016586211
Redeem161163032022-12-05 4:46:35642 days ago1670215595IN
0x46b825C8...43eCBF493
0 ETH0.0020699513.72796816
Redeem161162722022-12-05 4:40:23642 days ago1670215223IN
0x46b825C8...43eCBF493
0 ETH0.0015945311.92763225
Redeem161162582022-12-05 4:37:35642 days ago1670215055IN
0x46b825C8...43eCBF493
0 ETH0.0018319512.14954524
Redeem161159352022-12-05 3:32:47642 days ago1670211167IN
0x46b825C8...43eCBF493
0 ETH0.001870312.40587403
Redeem161142332022-12-04 21:50:11642 days ago1670190611IN
0x46b825C8...43eCBF493
0 ETH0.0016627212.43774335
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:
Redemption

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 250 runs

Other Settings:
default evmVersion
File 1 of 7 : Redemption.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "../openzeppelin/Ownable.sol";
import "../openzeppelin/ERC20.sol";
import "../openzeppelin/ReentrancyGuard.sol";

contract Redemption is Ownable, ReentrancyGuard {

    event BdammRedemption(
        address indexed from,
        uint256 amount,
        uint256 redemptionFee
    );
    event RedemptionUSDCPriceUpdated(
        uint256 oldPrice,
        uint256 newPrice
    );

    ERC20 BDAMM;
    ERC20 DAMM;
    ERC20 USDC;

    address public treasury;
    uint256 public redemptionUSDCPrice;
    uint256 public totalRedemptions;
    uint256 public totalUSDCFees;

    constructor(
        ERC20 addressBDAMM,      // 0xfa372fF1547fa1a283B5112a4685F1358CE5574d
        ERC20 addressDAMM,       // 0xb3207935FF56120f3499e8aD08461Dd403bF16b8
        ERC20 addressUSDC,       // 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
        address addressOwner,    // multisig address
        address addressTreasury, 
        uint256 _redemptionUSDCPrice
    ) {
        BDAMM = addressBDAMM;
        DAMM = addressDAMM;
        USDC = addressUSDC;
        Ownable._transferOwnership(addressOwner);
        treasury = addressTreasury;
        _updateRedemptionUSDCPrice(_redemptionUSDCPrice);
    }

    function _updateRedemptionUSDCPrice(uint256 _redemptionUSDCPrice) internal {
        emit RedemptionUSDCPriceUpdated(redemptionUSDCPrice, _redemptionUSDCPrice);
        redemptionUSDCPrice = _redemptionUSDCPrice;
    }
    /* 
      amount is the amount of BDAMM to swap to DAMM 1:1 (18 decimals)
      redemptionFee is the amount of USDC to send with the redemption (6 decimals)
    */
    function redeem(uint256 amount, uint256 redemptionFee) nonReentrant external {
        address user = msg.sender;
        uint256 allowanceBDAMM = BDAMM.allowance(user, address(this));
        require(amount <= allowanceBDAMM, "User has not given swap contract spend approval for BDAMM");
        uint256 requiredRedemptionFee = amount * redemptionUSDCPrice;
        require(redemptionFee * 1e18 == requiredRedemptionFee, "Incorrect USDC redemption fee sent");
        uint256 allowanceUSDC = USDC.allowance(user, address(this));
        require(redemptionFee <= allowanceUSDC, "User has not given swap contract spend approval for USDC");
        uint256 selfBalanceDAMM = DAMM.balanceOf(address(this));
        require(amount <= selfBalanceDAMM, "Not enough DAMM liquidity");
        totalUSDCFees += redemptionFee;
        totalRedemptions += amount;
        emit BdammRedemption(user, amount, redemptionFee);
        require(BDAMM.transferFrom(user, treasury, amount), "Could not transfer user's BDAMM to treasury");
        require(USDC.transferFrom(user, treasury, redemptionFee), "Could not transfer user's USDC to treasury");
        require(DAMM.transfer(user, amount), "Swap contract could not transfer DAMM to user");
    }

    function withdrawDAMM() onlyOwner external {
        uint256 balance = DAMM.balanceOf(address(this));
        require(DAMM.transfer(this.owner(), balance), "Admin could not withdraw DAMM");
    }

    function sweepToken(ERC20 token) onlyOwner external {
      uint256 balance = token.balanceOf(address(this));
      require(token.transfer(this.owner(), balance), "Admin could not withdraw token");
    }

    function updateRedemptionUSDCPrice(uint256 _redemptionUSDCPrice) onlyOwner external {
      _updateRedemptionUSDCPrice(_redemptionUSDCPrice);
    }

    function renounceOwnership() override public virtual onlyOwner {
        revert("Owner cannot renounce ownership");
    }

    function transferOwnership(address newOwner) override public virtual onlyOwner {
        // unused:
        newOwner;
        revert("Owner cannot transfer ownership");
    }
}

File 2 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
  address private _owner;

  event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

  /**
   * @dev Initializes the contract setting the deployer as the initial owner.
   */
  constructor() {
    _transferOwnership(_msgSender());
  }

  /**
   * @dev Returns the address of the current owner.
   */
  function owner() public view virtual returns (address) {
    return _owner;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(owner() == _msgSender(), "Ownable: caller is not the owner");
    _;
  }

  /**
   * @dev Leaves the contract without owner. It will not be possible to call
   * `onlyOwner` functions anymore. Can only be called by the current owner.
   *
   * NOTE: Renouncing ownership will leave the contract without an owner,
   * thereby removing any functionality that is only available to the owner.
   */
  function renounceOwnership() public virtual onlyOwner {
    _transferOwnership(address(0));
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Can only be called by the current owner.
   */
  function transferOwnership(address newOwner) public virtual onlyOwner {
    require(newOwner != address(0), "Ownable: new owner is the zero address");
    _transferOwnership(newOwner);
  }

  /**
   * @dev Transfers ownership of the contract to a new account (`newOwner`).
   * Internal function without access restriction.
   */
  function _transferOwnership(address newOwner) internal virtual {
    address oldOwner = _owner;
    _owner = newOwner;
    emit OwnershipTransferred(oldOwner, newOwner);
  }
}

File 3 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./IERC20Metadata.sol";
import "./Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
  mapping(address => uint256) private _balances;

  mapping(address => mapping(address => uint256)) private _allowances;

  uint256 private _totalSupply;

  string private _name;
  string private _symbol;

  /**
   * @dev Sets the values for {name} and {symbol}.
   *
   * The default value of {decimals} is 18. To select a different value for
   * {decimals} you should overload it.
   *
   * All two of these values are immutable: they can only be set once during
   * construction.
   */
  constructor(
    string memory name_,
    string memory symbol_,
    uint256 totalSupply_,
    address account
  ) {
    _name = name_;
    _symbol = symbol_;
    _totalSupply = totalSupply_;
    _balances[account] = uint256(totalSupply_);
    emit Transfer(address(0), account, totalSupply_);
  }

  /**
   * @dev Returns the name of the token.
   */
  function name() public view virtual override returns (string memory) {
    return _name;
  }

  /**
   * @dev Returns the symbol of the token, usually a shorter version of the
   * name.
   */
  function symbol() public view virtual override returns (string memory) {
    return _symbol;
  }

  /**
   * @dev Returns the number of decimals used to get its user representation.
   * For example, if `decimals` equals `2`, a balance of `505` tokens should
   * be displayed to a user as `5.05` (`505 / 10 ** 2`).
   *
   * Tokens usually opt for a value of 18, imitating the relationship between
   * Ether and Wei. This is the value {ERC20} uses, unless this function is
   * overridden;
   *
   * NOTE: This information is only used for _display_ purposes: it in
   * no way affects any of the arithmetic of the contract, including
   * {IERC20-balanceOf} and {IERC20-transfer}.
   */
  function decimals() public view virtual override returns (uint8) {
    return 18;
  }

  /**
   * @dev See {IERC20-totalSupply}.
   */
  function totalSupply() public view virtual override returns (uint256) {
    return _totalSupply;
  }

  /**
   * @dev See {IERC20-balanceOf}.
   */
  function balanceOf(address account) public view virtual override returns (uint256) {
    return _balances[account];
  }

  /**
   * @dev See {IERC20-transfer}.
   *
   * Requirements:
   *
   * - `to` cannot be the zero address.
   * - the caller must have a balance of at least `amount`.
   */
  function transfer(address to, uint256 amount) public virtual override returns (bool) {
    address owner = _msgSender();
    _transfer(owner, to, amount);
    return true;
  }

  /**
   * @dev See {IERC20-allowance}.
   */
  function allowance(address owner, address spender) public view virtual override returns (uint256) {
    return _allowances[owner][spender];
  }

  /**
   * @dev See {IERC20-approve}.
   *
   * NOTE: If `amount` 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 amount) public virtual override returns (bool) {
    address owner = _msgSender();
    _approve(owner, spender, amount);
    return true;
  }

  /**
   * @dev See {IERC20-transferFrom}.
   *
   * Emits an {Approval} event indicating the updated allowance. This is not
   * required by the EIP. See the note at the beginning of {ERC20}.
   *
   * 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 `amount`.
   * - the caller must have allowance for ``from``'s tokens of at least
   * `amount`.
   */
  function transferFrom(
    address from,
    address to,
    uint256 amount
  ) public virtual override returns (bool) {
    address spender = _msgSender();
    _spendAllowance(from, spender, amount);
    _transfer(from, to, amount);
    return true;
  }

  /**
   * @dev Atomically increases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {IERC20-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   */
  function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
    address owner = _msgSender();
    _approve(owner, spender, allowance(owner, spender) + addedValue);
    return true;
  }

  /**
   * @dev Atomically decreases the allowance granted to `spender` by the caller.
   *
   * This is an alternative to {approve} that can be used as a mitigation for
   * problems described in {IERC20-approve}.
   *
   * Emits an {Approval} event indicating the updated allowance.
   *
   * Requirements:
   *
   * - `spender` cannot be the zero address.
   * - `spender` must have allowance for the caller of at least
   * `subtractedValue`.
   */
  function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
    address owner = _msgSender();
    uint256 currentAllowance = allowance(owner, spender);
    require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
    unchecked {
      _approve(owner, spender, currentAllowance - subtractedValue);
    }

    return true;
  }

  /**
   * @dev Moves `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.
   *
   * Requirements:
   *
   * - `from` cannot be the zero address.
   * - `to` cannot be the zero address.
   * - `from` must have a balance of at least `amount`.
   */
  function _transfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {
    require(from != address(0), "ERC20: transfer from the zero address");
    require(to != address(0), "ERC20: transfer to the zero address");

    _beforeTokenTransfer(from, to, amount);

    uint256 fromBalance = _balances[from];
    require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
    unchecked {
      _balances[from] = fromBalance - amount;
    }
    _balances[to] += amount;

    emit Transfer(from, to, amount);

    _afterTokenTransfer(from, to, amount);
  }

  /** @dev Creates `amount` tokens and assigns them to `account`, increasing
   * the total supply.
   *
   * Emits a {Transfer} event with `from` set to the zero address.
   *
   * Requirements:
   *
   * - `account` cannot be the zero address.
   */
  function _mint(address account, uint256 amount) internal virtual {
    require(account != address(0), "ERC20: mint to the zero address");

    _beforeTokenTransfer(address(0), account, amount);

    _totalSupply += amount;
    _balances[account] += amount;
    emit Transfer(address(0), account, amount);

    _afterTokenTransfer(address(0), account, amount);
  }

  /**
   * @dev Destroys `amount` tokens from `account`, reducing the
   * total supply.
   *
   * Emits a {Transfer} event with `to` set to the zero address.
   *
   * Requirements:
   *
   * - `account` cannot be the zero address.
   * - `account` must have at least `amount` tokens.
   */
  function _burn(address account, uint256 amount) internal virtual {
    require(account != address(0), "ERC20: burn from the zero address");

    _beforeTokenTransfer(account, address(0), amount);

    uint256 accountBalance = _balances[account];
    require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
    unchecked {
      _balances[account] = accountBalance - amount;
    }
    _totalSupply -= amount;

    emit Transfer(account, address(0), amount);

    _afterTokenTransfer(account, address(0), amount);
  }

  /**
   * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
   *
   * This internal function is equivalent to `approve`, and can be used to
   * e.g. set automatic allowances for certain subsystems, etc.
   *
   * Emits an {Approval} event.
   *
   * Requirements:
   *
   * - `owner` cannot be the zero address.
   * - `spender` cannot be the zero address.
   */
  function _approve(
    address owner,
    address spender,
    uint256 amount
  ) internal virtual {
    require(owner != address(0), "ERC20: approve from the zero address");
    require(spender != address(0), "ERC20: approve to the zero address");

    _allowances[owner][spender] = amount;
    emit Approval(owner, spender, amount);
  }

  /**
   * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
   *
   * Does not update the allowance amount in case of infinite allowance.
   * Revert if not enough allowance is available.
   *
   * Might emit an {Approval} event.
   */
  function _spendAllowance(
    address owner,
    address spender,
    uint256 amount
  ) internal virtual {
    uint256 currentAllowance = allowance(owner, spender);
    if (currentAllowance != type(uint256).max) {
      require(currentAllowance >= amount, "ERC20: insufficient allowance");
      unchecked {
        _approve(owner, spender, currentAllowance - amount);
      }
    }
  }

  /**
   * @dev Hook that is called before any transfer of tokens. This includes
   * minting and burning.
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
   * will be transferred to `to`.
   * - when `from` is zero, `amount` tokens will be minted for `to`.
   * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
   * - `from` and `to` are never both zero.
   *
   * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
   */
  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}

  /**
   * @dev Hook that is called after any transfer of tokens. This includes
   * minting and burning.
   *
   * Calling conditions:
   *
   * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
   * has been transferred to `to`.
   * - when `from` is zero, `amount` tokens have been minted for `to`.
   * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
   * - `from` and `to` are never both zero.
   *
   * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
   */
  function _afterTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual {}
}

File 4 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

    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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 7 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
  function _msgSender() internal view virtual returns (address) {
    return msg.sender;
  }

  function _msgData() internal view virtual returns (bytes calldata) {
    return msg.data;
  }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

File 7 of 7 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 250
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract ERC20","name":"addressBDAMM","type":"address"},{"internalType":"contract ERC20","name":"addressDAMM","type":"address"},{"internalType":"contract ERC20","name":"addressUSDC","type":"address"},{"internalType":"address","name":"addressOwner","type":"address"},{"internalType":"address","name":"addressTreasury","type":"address"},{"internalType":"uint256","name":"_redemptionUSDCPrice","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"redemptionFee","type":"uint256"}],"name":"BdammRedemption","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"RedemptionUSDCPriceUpdated","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"redemptionFee","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redemptionUSDCPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ERC20","name":"token","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalRedemptions","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUSDCFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_redemptionUSDCPrice","type":"uint256"}],"name":"updateRedemptionUSDCPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawDAMM","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620010ff380380620010ff833981016040819052620000349162000174565b6200003f33620000ca565b60018055600280546001600160a01b03199081166001600160a01b0389811691909117909255600380548216888416179055600480549091169186169190911790556200009883620000ca602090811b62000cd117901c565b600580546001600160a01b0319166001600160a01b038416179055620000be816200011a565b505050505050620001fc565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60065460408051918252602082018390527f9c672c9f53cab91e279ccc66bc5055930e38b33d1c84ae0cc8cf0e3a1cb20376910160405180910390a1600655565b6001600160a01b03811681146200017157600080fd5b50565b60008060008060008060c087890312156200018e57600080fd5b86516200019b816200015b565b6020880151909650620001ae816200015b565b6040880151909550620001c1816200015b565b6060880151909450620001d4816200015b565b6080880151909350620001e7816200015b565b8092505060a087015190509295509295509295565b610ef3806200020c6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a6146101255780637cbc23731461012d57806381064b251461014057806387169bd8146101495780638da5cb5b14610152578063f2fde38b1461016357600080fd5b8063080affa4146100ae5780631be19560146100b857806355c6df69146100cb57806359e6771d146100e757806361d027b3146100fa575b600080fd5b6100b6610176565b005b6100b66100c6366004610d84565b61035e565b6100d460065481565b6040519081526020015b60405180910390f35b6100b66100f5366004610da8565b610527565b60055461010d906001600160a01b031681565b6040516001600160a01b0390911681526020016100de565b6100b661055a565b6100b661013b366004610dc1565b6105cc565b6100d460075481565b6100d460085481565b6000546001600160a01b031661010d565b6100b6610171366004610d84565b610c5f565b6000546001600160a01b031633146101a95760405162461bcd60e51b81526004016101a090610de3565b60405180910390fd5b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156101f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102169190610e18565b9050600360009054906101000a90046001600160a01b03166001600160a01b031663a9059cbb306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e9190610e31565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156102eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030f9190610e4e565b61035b5760405162461bcd60e51b815260206004820152601d60248201527f41646d696e20636f756c64206e6f742077697468647261772044414d4d00000060448201526064016101a0565b50565b6000546001600160a01b031633146103885760405162461bcd60e51b81526004016101a090610de3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f39190610e18565b9050816001600160a01b031663a9059cbb306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104669190610e31565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156104b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d79190610e4e565b6105235760405162461bcd60e51b815260206004820152601e60248201527f41646d696e20636f756c64206e6f7420776974686472617720746f6b656e000060448201526064016101a0565b5050565b6000546001600160a01b031633146105515760405162461bcd60e51b81526004016101a090610de3565b61035b81610d2e565b6000546001600160a01b031633146105845760405162461bcd60e51b81526004016101a090610de3565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e65722063616e6e6f742072656e6f756e6365206f776e6572736869700060448201526064016101a0565b60026001540361061e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101a0565b6002600181905554604051636eb1769f60e11b81523360048201819052306024830152916000916001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015610677573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069b9190610e18565b9050808411156107135760405162461bcd60e51b815260206004820152603960248201527f5573657220686173206e6f7420676976656e207377617020636f6e747261637460448201527f207370656e6420617070726f76616c20666f72204244414d4d0000000000000060648201526084016101a0565b6000600654856107239190610e86565b90508061073885670de0b6b3a7640000610e86565b146107905760405162461bcd60e51b815260206004820152602260248201527f496e636f7272656374205553444320726564656d7074696f6e206665652073656044820152611b9d60f21b60648201526084016101a0565b60048054604051636eb1769f60e11b81526001600160a01b03868116938201939093523060248201526000929091169063dd62ed3e90604401602060405180830381865afa1580156107e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080a9190610e18565b9050808511156108825760405162461bcd60e51b815260206004820152603860248201527f5573657220686173206e6f7420676976656e207377617020636f6e747261637460448201527f207370656e6420617070726f76616c20666f722055534443000000000000000060648201526084016101a0565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef9190610e18565b9050808711156109415760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f7567682044414d4d206c69717569646974790000000000000060448201526064016101a0565b85600860008282546109539190610ea5565b92505081905550866007600082825461096c9190610ea5565b909155505060408051888152602081018890526001600160a01b038716917ff881854744b013d3410b97d9445b11ee090315c4a2eda6183feef5130d77aa48910160405180910390a26002546005546040516323b872dd60e01b81526001600160a01b0388811660048301529182166024820152604481018a90529116906323b872dd906064016020604051808303816000875af1158015610a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a369190610e4e565b610a965760405162461bcd60e51b815260206004820152602b60248201527f436f756c64206e6f74207472616e7366657220757365722773204244414d4d2060448201526a746f20747265617375727960a81b60648201526084016101a0565b600480546005546040516323b872dd60e01b81526001600160a01b03898116948201949094529083166024820152604481018990529116906323b872dd906064016020604051808303816000875af1158015610af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1a9190610e4e565b610b795760405162461bcd60e51b815260206004820152602a60248201527f436f756c64206e6f74207472616e7366657220757365722773205553444320746044820152696f20747265617375727960b01b60648201526084016101a0565b60035460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018a90529091169063a9059cbb906044016020604051808303816000875af1158015610bcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf09190610e4e565b610c525760405162461bcd60e51b815260206004820152602d60248201527f5377617020636f6e747261637420636f756c64206e6f74207472616e7366657260448201526c102220a6a6903a37903ab9b2b960991b60648201526084016101a0565b5050600180555050505050565b6000546001600160a01b03163314610c895760405162461bcd60e51b81526004016101a090610de3565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e65722063616e6e6f74207472616e73666572206f776e6572736869700060448201526064016101a0565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60065460408051918252602082018390527f9c672c9f53cab91e279ccc66bc5055930e38b33d1c84ae0cc8cf0e3a1cb20376910160405180910390a1600655565b6001600160a01b038116811461035b57600080fd5b600060208284031215610d9657600080fd5b8135610da181610d6f565b9392505050565b600060208284031215610dba57600080fd5b5035919050565b60008060408385031215610dd457600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610e2a57600080fd5b5051919050565b600060208284031215610e4357600080fd5b8151610da181610d6f565b600060208284031215610e6057600080fd5b81518015158114610da157600080fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610ea057610ea0610e70565b500290565b60008219821115610eb857610eb8610e70565b50019056fea2646970667358221220bf49514cf6d8cfd71604eb22623bddcede566803d6ae541a6e5e046193b4faac64736f6c634300080d0033000000000000000000000000fa372ff1547fa1a283b5112a4685f1358ce5574d000000000000000000000000b3207935ff56120f3499e8ad08461dd403bf16b8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000ac0112a1696050e64e6dd52a7bc783a8a4dcc534000000000000000000000000cf9a82d1132cd88607ea7f98e5fa67c3872550ce00000000000000000000000000000000000000000000000000000000000493e0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100a95760003560e01c8063715018a611610071578063715018a6146101255780637cbc23731461012d57806381064b251461014057806387169bd8146101495780638da5cb5b14610152578063f2fde38b1461016357600080fd5b8063080affa4146100ae5780631be19560146100b857806355c6df69146100cb57806359e6771d146100e757806361d027b3146100fa575b600080fd5b6100b6610176565b005b6100b66100c6366004610d84565b61035e565b6100d460065481565b6040519081526020015b60405180910390f35b6100b66100f5366004610da8565b610527565b60055461010d906001600160a01b031681565b6040516001600160a01b0390911681526020016100de565b6100b661055a565b6100b661013b366004610dc1565b6105cc565b6100d460075481565b6100d460085481565b6000546001600160a01b031661010d565b6100b6610171366004610d84565b610c5f565b6000546001600160a01b031633146101a95760405162461bcd60e51b81526004016101a090610de3565b60405180910390fd5b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156101f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102169190610e18565b9050600360009054906101000a90046001600160a01b03166001600160a01b031663a9059cbb306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561027a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029e9190610e31565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156102eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061030f9190610e4e565b61035b5760405162461bcd60e51b815260206004820152601d60248201527f41646d696e20636f756c64206e6f742077697468647261772044414d4d00000060448201526064016101a0565b50565b6000546001600160a01b031633146103885760405162461bcd60e51b81526004016101a090610de3565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa1580156103cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103f39190610e18565b9050816001600160a01b031663a9059cbb306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610442573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104669190610e31565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018490526044016020604051808303816000875af11580156104b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104d79190610e4e565b6105235760405162461bcd60e51b815260206004820152601e60248201527f41646d696e20636f756c64206e6f7420776974686472617720746f6b656e000060448201526064016101a0565b5050565b6000546001600160a01b031633146105515760405162461bcd60e51b81526004016101a090610de3565b61035b81610d2e565b6000546001600160a01b031633146105845760405162461bcd60e51b81526004016101a090610de3565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e65722063616e6e6f742072656e6f756e6365206f776e6572736869700060448201526064016101a0565b60026001540361061e5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101a0565b6002600181905554604051636eb1769f60e11b81523360048201819052306024830152916000916001600160a01b039091169063dd62ed3e90604401602060405180830381865afa158015610677573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061069b9190610e18565b9050808411156107135760405162461bcd60e51b815260206004820152603960248201527f5573657220686173206e6f7420676976656e207377617020636f6e747261637460448201527f207370656e6420617070726f76616c20666f72204244414d4d0000000000000060648201526084016101a0565b6000600654856107239190610e86565b90508061073885670de0b6b3a7640000610e86565b146107905760405162461bcd60e51b815260206004820152602260248201527f496e636f7272656374205553444320726564656d7074696f6e206665652073656044820152611b9d60f21b60648201526084016101a0565b60048054604051636eb1769f60e11b81526001600160a01b03868116938201939093523060248201526000929091169063dd62ed3e90604401602060405180830381865afa1580156107e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061080a9190610e18565b9050808511156108825760405162461bcd60e51b815260206004820152603860248201527f5573657220686173206e6f7420676976656e207377617020636f6e747261637460448201527f207370656e6420617070726f76616c20666f722055534443000000000000000060648201526084016101a0565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef9190610e18565b9050808711156109415760405162461bcd60e51b815260206004820152601960248201527f4e6f7420656e6f7567682044414d4d206c69717569646974790000000000000060448201526064016101a0565b85600860008282546109539190610ea5565b92505081905550866007600082825461096c9190610ea5565b909155505060408051888152602081018890526001600160a01b038716917ff881854744b013d3410b97d9445b11ee090315c4a2eda6183feef5130d77aa48910160405180910390a26002546005546040516323b872dd60e01b81526001600160a01b0388811660048301529182166024820152604481018a90529116906323b872dd906064016020604051808303816000875af1158015610a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a369190610e4e565b610a965760405162461bcd60e51b815260206004820152602b60248201527f436f756c64206e6f74207472616e7366657220757365722773204244414d4d2060448201526a746f20747265617375727960a81b60648201526084016101a0565b600480546005546040516323b872dd60e01b81526001600160a01b03898116948201949094529083166024820152604481018990529116906323b872dd906064016020604051808303816000875af1158015610af6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1a9190610e4e565b610b795760405162461bcd60e51b815260206004820152602a60248201527f436f756c64206e6f74207472616e7366657220757365722773205553444320746044820152696f20747265617375727960b01b60648201526084016101a0565b60035460405163a9059cbb60e01b81526001600160a01b038781166004830152602482018a90529091169063a9059cbb906044016020604051808303816000875af1158015610bcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf09190610e4e565b610c525760405162461bcd60e51b815260206004820152602d60248201527f5377617020636f6e747261637420636f756c64206e6f74207472616e7366657260448201526c102220a6a6903a37903ab9b2b960991b60648201526084016101a0565b5050600180555050505050565b6000546001600160a01b03163314610c895760405162461bcd60e51b81526004016101a090610de3565b60405162461bcd60e51b815260206004820152601f60248201527f4f776e65722063616e6e6f74207472616e73666572206f776e6572736869700060448201526064016101a0565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60065460408051918252602082018390527f9c672c9f53cab91e279ccc66bc5055930e38b33d1c84ae0cc8cf0e3a1cb20376910160405180910390a1600655565b6001600160a01b038116811461035b57600080fd5b600060208284031215610d9657600080fd5b8135610da181610d6f565b9392505050565b600060208284031215610dba57600080fd5b5035919050565b60008060408385031215610dd457600080fd5b50508035926020909101359150565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215610e2a57600080fd5b5051919050565b600060208284031215610e4357600080fd5b8151610da181610d6f565b600060208284031215610e6057600080fd5b81518015158114610da157600080fd5b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610ea057610ea0610e70565b500290565b60008219821115610eb857610eb8610e70565b50019056fea2646970667358221220bf49514cf6d8cfd71604eb22623bddcede566803d6ae541a6e5e046193b4faac64736f6c634300080d0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000fa372ff1547fa1a283b5112a4685f1358ce5574d000000000000000000000000b3207935ff56120f3499e8ad08461dd403bf16b8000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000ac0112a1696050e64e6dd52a7bc783a8a4dcc534000000000000000000000000cf9a82d1132cd88607ea7f98e5fa67c3872550ce00000000000000000000000000000000000000000000000000000000000493e0

-----Decoded View---------------
Arg [0] : addressBDAMM (address): 0xfa372fF1547fa1a283B5112a4685F1358CE5574d
Arg [1] : addressDAMM (address): 0xb3207935FF56120f3499e8aD08461Dd403bF16b8
Arg [2] : addressUSDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [3] : addressOwner (address): 0xaC0112A1696050e64E6DD52a7Bc783a8A4DCC534
Arg [4] : addressTreasury (address): 0xCF9A82d1132Cd88607Ea7f98E5fa67C3872550Ce
Arg [5] : _redemptionUSDCPrice (uint256): 300000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 000000000000000000000000fa372ff1547fa1a283b5112a4685f1358ce5574d
Arg [1] : 000000000000000000000000b3207935ff56120f3499e8ad08461dd403bf16b8
Arg [2] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [3] : 000000000000000000000000ac0112a1696050e64e6dd52a7bc783a8a4dcc534
Arg [4] : 000000000000000000000000cf9a82d1132cd88607ea7f98e5fa67c3872550ce
Arg [5] : 00000000000000000000000000000000000000000000000000000000000493e0


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.