-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fusdc liquidity pool borrow and repay facets (#10474)
refs: #10390 ## Description - Adds `borrower` and `repayer` facets to the `Liquidity Pool` - Track `outstandingLends: Amount` in state for `checkPoolBalance` invariant - Track `PoolMetrics` like cumulative borrows, repays, and fees ### Security Considerations Handles payment allocations, but is able to do so synchronously using a temporary seats provided by the callers. ### Scaling Considerations Makes a vstorage writes for each borrow and repay. ### Documentation Considerations Updates code comments for maintainers. ### Testing Considerations Tests use test-only methods on the createFacet to simulate fees from a borrow/repay sequence. Tests ensure `zcf.atomicRearrange()` in `.borrow()` and `.repay()` will not fail and trigger `zcf.shutdownWithFailure()`. ### Upgrade Considerations None, unreleased
- Loading branch information
Showing
12 changed files
with
848 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.