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

Reviewing #45

Closed
wants to merge 1 commit into from
Closed

Reviewing #45

wants to merge 1 commit into from

Conversation

VegetarianOrc
Copy link

No description provided.

@@ -92,6 +92,9 @@ impl<'info> AddLiquidity<'info> {
}
}

// might want to add some unit tests to prove the edge cases and the like, mostly to prevent breaking on accident later.
// would be eaiser to unit test if it took owned_lamports and supply as u64's instead of the structs
//could make this return std::result::Result<u64,UnstakeError> to avoid the `?` unwrap and re-wrap w/ Ok at return time
Copy link
Contributor

Choose a reason for hiding this comment

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

agreed, nice catch!

Comment on lines +95 to +96
// might want to add some unit tests to prove the edge cases and the like, mostly to prevent breaking on accident later.
// would be eaiser to unit test if it took owned_lamports and supply as u64's instead of the structs
Copy link
Contributor

Choose a reason for hiding this comment

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

oh yeah we should do this in rust instead of ts. Some proptests might be in order.

programs/unstake/src/rational.rs Show resolved Hide resolved
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