Submitted by petarP1998
Update of cred can be triggered by the cred creator. If there are already issued shares for users, and the cred creator decides to update the sellShareRoyalty_ this will lead users to pay up to 50% fee depending on the value. And users will be in situation that to withdraw their funds, they need to pay 50% to the cred creator and additionally some fee to the protocol.
We have the following situation:
For example, lets imagine that the current number of shares issued is 500 of max 999 and one of the users is owner of 5 shares. If we add this test to Cred.t.sol:
We will see that the sell price is around 1.53e17 which in the current price is equal to $420, this means that the 50% or $210 will be paid to the cred creator as fee, which will lead to significant lose of funds for share holders. If the number of shares that are issued the lose is growing.
The protocol should implement a mechanism where this type of updates, will be applied after some period. I will explain my idea in the below lines:
My proposal is to have two functions:
Access Control
ZaK3939 (Phi) confirmed and commented:
0xDjango (judge) decreased severity to Medium and commented:
MrPotatoMagic (warden) commented:
0xDjango (judge) commented:
