git.delta.rocks / unique-network / refs/commits / f742d10602a1

difftreelog

doc: added comments about burning

Grigoriy Simonov2022-07-14parent: #c6eb237.patch.diff
in: master

1 file changed

modifiedpallets/refungible/src/lib.rsdiffbeforeafterboth
349 /// Burn RFT token pieces349 /// Burn RFT token pieces
350 ///350 ///
351 /// `burn` will decrease total amount of token pieces and amount owned by sender.351 /// `burn` will decrease total amount of token pieces and amount owned by sender.
352 /// `burn` can be called even if there are multiple owners of the RFT token.
352 /// If sender wouldn't have any pieces left after `burn` than she will stop being353 /// If sender wouldn't have any pieces left after `burn` than she will stop being
353 /// one of the owners of the token. If there is no account that owns any pieces of354 /// one of the owners of the token. If there is no account that owns any pieces of
354 /// the token than token will be burned too.355 /// the token than token will be burned too.
831832
832 /// Repartition RFT token.833 /// Repartition RFT token.
833 ///834 ///
834 /// Repartition will set token balance of the sender and total amount of token pieces.835 /// `repartition` will set token balance of the sender and total amount of token pieces.
835 /// Sender should own all of the token pieces.836 /// Sender should own all of the token pieces. `repartition' could be done even if some
837 /// token pieces were burned before.
836 ///838 ///
837 /// - `amount`: Total amount of token pieces that the token will have after `repartition`.839 /// - `amount`: Total amount of token pieces that the token will have after `repartition`.
838 pub fn repartition(840 pub fn repartition(