Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Immediate deposit+withdrawal saturates deposit rate limit capacity

Aperta
#265 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@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.

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 depositCapacity to become greater than depositCapacityCap when freeing deposit capacity
Lingua principale
Cadence
Stelle
40
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di onflow/FlowALP

Tutte le issue di onflow/FlowALP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.