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
yieldTokenin units ofunderlyingTokens.Wrapping the supported
underlyingTokeninto the supportedyieldToken.Unwrapping the supported
yieldTokeninto 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