Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Adapter Module]: Implement Collateral Token Adapter #48

Open
5 tasks
njokuScript opened this issue Mar 15, 2024 · 0 comments
Open
5 tasks

[Adapter Module]: Implement Collateral Token Adapter #48

njokuScript opened this issue Mar 15, 2024 · 0 comments
Labels
adapter enhancement New feature or request

Comments

@njokuScript
Copy link
Member

njokuScript commented Mar 15, 2024

Description

Create a token adapter contract that facilitates the movement of collateral tokens in and out of the system. The adapter should interact directly with the Vault Engine Contracts to manage collateral balances on vaults.

Tasks

  • Design the collateral token adapter contract interface
  • Implement method for depositing and locking collateral tokens within the adapter. The locked collateral should be represented in the Vault module
  • Implement method for withdrawing locked collateral tokens from the adapter
  • Integrate the adapter with the Vault Module Contracts. The adapter should call the Vault module to create a representation of the collateral tokens and also remove the representation as needed.
  • Write tests to ensure the functionality of the collateral token adapter

NB: This has previously been implemented here: https://github.com/Descent-Collective/protocol-core/blob/module/adapter/contracts/adapter.sol#L13

@njokuScript njokuScript added enhancement New feature or request adapter labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapter enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant