scrtlabs / snip20-reference-impl

This is a reference implementation of the SNIP-20 standard.
Apache License 2.0
55 stars 36 forks source link

check allowance expiration before increasing or decreasing it #17

Closed reuvenpo closed 3 years ago

reuvenpo commented 3 years ago

This PR implements only the bug fix from #16 .

The bug was that if allowance is increased or decreased after the previously provided allowance has expired, then the allowance didn't reset and the new allowance would be added or deducted from the expired allowance.