Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Mar 3, 2024
1 parent 3ff8715 commit 30c0327
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# Andromeda Payment Conduit

This adapter acts as the `mate` and `operator` of the output conduit of the MIP21 RWA toolkit contracts. It controls the `gem` and sends this to a fixed `withdrawal` address, that is controlled by the `ward`s.

It ties the bookkeeping of withdrawals and repayments to a Centrifuge pool. For this, it mints a custom `Deposit ERC20`, that represents the amount of `gem` locked in the adapter. This ensures that `gem` (e.g. USDC) never leaves the adapter, except to either
* The `withdrawal` address
* One of the `InputConduit`s for repayments

## Withdrawal flow
To draw down new funds, DAI is swapped to `gem`, pushed to the adapter, and `Deposit ERC20` tokens are minted and transferred to the Centrifuge pool. Once the tokenization of the new assets is finished, the `Deposit ERC20` is burned and `gem` is transferred to the withdrawal address.

![Withdrawals](./assets/withdrawals.png)

## Repayment flow
![Repaymens](./assets/repayments.png)

## Emergency flows
![Emergency](./assets/fail-safes.png)

## License
This codebase is licensed under [GNU Lesser General Public License v3.0](https://github.com/centrifuge/liquidity-pools/blob/main/LICENSE).
Binary file added assets/fail-safes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/repayments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/withdrawals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30c0327

Please sign in to comment.