Withdraw

Withdraw process sequence diagram

Withdraw process step-by-step:

  1. External user sends withdrawal request to the Vault via enjoyoors.xyz.

  2. The Vault emits a corresponding event.

  3. The Relayer reads the emitted event from Vault.

  4. The Relayer reaches consensus.

  5. The Relayer signs and transmits a message containing withdrawal details to the gigaCDP.

  6. The gigaCDP adds withdrawal request to the queue.

  7. The gigaCDP processes the queue in the next epoch and closes / updates a collateralized debt position (CDP).

  8. The gigaCDP aggregates CDPs to calculate actual and target circulating supply of gigaAssets.

  9. The gigaCDP emits corresponding event.

  10. The PMS reads the emitted event from gigaCDP.

  11. The PMS recalculates portfolio allocations to target protocols and AMM pools based on the new circulating supply of gigaAssets.

  12. The PMS decides on gigaAssets liquidity rebalancing base on new portfolio allocation details.

  13. The PMS emits corresponding event.

  14. The Relayer reads the emitted event from PMS.

  15. The Relayer reaches consensus.

  16. The Relayer signs and transmits a message containing rebalancing details to the gigaAsset Manager.

  17. The External user requests a claim voucher from the gigaCDP. The claim voucher allows External user to redeem his assets from the Vault.

  18. If the External user has debt External user will receive message from gigaCDP with claim rejection and debt details.

  19. The External user goes to AMM Pool and buys gigaAsset to repay the debt.

  20. The External user repays debt in gigaCDP.

  21. If the External user doesn't have debt he receives claim voucher from gigaCDP.

  22. The External user receives assets from Vault by using claim voucher.

Last updated