Immediate deposit+withdrawal saturates deposit rate limit capacity
Aperta
@tim-barry ci sta già lavorando.
Dal 7/4/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Context
FlowALP has a deposit rate limit mechanism (implemented in https://github.com/onflow/FlowALP/pull/63), which limits the total and per-position deposits per hour.
- When a user makes a deposit, they are limited by this mechanism
- Each hour, a position can deposit at most $(0.05)(depositCapacityCap)$ (see code)
- When a user makes a withdrawal, this does not impact the available deposit capacity
A user can saturate all deposit capacity, without permanently depositing any funds, with the following workflow:
- Create 20 positions
- Deposit
(0.05)(depositCapacityCap)into each position, then withdraw all funds. (They can even do this in the same transaction.) - The deposit capacity for the deposited token is saturated, and no other users can deposit any tokens for the next hour
Proposed Solution
- Withdrawals should free deposit capacity
- Need to think about this carefully. Probably we should not allow the
depositCapacityto become greater thandepositCapacityCapwhen freeing deposit capacity
- Need to think about this carefully. Probably we should not allow the
- Lingua principale
- Cadence
- Stelle
- 40
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di onflow/FlowALP
-
Restrict public constructor of PositionSourceForse di nuovo libera @liobrasil l’ha presa 196 giorni fa e non c’è nessuna pull request aperta. Apertabug
-
Port MOET changes from #251 to mainForse di nuovo libera @nialexsan l’ha presa 205 giorni fa e non c’è nessuna pull request aperta. Aperta
-
Deposit Capacity AttacksForse già presa @mts1715 l’ha presa 211 giorni fa. Aperta
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100