Ricardo Guilherme Schmidt
bb7bc3a6d7
add tests destroy tokens balance and supply check
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
22f02cb230
add rejecting controller tests
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
11bc73a42e
fix error in merge
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
6cf3528f01
add approve and call test
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
16d3feb5d9
add allowance tests
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
e69486197c
add transfer tests
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
86a889ab1c
add claimtokens test
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
18827999ec
add more transfer tests for different situations
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
c105703c8a
fix gas metering
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
3000e7614e
add test for updateValueAtNow when same block
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
0e98139632
pause and resume gas meterings
2023-09-26 02:47:46 -03:00
Ricardo Guilherme Schmidt
c64845eddc
fix overflow checks
2023-09-25 20:07:27 -03:00
Ricardo Guilherme Schmidt
3f95a3bcf9
make abstract and concrete versions
...
add gas reports
move event from abstract to concrete
lint
2023-09-25 12:54:24 -03:00
Ricardo Guilherme Schmidt
e715502da1
Check for reentrancy double spend on onTransfer ( #29 )
...
* chore: add missing trailing slash in remapping
This was not causing any compilation issues, but the solidity language
server gets confused by this and complains about incorrect import
statements otherwise.
* TokenController interactions after balance updates
This test demonstrates that all transfer methods are vulnerable to
callback reentrancy attacks if the controller of the `MiniMeToken` is
malicious.
---------
Co-authored-by: r4bbit <445106+0x-r4bbit@users.noreply.github.com>
2023-09-22 20:25:23 +02:00
Ricardo Guilherme Schmidt
9014aee8a2
set immutables and constants
...
Fixes vacp2p/minime#21
2023-09-15 09:37:53 -03:00
Ricardo Guilherme Schmidt
c8581cd22d
remove string error messages
2023-09-13 11:47:40 -03:00
Ricardo Guilherme Schmidt
2636a070b1
add gas snapshot before changes
2023-09-13 11:47:40 -03:00