Functions

A contract which facilitates the exchange of synthetic assets for their underlying

Structs

Account

UpdateAccountParams

ExchangeCache

ExchangeState

UpdateAccountCache

UpdateAccountState

Functions

constructor

    function constructor() public;

initialize

    function initialize() external;

_onlyAdmin

    function _onlyAdmin() internal;

setCollateralSource

    function setCollateralSource() external;

setPause

    function setPause() external;

deposit

    function deposit(
        uint256 amount,
        address owner
    ) external;

Deposits tokens to be exchanged into an account.

Parameters:

withdraw

    function withdraw(
        uint256 amount,
        address recipient
    ) external;

Withdraws tokens from the caller's account that were previously deposited to be exchanged.

Parameters:

claim

    function claim(
        uint256 amount,
        address recipient
    ) external;

Claims exchanged tokens.

Parameters:

exchange

    function exchange(uint256 amount) external;

Exchanges amount underlying tokens for amount synthetic tokens staked in the system.

Parameters:

getUnexchangedBalance

    function getUnexchangedBalance(address owner) external returns (uint256);

Gets the unexchanged balance of an account.

Parameters:

Return Values:

getExchangedBalance

    function getExchangedBalance(address owner) external returns (uint256 exchangedBalance);

Gets the exchanged balance of an account, in units of debtToken.

Parameters:

Return Values:

getClaimableBalance

    function getClaimableBalance() external returns (uint256 claimableBalance);

_updateAccount

    function _updateAccount(struct TransmuterV2.UpdateAccountParams params) internal;

Updates an account.

Parameters:

_onlyWhitelisted

    function _onlyWhitelisted() internal;

Reverts if msg.sender is not in the whitelist. Checks the whitelist for msg.sender.

_normalizeUnderlyingTokensToDebt

    function _normalizeUnderlyingTokensToDebt(uint256 amount) internal returns (uint256);

Normalize amount of underlyingToken to a value which is comparable to units of the debt token.

Parameters:

Return Values:

_normalizeDebtTokensToUnderlying

    function _normalizeDebtTokensToUnderlying(uint256 amount) internal returns (uint256);

Normalize amount of the debt token to a value which is comparable to units of underlyingToken.

This operation will result in truncation of some of the least significant digits of amount. This truncation amount will be the least significant N digits where N is the difference in decimals between the debt token and the underlying token.

Parameters:

Return Values:

_getExchangedBalance

    function _getExchangedBalance() internal returns (uint256 exchangedBalance);

Last updated