-
Notifications
You must be signed in to change notification settings - Fork 43
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
Rc/v3.0.1.5 #972
base: rc/v3.0.1
Are you sure you want to change the base?
Rc/v3.0.1.5 #972
Conversation
All xMex fees to users
Coverage SummaryTotals
FilesExpand
|
Contract comparison - from 79c6016 to 78df98b
|
…okens Disable add liquidity for locked tokens
change undistributed rewards code
|
||
#[view(isAddLiqDisabled)] | ||
#[storage_mapper("addLiqDisabled")] | ||
fn add_liq_disabled(&self) -> SingleValueMapper<bool>; |
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.
Even though we want to have it disabled, we shouldn't name the storage in a negative manner. I would suggest add_liq_enabled -> and set it to false. It is more clear this way. Also, this way the default would still be disabled, if the storage is empty.
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.
Alright then. Currently working on something else, will do after.
second_token_id: TokenIdentifier, | ||
second_token_amount_desired: BigUint, | ||
second_token_amount_min: BigUint, | ||
args: CallAddLiqArgs<Self::Api>, |
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.
I know this is way cleaner at a SC level, but isn't it more difficult for the one calling/integrating this endpoint? As he needs to also encode the struct, instead of just providing each element.
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.
Nope, this isn't an endpoint, it's an internal function.
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.
Indeed, you are right.
additional tests for add liq disabled
No description provided.