Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Decreasing the amount of token required to consider token enabled #1230

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

alfetopito
Copy link
Contributor

Closes #1229

This issue as been previously addressed on #1147 when a token used uint128 for allowance.

This time, the token uses uint96.

This change reduces the minimum amount required to consider a token enabled.

Using the COMP token as example, that has 18 decimal places, the user now will have to deposit over 29 billion COMP before an allowance refresh is required:
screenshot_2020-07-15_14-42-05

To test, add COMP token (0xc00e94Cb662C3520282E6f5717214004A7f26888) to your mainnet wallet and enabled it.

On latest mesa.eth.link after refresh the page, the enable button will be shown again.
On this PR, it won't.

@alfetopito alfetopito self-assigned this Jul 15, 2020
@ghost
Copy link

ghost commented Jul 15, 2020

Travis automatic deployment:
https://pr1230--dexreact.review.gnosisdev.com

Copy link
Contributor

@Velenir Velenir left a comment

Choose a reason for hiding this comment

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

10 is ok, let's just not go even lower next time

@alfetopito alfetopito merged commit 8b7e593 into develop Jul 16, 2020
@alfetopito alfetopito deleted the 1229/allowance-max-value-enabled-token branch July 16, 2020 14:42
@alfetopito alfetopito mentioned this pull request Jul 16, 2020
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.

COMP token enable for deposit each time after log in
2 participants