Protocol operation

The Pool changes state on each interaction: Deposit, Withdraw, Borrow, and Repay.

It would do the following:

  • Calculate the interests of all accounts in the Pool since the last interaction

  • Write new account balances (deposit/borrow)

  • Update the given user balance (deposit/withdraw/borrow/repay)

  • Calculate the new APY to be in force till the next interaction

Last updated