Skip to content

Commit

Permalink
update code comment for buy/sell_on_amm
Browse files Browse the repository at this point in the history
mention pre-condition that revenue split is not active
  • Loading branch information
mnaamani committed Apr 5, 2024
1 parent 2906dda commit 288a6ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime-modules/project-token/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ decl_module! {
/// - user usable JOY balance must be enough for buying (+ existential deposit)
/// - slippage tolerance constraints respected if provided
/// - token total supply and amount value must be s.t. `eval` function doesn't overflow
/// - token supply can be modified (there is no active revenue split)
///
/// Postconditions
/// - `amount` CRT minted into account (which is created if necessary with existential deposit transferred to it)
Expand Down Expand Up @@ -977,6 +978,7 @@ decl_module! {
/// - slippage tolerance constraints respected if provided
/// - token total supply and amount value must be s.t. `eval` function doesn't overflow
/// - amm treasury account must have sufficient JOYs for the operation
/// - token supply can be modified (there is no active revenue split)
///
/// Postconditions
/// - `amount` burned from user account
Expand Down

0 comments on commit 288a6ed

Please sign in to comment.