Open hats-bug-reporter[bot] opened 2 weeks ago
Forgot to mention that low $ value per wei tokens might be problematic in bonding curve funding manager as well, since BancorFormula
has an upper computational limit
Generally upgradability should deal with the deposit caps between different orchestrators. Will leave for second opinion, but seems valid.
Github username: @0xfuje Twitter username: 0xfuje Submission hash (on-chain): 0x33b9aceacdd87f93fe9b7ebd8c2441bd15c25b69562c362f046e8edc94190837 Severity: medium
Description:
Impact
Funding manager's profitability is limited: it will quickly reach max supply and will be highly inefficient
Description
The rebasing funding manager's
DEPOSIT CAP
is set to100_000_000e18
& it'sMAX_SUPPLY
is set to1_000_000_000e18
. The problem with this fixed parameters is that there are tokens which will be practically uncompatible with it (most notably low $ value per wei tokens OR high decimal tokens), because the deposit cap and max supply will be reached very easily.Unsupported tokens
Here is a short list of a few tokens that might be problematic (this is just to name a few examples, not an all inclusive list)
Bittorent
eCash
Terra Classic
Shiba Inu
FLOKI
Bonk
Proof of Concept
FM_Rebasing_v1
is initialized with anorchestratorToken
ofBittorrent
.executeTxFromModule
call due to needing more funds than the deposit cap OR the orchestrator admin might have to empty the funding manager (wait for users to deposit to reach max_supply -> send -> repeat) multiple times to send enough funds to these modulesRecommendation
Consider to allow an option to set
maxSupply
anddepositCap
parameters in the initialization of rebasing funding manager, if it's not provided the current values can be used. Alternatively, consider to raise these parameters by1_000
: this would make sure only a very very small number of tokens incompatible.