Skip to content

Commit

Permalink
Update standards/src_6/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Carstens <54727135+bitzoic@users.noreply.github.com>
  • Loading branch information
SwayStar123 and bitzoic authored Dec 12, 2023
1 parent 3e7535f commit 9d87ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standards/src_6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This function takes the `receiver` Identity and the SubId `sub_id` of the sub-va

This function MAY reject arbitrary assets based on implementation and MUST revert if unaccepted assets are forwarded.
MUST increase `managed_assets` by amount of deposited assets (through any means including `std::context::this_balance(ASSET_ID)` if applicable).
MUST mint a token representing the pro-rata share of the vault, with the AssetId of `sha256((asset, sub_id))`, a hash of the AssetId of the deposited asset, and the `sub_id` of the vault.
This function MUST mint an asset representing the pro-rata share of the vault, with the SubId of the `sha256((asset, sub_id))` digest, where `asset` is the AssetId of the deposited asset and the `sub_id` is the id of the vault.
This function MUST increase the [SRC-20](https://github.com/FuelLabs/sway-standards/tree/master/standards/src_20) total supply of the sub-vault's asset.
MUST increase `total_assets` by one if the the AssetId is minted for the first time.
This function MUST emit a `Deposit` log.
Expand Down

0 comments on commit 9d87ba9

Please sign in to comment.