TokenAdapter
The TokenAdapter
interface is used to specify adapters that interact with yield bearing tokens.
They currently serve 4 main purposes:
Providing a reliable price oracle for the price of the
yieldToken
in units ofunderlyingTokens
.Wrapping the supported
underlyingToken
into the supportedyieldToken
.Unwrapping the supported
yieldToken
into the supportedunderlyingToken
.
Users can pass a maximumLoss
parameter (denominated in basis-points) to the wrap()
and unwrap()
functions which will cause the transaction to revert if the amount of underlying tokens lost as a result of the action exceeds it.
Last updated