Skip to content

Commit 315f0b1

Browse files
committed
update interface doc for depositLimit
1 parent 33cdcc9 commit 315f0b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cadence/contracts/FlowALPModels.cdc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,9 @@ access(all) contract FlowALPModels {
10371037
/// (used when deposits are made)
10381038
access(EImplementation) fun consumeDepositCapacity(_ amount: UFix64, pid: UInt64)
10391039

1040-
/// Returns the per-deposit limit based on depositCapacity * depositLimitFraction
1041-
/// Rationale: cap per-deposit size to a fraction of the time-based
1042-
/// depositCapacity so a single large deposit cannot monopolize capacity.
1040+
/// Returns the per-deposit limit based on user deposit limit cap and available deposit capacity.
1041+
/// Rationale: cap per-deposit size to a fraction of the total depositCapacityCap
1042+
/// so a single large deposit cannot monopolize capacity.
10431043
/// Excess is queued and drained in chunks (see asyncUpdatePosition),
10441044
/// enabling fair throughput across many deposits in a block. The 5%
10451045
/// fraction is conservative and can be tuned by protocol parameters.

0 commit comments

Comments
 (0)