Anchor Protocol
  • Home
  • Security
  • Protocol
    • Overview
    • Bonded Assets (bAssets)
      • Bonded Luna (bLuna)
      • Bonded ETH (bETH)
    • Money Market
      • Deposit Rate Subsidization
    • Loan Liquidation
    • Anchor Token (ANC)
    • Anchor Governance
      • Modify Collateral Attributes
      • Modify Market Parameters
      • Modify Liquidation Parameters
      • Modify ANC Parameters
      • Modify Governance Parameters
      • Modify Borrow Interest
      • Modify ANC Distribution
      • Community Grants
      • Text Proposal
  • User Guide
    • Interchain Transfers
    • WebApp
      • EARN
      • BORROW
      • bASSET [bLUNA]
      • bASSET [bETH]
      • GOVERN
        • ANC - UST LP Staking
        • Anchor Governance Staking
        • Claiming ANC Rewards
        • Creating and voting on proposals
  • EthAnchor
    • EthAnchor
    • EthAnchor Contracts
      • Deployed Contracts
      • Router
      • ConversionPool
      • ExchangeRateFeeder
    • Fees
  • Developers - Earn
    • Anchor Earn SDK
    • Example Usage
    • Appendix
  • xAnchor
    • xAnchor
    • xAnchor Contracts
    • xAnchor Bridge (EVM Chains)
    • xAnchor Terra-side Contracts
      • xAnchor Core
      • xAnchor Wormhole Bridge
      • Address Proxy
  • Developers - Terra
    • Anchor.js
    • AnchorCLI
  • Smart Contracts
    • Deployed Contracts
    • bLuna
      • Hub
      • Reward
      • Rewards Dispatcher
      • Validators Registry
      • Airdrop Registry
      • Tokens: bLuna and stLuna
    • bETH
      • Reward
      • Token
      • Converter
    • Money Market
      • Overseer
      • Market
      • Custody [bLUNA]
      • Custody [bETH]
      • Interest Model
      • Distribution Model
      • Oracle
    • Liquidation
      • Liquidation Contract
      • Liquidation Queue Contract
    • Anchor Token (ANC)
      • Gov
      • Staking
      • Community
      • Collector
      • Distributor
  • Developers - Ethereum [Legacy]
    • EthAnchor
    • EthAnchor Account Contract
    • EthAnchor API
      • Getting Market Information
      • Depositing Stablecoins
      • Redeeming Stablecoins
    • Fees
  • External Resources
    • Anchor WebApp
    • Anchor Protocol GitHub
    • Terra Blockchain
Powered by GitBook
On this page
  • Functions
  • deposit
  • deposit
  • redeem
  • redeem

Was this helpful?

  1. EthAnchor
  2. EthAnchor Contracts

ConversionPool

The ConversionPool contract enable deposits of non-UST Ethereum stablecoins. ConversionPool contracts are deployed separately per supported stablecoin type.

Non-UST Ethereum stablecoins that are deposited via ConversionPool contracts, which are swapped to UST and deposited via the Router.

Functions

deposit

Deposits the specified amount of stablecoins.

function deposit(uint256 _amount) external; 

Name

Type

Description

_amount

uint256

Amount of stablecoins to deposit

deposit

Deposits the specified amount of stablecoins.

Actual amount deposited may be smaller than _minAmountOut due to cross-chain transfer fees.

function deposit(uint256 _amount, uint256 _minAmountOut) external; 

Name

Type

Description

_amount

uint256

Amount of stablecoins to deposit

_minAmountOut

uint256

Minimum amount of wrapped UST to be depositing post-swap

redeem

Redeems (withdraws) the specified amount of aTerra tokens.

function redeem(uint256 _amount) external; 

Name

Type

Description

_amount

uint256

Amount of aTerra to redeem

redeem

Redeems the specified amount of aTerra tokens.

Logic for enforcing _minAmountOut for redeem is yet to be implemented. Please be noted that the specified minimum amount will not be enforced.

function redeem(uint256 _amount, uint256 _minAmountOut) external; 

Name

Type

Description

_amount

uint256

Amount of aTerra to redeem

_minAmountOut

uint256

Minimum amount of stablecoins to receive post-swap

PreviousRouterNextExchangeRateFeeder

Last updated 3 years ago

Was this helpful?