Agoric / agoric-sdk

monorepo for the Agoric Javascript smart contract platform
Apache License 2.0
327 stars 207 forks source link

feat: fusdc liquidity pool borrow and repay facets #10474

Closed 0xpatrickdev closed 3 days ago

0xpatrickdev commented 1 week ago

refs: #10390

Description

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

cloudflare-workers-and-pages[bot] commented 1 week ago

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3117eef
Status: ✅  Deploy successful!
Preview URL: https://a08a22b8.agoric-sdk.pages.dev
Branch Preview URL: https://pc-fusdc-advancer-with-lp.agoric-sdk.pages.dev

View logs