Skip to content

Commit

Permalink
Updated modes (#910)
Browse files Browse the repository at this point in the history
* Updated modes

+ corrections for cookbok
+ corrections for fees
+ added note about storage_fee
  • Loading branch information
memearchivarius authored Jan 22, 2025
1 parent 015cf97 commit 745ac60
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 180 deletions.
6 changes: 3 additions & 3 deletions docs/v3/documentation/smart-contracts/func/docs/stdlib.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ Returns the internal address of the current smart contract as a Slice with `MsgA
[int, cell] get_balance() asm "BALANCE";
```

Returns the remaining balance of the smart contract as `tuple` consisting of `int` (the remaining balance in nanotoncoins) and `cell` (a dictionary with 32-bit keys representing the balance of “extra currencies”). Note that RAW primitives such as `send_raw_message` do not update this field.
Returns the remaining balance of the smart contract as `tuple` consisting of `int` (the remaining balance in nanotoncoins) and `cell` (a dictionary with 32-bit keys representing the balance of “extra currencies”). Since this will occur in compute phase, balance of the contract will have incoming message `value` included, `storage_fee` and `import_fee` deducted.

:::tip
Since this will occur in compute phase, balance of the contract will have incoming message `value` included, `storage_fee` and `import_fee` deducted
:::warning
RAW primitives such as `send_raw_message` do not update this field.
:::

#### cur_lt
Expand Down
Loading

0 comments on commit 745ac60

Please sign in to comment.