-
Notifications
You must be signed in to change notification settings - Fork 49
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
Implement genesis liquidity protocol #545
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.
Initial review for now. I have yet to read over the test. Mainly concerned about algorithmic complexity for the genesis distribution.
}; | ||
total_sri_distributed += sri_amount; | ||
|
||
// we can't add 0 liquidity |
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.
Isn't there actually a minimum in the DEX pallet for the initial liq? 10 or 50k atomic units?
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.
yea but it is for liquidity tokens that the pallet handles itself. Only 0 check is being done on the actual coins being added.
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.
use primitives::*; | ||
|
||
/// LiquidityTokens Pallet as an instance of coins pallet. | ||
pub type LiquidityTokens<T> = coins_pallet::Pallet<T, coins_pallet::Instance1>; |
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.
Can we at least add a TODO to revisit this then please? It's not fundamentally unacceptable yet we need to be working towards robust solutions.
}; | ||
total_sri_distributed += sri_amount; | ||
|
||
// we can't add 0 liquidity |
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.
Processor CI hung, unrelated. |
No description provided.