Skip to content

fix: enforce leverage cap in create_bond and top_up (issue #511)#565

Open
victor62-art wants to merge 1 commit into
CredenceOrg:mainfrom
victor62-art:fix/issue-511-enforce-leverage-cap
Open

fix: enforce leverage cap in create_bond and top_up (issue #511)#565
victor62-art wants to merge 1 commit into
CredenceOrg:mainfrom
victor62-art:fix/issue-511-enforce-leverage-cap

Conversation

@victor62-art

Copy link
Copy Markdown
  • Modify validate_leverage to accept Env and use ContractError::LeverageExceeded
  • Add leverage validation in create_bond after amount validation
  • Add leverage validation in top_up for the new total amount
  • Add missing module declarations in lib.rs

closes #511

…g#511)

- Modify validate_leverage to accept Env and use ContractError::LeverageExceeded
- Add leverage validation in create_bond after amount validation
- Add leverage validation in top_up for the new total amount
- Add missing module declarations in lib.rs
@drips-wave

drips-wave Bot commented Jun 24, 2026

Copy link
Copy Markdown

@victor62-art Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Enforce leverage cap inside create_bond: validate_leverage is defined but never called on the open-position path

1 participant