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

Feature/deferred credits abs fixes #3203

Merged
merged 14 commits into from
Nov 16, 2022

Conversation

sydhds
Copy link
Contributor

@sydhds sydhds commented Nov 3, 2022

  • document all added functions
  • try in sandbox /simulation/labnet
  • unit tests on the added/changed features
    • make tests compile
    • make tests pass
  • add logs allowing easy debugging in case the changes caused problems
  • if the API has changed, update the API specification

@sydhds sydhds marked this pull request as ready for review November 4, 2022 07:34
@sydhds
Copy link
Contributor Author

sydhds commented Nov 4, 2022

While reviewing & talking about deferred credits, some issues were spotted:

  • deferred credits are 'stored' as absolute values (and not as delta) so we need to ensure that the code is written with this in mind + some optim can be done

Roll sell unit test has also been modified in order to exercise the deferred credits absolute value store + check that deferred credits are reimbursed.

@sydhds sydhds requested review from damip and Eitu33 November 4, 2022 08:39
@damip
Copy link
Member

damip commented Nov 4, 2022

ActiveHistory::fetch_deferred_credits_after needs to be deleted

@sydhds
Copy link
Contributor Author

sydhds commented Nov 10, 2022

ActiveHistory::fetch_deferred_credits_after needs to be deleted

Done

@damip
Copy link
Member

damip commented Nov 11, 2022

LGTM, let's do the checklist :) @sydhds

Copy link
Member

@damip damip left a comment

Choose a reason for hiding this comment

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

Very good

@sydhds sydhds merged commit b516d48 into testnet_17 Nov 16, 2022
@sydhds sydhds deleted the feature/deferred_credits_abs_fixes branch November 16, 2022 12:14
@AurelienFT AurelienFT mentioned this pull request Nov 22, 2022
bors bot added a commit that referenced this pull request Nov 30, 2022
3181: Testnet 17 r=AurelienFT a=gterzian

This PR is a batch for testnet 17. These PRs should be merged before merging this one : 

- #3202 
- #3205
- #3162
- #3203
- #3232
- #3192
- #3229 
- #3221 
- #3219 
- #3210 
- #3191 
- #3173 
- massalabs/massa-sc-runtime#161
- massalabs/massa-sc-runtime#164
- #3253 
- #3249 
- #3238 

After merging this PR we should merge these before release testnet 17 : 
- massalabs/massa-as-sdk#49
- massalabs/massa-as-sdk#39

Co-authored-by: AurelienFT <[email protected]>
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.

2 participants