Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typos and payout clarification #107

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dev/TEAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -647,8 +647,8 @@ Global fields are fields that are common to all the transactions in the group. I
| 18 | PayoutsEnabled | bool | v11 | Whether block proposal payouts are enabled. |
| 19 | PayoutsGoOnlineFee | uint64 | v11 | The fee required in a keyreg transaction to make an account incentive eligible. |
| 20 | PayoutsPercent | uint64 | v11 | The percentage of transaction fees in a block that can be paid to the block proposer. |
| 21 | PayoutsMinBalance | uint64 | v11 | The minimum algo balance an account must have in the agreement round to receive block payouts in the proposal round. |
| 22 | PayoutsMaxBalance | uint64 | v11 | The maximum algo balance an account can have in the agreement round to receive block payouts in the proposal round. |
| 21 | PayoutsMinBalance | uint64 | v11 | The minimum balance an account must have in the agreement round to receive block payouts in the proposal round. |
| 22 | PayoutsMaxBalance | uint64 | v11 | The maximum balance an account can have in the agreement round to receive block payouts in the proposal round. |


**Asset Fields**
Expand Down
4 changes: 2 additions & 2 deletions dev/TEAL_opcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ Fields
| 18 | PayoutsEnabled | bool | v11 | Whether block proposal payouts are enabled. |
| 19 | PayoutsGoOnlineFee | uint64 | v11 | The fee required in a keyreg transaction to make an account incentive eligible. |
| 20 | PayoutsPercent | uint64 | v11 | The percentage of transaction fees in a block that can be paid to the block proposer. |
| 21 | PayoutsMinBalance | uint64 | v11 | The minimum algo balance an account must have in the agreement round to receive block payouts in the proposal round. |
| 22 | PayoutsMaxBalance | uint64 | v11 | The maximum algo balance an account can have in the agreement round to receive block payouts in the proposal round. |
| 21 | PayoutsMinBalance | uint64 | v11 | The minimum balance an account must have in the agreement round to receive block payouts in the proposal round. |
| 22 | PayoutsMaxBalance | uint64 | v11 | The maximum balance an account can have in the agreement round to receive block payouts in the proposal round. |


## gtxn
Expand Down
31 changes: 16 additions & 15 deletions dev/ledger.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ The block header contains the following components:
- The _proposer payout_ is the actual amount that is moved from the
$I_f$ to the proposer, and is stored in msgpack field `pp`. If the
proposer is not eligible, as described below, the _proposer payout_
must be 0. If the proposer is eligible, the proposer payout is
valid if it is less than or equal to the the current potential
payout, which is computed as the sum of the _bonus incentive_ and
half of the _fees collected_.
must be 0. The proposer payout must not exceed

- The sum of the _bonus incentive_ and half of the _fees
collected_.
- The fee sink balance minus 100,000 microAlgos.

- The block's _expired participation accounts_, which contains an
optional list of account addresses. These accounts' participation
Expand Down Expand Up @@ -463,7 +464,7 @@ requirements of the creator by 100,000*(1+`ExtraProgramPages`) microAlgos,
plus the [`GlobalStateSchema`Minimum Balance contribution][App Minimum Balance Changes].

Each application opted in to increases the minimum balance
requirements of the opting-in account by 100,000 microalgos plus the
requirements of the opting-in account by 100,000 microAlgos plus the
[`LocalStateSchema` Minimum Balance contribution][App Minimum Balance
Changes].

Expand Down Expand Up @@ -499,18 +500,18 @@ minimum balance requirement is decreased equivalently when an account
closes out or deletes an app.

When opting in to an application, there is a base minimum balance increase
of 100,000 microalgos. There is an additional minimum balance increase based on
of 100,000 microAlgos. There is an additional minimum balance increase based on
the `LocalStateSchema` for that application, described by following formula:

`28500 * schema.NumUint + 50000 * schema.NumByteSlice` microalgos.
`28500 * schema.NumUint + 50000 * schema.NumByteSlice` microAlgos.

When creating an application, there is a base minimum balance increase
of 100,000 microalgos. There is an additional minimum balance increase
of `100000 * ExtraProgramPages` microalgos. Finally, there is an
of 100,000 microAlgos. There is an additional minimum balance increase
of `100000 * ExtraProgramPages` microAlgos. Finally, there is an
additional minimum balance increase based on the `GlobalStateSchema`
for that application, described by the following formula:

`28500 * schema.NumUint + 50000 * schema.NumByteSlice` microalgos.
`28500 * schema.NumUint + 50000 * schema.NumByteSlice` microAlgos.

### Boxes

Expand Down Expand Up @@ -1069,7 +1070,7 @@ Each transaction is associated with some information about how it is
applied to the account state. This information is called ApplyData,
and contains the following fields:

- The closing amount, $\ClosingAmount$, which specifies how many microalgos
- The closing amount, $\ClosingAmount$, which specifies how many microAlgos
were transferred to the closing address, and is encoded as "ca" in
msgpack.

Expand All @@ -1081,7 +1082,7 @@ and contains the following fields:
transaction. There are three fields ("rs", "rr", and "rc" keys in msgpack
encoding), representing the amount of rewards distributed to the sender,
receiver, and closing addresses respectively. The fields have integer
values representing microalgos. If any of the accounts are the same
values representing microAlgos. If any of the accounts are the same
(e.g., the sender and recipient are the same), then that account received
the sum of the respective reward distributions (i.e., "rs" plus "rr");
in the reference implementation, one of these two fields will be zero
Expand Down Expand Up @@ -1357,9 +1358,9 @@ An asset freeze transaction has the following semantics:

When an asset transaction allocates space in an account for an asset,
whether by creation or opt-in, the sender's minimum balance
requirement is incremented by 100,000 microalgos. When the space is
requirement is incremented by 100,000 microAlgos. When the space is
deallocated, whether by asset destruction or asset-close-to, the balance
requirement of the sender is decremented by 100,000 microalgos.
requirement of the sender is decremented by 100,000 microAlgos.

## ApplicationCall Transaction Semantics

Expand Down Expand Up @@ -1523,7 +1524,7 @@ identifier $\GenesisID_B$, the following conditions must all hold:
- It must represent a transition between two valid account states.
- Either $\GenesisID = \GenesisID_B$ or $\GenesisID$ is the empty string.
- $\TxType$ is either "pay", "keyreg", "acfg", "axfer", "afrz",
"appl", or "hb".
"appl", "stpf", or "hb".
- There are no extra fields that do not correspond to $\TxType$.
- $0 \leq r_2 - r_1 \leq T_{\max}$.
- $r_1 \leq r \leq r_2$.
Expand Down
Loading