Skip to content

Commit

Permalink
docs: defining MVT
Browse files Browse the repository at this point in the history
  • Loading branch information
smol-ninja committed Oct 18, 2024
1 parent 4b80df7 commit 81ec511
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SablierFlow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ contract SablierFlow is
uint8 tokenDecimals = _streams[streamId].tokenDecimals;
uint256 balanceScaled = Helpers.scaleAmount({ amount: balance, decimals: tokenDecimals });
uint256 snapshotDebtScaled = _streams[streamId].snapshotDebtScaled;

// MVT represents Minimum Value Transferable, the smallest amount of token that can be transferred, which is
// always 1 in token's decimal.
uint256 oneMVTScaled = Helpers.scaleAmount({ amount: 1, decimals: tokenDecimals });

// If the total debt exceeds balance, return zero.
Expand Down

0 comments on commit 81ec511

Please sign in to comment.