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

Protocol 2.5 - Borrow cap feature #82

Closed
The-3D opened this issue Apr 23, 2021 · 1 comment
Closed

Protocol 2.5 - Borrow cap feature #82

The-3D opened this issue Apr 23, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request protocol-v2.5

Comments

@The-3D
Copy link
Collaborator

The-3D commented Apr 23, 2021

One of the features needed for protocol 2.5 is the implementation of a borrow cap functionality. The borrow cap will allow to set a maximum amount (expressed in unit of the underlying asset) that can be borrowed out of a specific reserve. If the cap is reached, it will not be possible to borrow the asset anymore.

Implementation details

Gas considerations

See if it's possible to find a way to avoid calling the DebtToken.totalSupply() as it can be gas expensive

@The-3D The-3D added enhancement New feature or request protocol-v2.5 labels Apr 23, 2021
@dhadrien
Copy link
Contributor

#91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request protocol-v2.5
Projects
None yet
Development

No branches or pull requests

2 participants