Tempus
Search…
TempusController
TempusController is the main entry point to the Tempus Protocol. It is used to trigger all user actions in the protocol, such as deposit, and redeem. It is also used to simplify the interface for users, especially those that want to carry out atomic transactions.
TempusController supports the following atomic transactions:
  • Deposit and provide liquidity
  • Deposit and fix yield
  • Complete exit and redeem

Deposit and provide liquidity

This atomic transaction is made for users that want to be liquidity providers. Action is depositing BackingToken or YieldBearingToken on behalf of the user to TempusPool and then providing liquidity to TempusAMM with freshly minted Principals and Yields.

Deposit and fix yield

This atomic transaction is made for users that don't want to be exposed to the risk of future yield by allowing them to swap their Yields for Principals at the market implied price. This action is depositing BackingToken or YieldBearingToken on behalf of the user to TempusPool, and then swapping all Yields for Principals via TempusAMM. This way, the user ends up with only Principals that will be redeemable for BackingToken at or after maturity.

Complete exit and redeem

This atomic transaction is made for users that provided liquidity and want to exit their position to YieldBearingToken or BackingToken. Action first exits TempusAMM LP position to Principals and Yields. After that, it combines with the remainder of the user's Principals and Yields and exits to BackingToken or YieldBearingToken.
Last modified 1mo ago