Skip to content

Repayment contract #47

Open
@mpetrun5

Description

@mpetrun5

For protocols that the refunds will happen on the source chain (or any other chain), we have a need for a contract that will store the refunds (could be any token) and be able to send the funds to the destination liquidity pool contracts for repayment of our debt.

Implementation details

  • Implement a vault that will receive tokens from refunds - will need to be deployed to all source chains from which we solve
  • Enable adding routes with assigned bridging providers (for now reusing the implementation of CCTP from rebalancer would be enough)
    • bridging should only be allowed to other liquidity pools
    • briding provider should be an interface to a briding provider contract implementation (across, CCTP...) that is easily extendable for alternative bridging providers.
  • Add a function that enables anyone with a role to bridge the funds to a liquidity pool
    • it should be able to bridge funds to other liquidity pools, but not steal them in any way in case the role is stolen

Testing details

  • QA pass

Acceptance Criteria

  • we are able to repay debt for orders that are settled on the source chain securely

QA Details

Metadata

Metadata

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions