Skip to content

Commit

Permalink
PaludoX0 data for issue #223
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Sep 19, 2022
1 parent b6ee2b8 commit 67fff84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/PaludoX0-Q.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/distribution/TokenDistributor.sol#L352
uint128 fee = supply * args.feeBps / 1e4, better to be written as uint128 fee = (supply * args.feeBps) / 1e4; in order to give priority to moltiplication and avoid loosing roundings

https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/distribution/TokenDistributor.sol#L327
Since emergency functions can be disabled only, it would be better to disable for one or more party, not only for all. It could be that
some parties are still immature and emergency functions are still needed.

https://github.com/PartyDAO/party-contracts-c4/blob/3896577b8f0fa16cba129dc2867aba786b730c1b/contracts/distribution/TokenDistributor.sol#L379
There's no check that _storedBalances[balanceId] > amount, If not function revert with underflow error but it would be better to set an error/event message

0 comments on commit 67fff84

Please sign in to comment.