Skip to content
This repository was archived by the owner on Mar 11, 2024. It is now read-only.

Last before v2.0 #691

Merged
merged 8 commits into from
May 8, 2023
Merged

Last before v2.0 #691

merged 8 commits into from
May 8, 2023

Conversation

nop33
Copy link
Member

@nop33 nop33 commented May 4, 2023

Waiting for GH to fix its stuff so that I can push my last commit. Thus: WIP

@nop33 nop33 changed the title WIP: Last Last before v2.0 May 4, 2023
@nop33 nop33 requested a review from mvaivre May 4, 2023 17:00
Comment on lines +61 to +66
const minAlphAmountRequirement = DUST_AMOUNT * BigInt(tokens.length)
const minDiff = minAlphAmountRequirement - alphAmount
const totalAlphAmount = minDiff > 0 ? alphAmount + minDiff : alphAmount

return {
attoAlphAmount,
attoAlphAmount: totalAlphAmount.toString(),
Copy link
Member Author

Choose a reason for hiding this comment

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

@mvaivre I had to add this last commit. After the discussion here #682 I realized that we unnecessarily were forcing the user to send an additional 0.001 ALPH per token, no matter if they decide to send ALPH or not. I realized that the min requirement should be added only if the ALPH amount is not enough.

Sorry for breaking the code-freeze, but this was important to fix imo.

@nop33 nop33 merged commit 79ce82b into master May 8, 2023
@nop33 nop33 deleted the last branch May 8, 2023 07:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants