UnbuttonToken
The UnbuttonToken wraps elastic balance (rebasing) tokens like AMPL, Chai and AAVE's aTokens, to create a fixed balance representation.
The ratio of a user's balance to the total supply represents their share of the total deposit pool.
Initializes the token with the given parameters.
Mints the given amount of Unbutton tokens for the user. Transfers an equivalent value of underlying tokens from the user to the contract.
Mints the given amount of Unbutton tokens for
to
. Transfers an equivalent value of underlying tokens from the caller to the contract.Burns the given amount of Unbutton tokens from the caller. Transfers an equivalent value of underlying tokens from the contract to the caller.
Burns the given amount of Unbutton tokens from the caller. Transfers an equivalent value of underlying tokens from the contract to
to
.Burns all Unbutton tokens from the caller. Transfers an equivalent value of underlying tokens from the contract to the caller.
Burns all Unbutton tokens from the caller. Transfers an equivalent value of underlying tokens from the contract to
to
.Deposit the given number of underlying tokens from the caller to the contract. Mints an equivalent value of Unbutton tokens to the caller.
Deposit the given number of underlying tokens from the caller to the contract. Mints an equivalent value of Unbutton tokens to
to
.Withdraw the given number of underlying tokens from the contract. Transfers an equivalent value of Unbutton tokens from the caller to the contract.
Withdraw the given number of underlying tokens to
to
from the contract. Transfers an equivalent value of Unbutton tokens from the caller to the contract.Withdraw caller's entire balance of underlying tokens. Transfers an equivalent value of Unbutton tokens from the caller to the contract.
Withdraw caller's entire balance of underlying tokens for
to
. Transfers an equivalent value of Unbutton tokens from the caller to the contract.The total number of underlying tokens held by the contract.
Returns
owner
's balance in terms of the underlying token.Returns the equivalent value of Unbutton tokens for the given amount of underlying tokens.
Returns the equivalent value of Unbutton tokens for the given amount of underlying tokens.
Last modified 1yr ago