-
Notifications
You must be signed in to change notification settings - Fork 94
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
Added tests for OCEX and LMP Pallet #895
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Existing unit tests of validator logic should not be ignored. The rest we can review, @zktony
@@ -163,9 +163,10 @@ impl<T: Config> LiquidityMiningCrowdSourcePallet<T::AccountId> for Pallet<T> { | |||
.to_u128() | |||
.ok_or(Error::<T>::ConversionError)? | |||
.saturated_into(); | |||
//FIXME: What are we doing with base_freed and quote_freed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When it should be discussed and fixed? in scope of this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be fixed in @Gauthamastro PR
&pool_config.pool_id, | ||
&lp, | ||
quote_amt_to_claim, | ||
Preservation::Expendable, | ||
)?; | ||
// TODO: Emit events | ||
// TODO: Emit events (Ask @frontend team about this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be fixed in @Gauthamastro PR
# Conflicts: # Cargo.lock # pallets/liquidity-mining/Cargo.toml # primitives/orderbook/src/lib.rs
Describe your changes
Added tests for OCEX and LP Pallet.