hats-finance / Euro-Dollar-0xa4ccd3b6daa763f729ad59eae75f9cbff7baf2cd

Audit competition repository for Euro-Dollar (0xa4ccd3b6daa763f729ad59eae75f9cbff7baf2cd)
https://hats.finance
MIT License
0 stars 0 forks source link

Prevent accidentally burning tokens #7

Open hats-bug-reporter[bot] opened 2 days ago

hats-bug-reporter[bot] commented 2 days ago

Github username: -- Twitter username: -- Submission hash (on-chain): 0x315dfb2fb8554c58ecec1d74ffae951070be39a601b3437de3771055dede0184 Severity: low

Description: Description\ Minting and burning tokens to address(0) prevention

Instances (14):

File: InvestToken.sol

124:         _mint(to, amount);

136:         _burn(from, amount);

161:         _burn(from, amount);

174:         _burn(from, amount);

175:         _mint(to, amount);

246:         _mint(receiver, shares);

281:         _mint(receiver, shares);

318:         _burn(owner, shares);

356:         _burn(owner, shares);
File: USDE.sol

101:         _mint(to, amount);

113:         _burn(from, amount);

138:         _burn(from, amount);

151:         _burn(from, amount);

152:         _mint(to, amount);
AndreiMVP commented 2 days ago

We'll assume backend handles burning / minting competently