Commit Graph

3 Commits

Author SHA1 Message Date
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 b899e5a8ec Make MiniMe implement OZ ERC20
Fixes vacp2p/minime#4
2023-09-14 11:46:00 -03:00
r4bbit 4d63c8448a
refactor: migrate codebase to foundry-template (#8)
Closes #3
2023-09-12 16:21:51 +02:00