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

Properly handle decimals when checking funding availability #2165

Merged
merged 1 commit into from
May 19, 2020

Conversation

rdig
Copy link
Member

@rdig rdig commented May 18, 2020

Description

This is a simple fix, that makes the funding availability check behave properly when verifying the available amount you can use to pay out a task.

The issue was that when we moved to use the getTokenDecimalsWithFallback util, we missed changing it here.

Kudos to @chmanie for suggesting the fix here 🎉

Changes

  • useDomainFundsCheck now properly handles token decimals

Resolves #2162

@rdig rdig self-assigned this May 18, 2020
@rdig rdig requested review from chmanie and ceolson01 May 18, 2020 12:48
Copy link
Contributor

@ceolson01 ceolson01 left a comment

Choose a reason for hiding this comment

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

Nice simple fix! Neat-o, guys 👏

@rdig rdig merged commit a978e04 into master May 19, 2020
@rdig rdig deleted the fix/2162-properly-check-funds-availability branch May 19, 2020 13:48
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.

Problem finalizing a task in a Colony with a token with 0 decimals
2 participants