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

Add per-collateral limits to BobVault #52

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Conversation

k1rill-fedoseev
Copy link
Collaborator

After some usage of BobVault in production, necessity in few more limits appeared

Changelog

  • Add maxBalance per-collateral configuration, which describes max amount of backing collateral (without accounting for fees). buy and swap operations will revert if such limit is exceeded. Previously, an implicit constant limit of type(uint128).max was used for all collaterals.
  • Add maxInvested per-collateral configuration, which describes max amount of tokens that could be invested into the yield bearing protocol. This configuration only impacts calls to invest and restricts invested amount if necessary.

@akolotov akolotov merged commit 7d9f705 into develop Feb 7, 2023
@akolotov akolotov deleted the feat/vault-extra-limits branch February 7, 2023 19:05
akolotov added a commit that referenced this pull request Feb 23, 2023
This merge contains the following set of changes:
  - Add per-collateral limits (#52)
  - Update getAmountOut/getAmountIn estimation (#53)
  - Introduction of direct deposits (#49)
  - Support of KYCed accounts in limits management (#54)
  - Explicit storage slot to keep KycProvidersManager (#57)
  - Add verifiers for direct deposits (5bfd34d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants