Skip to content

chore: document ED behaviour in add asset and saft#426

Merged
clearloop merged 2 commits intomainfrom
matt/enforce-existential-deposit
Oct 1, 2021
Merged

chore: document ED behaviour in add asset and saft#426
clearloop merged 2 commits intomainfrom
matt/enforce-existential-deposit

Conversation

@mattsse
Copy link
Contributor

@mattsse mattsse commented Sep 28, 2021

Changes

  • The question raised in Enforce existential deposit when minting PINT #414 can only happen if the caller account does not exist yet and the given nav is below ED, this is unlikely to happen, but if it does it is to the disadvantage of the caller.
  • The regular deposit call ensures that the pint amount is within a certain range which prevents the ED edge case entirely.

Tests


Issues

@mattsse mattsse requested a review from clearloop September 28, 2021 11:47
@mattsse mattsse added the needs review PR needs reviewing label Sep 28, 2021
Copy link
Contributor

@clearloop clearloop left a comment

Choose a reason for hiding this comment

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

Should we also add tests for these no-op situations?

@clearloop clearloop added approved PR approved to merge and removed needs review PR needs reviewing labels Sep 28, 2021
@mattsse
Copy link
Contributor Author

mattsse commented Sep 28, 2021

Should we also add tests for these no-op situations?

good point, will add some

Copy link
Contributor

@clearloop clearloop left a comment

Choose a reason for hiding this comment

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

docker build failed again, needs to keep on watching if it caused by our docker cache or the build image of paritytech

@clearloop clearloop merged commit 14a9a1d into main Oct 1, 2021
@clearloop clearloop deleted the matt/enforce-existential-deposit branch October 1, 2021 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved PR approved to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce existential deposit when minting PINT

2 participants