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

Simple vault#70 #206

Closed
wants to merge 6 commits into from
Closed

Simple vault#70 #206

wants to merge 6 commits into from

Conversation

LamsyA
Copy link
Contributor

@LamsyA LamsyA commented Jun 1, 2024

Issue(s):
add tests #70 for simple vault

Description

added test to the simple vault contract

Checklist

  • CI Verifier: Run ./scripts/cairo_programs_verifier.sh successfully
  • Contract Tests: Added tests to cover the changes

@LamsyA LamsyA closed this Jun 1, 2024
@LamsyA LamsyA reopened this Jun 1, 2024
@LamsyA LamsyA mentioned this pull request Jun 1, 2024
@LamsyA LamsyA force-pushed the simple_vault#70 branch from 665f23e to 363c850 Compare June 3, 2024 12:22
@LamsyA
Copy link
Contributor Author

LamsyA commented Jun 5, 2024

@julio4 kindly review this.

let balance_of_caller = dispatcher.user_balance_of(caller);

assert(balance_of_caller == 0.into(), 'withdraw failed');
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to generate another test where the contract generate some yield after the user deposit then withdraw his tokens + yield by burning his shares.

@julio4 julio4 mentioned this pull request Jun 13, 2024
2 tasks
@julio4 julio4 closed this Jun 15, 2024
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.

2 participants