-
Notifications
You must be signed in to change notification settings - Fork 18
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
Adds autoIncrease
flag to increase authorizations in topUp
#155
Conversation
Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6357329563 check. |
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.
LGTM! Just one comment: Why using the "toggle" approach instead of a setter? It's slightly less ergonomic, in my opinion, but interested to see what was your line of thinking.
function topUpNu(address stakingProvider) external; | ||
/// @notice Toggle auto authorization increase flag. If true then all amount | ||
/// in top-up will be added to already authorized applications. | ||
function toggleAutoAuthorizationIncrease(address stakingProvider) external; |
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.
function toggleAutoAuthorizationIncrease(address stakingProvider) external; | |
function toggleAutoIncrease(address stakingProvider) external; |
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'm not sure about that, I want names explicit as possible. If you sure it's better then I'll update
Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6864859193 check. |
not strong opinion: from code perspective - if you call this tx you want to change parameter/toggle, there is no other options that you can change except to opposite value. In the same case setter should fail when parameter is equal. |
ecefd5e
to
0e637b6
Compare
Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6864949782 check. |
The merge-base changed after approval.
0e637b6
to
9561989
Compare
Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6928617748 check. |
Co-authored-by: David Núñez <[email protected]>
9561989
to
624ead6
Compare
Solidity API documentation preview available in the artifacts of the https://github.com/threshold-network/solidity-contracts/actions/runs/6931780997 check. |
Based on #153
With flag set to true each
topUp
will increase authorization amount for all authorized app