Skip to content

Commit

Permalink
Merge pull request #388 from vivian1912/master
Browse files Browse the repository at this point in the history
Update resource.md
  • Loading branch information
ethan1844 authored Oct 3, 2024
2 parents 3921f58 + 0445dbf commit e3bf5fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/mechanism-algorithm/resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,21 @@ Example (Using wallet-cli):
freezeBalanceV2 frozen_balance [ResourceCode:0 BANDWIDTH,1 ENERGY]
```

stake TRX to get energy, energy obtained = user's TRX staked amount / total amount of staked TRX in TRON * 150_000_000_000.
stake TRX to get energy, energy obtained = user's TRX staked amount / total amount of staked TRX in TRON * 180_000_000_000.

Example:

```text
If there are only two users, A stakes 2 TRX, B stakes 2 TRX
the energy they can get is:
A: 75_000_000_000 and energy_limit is 75_000_000_000
B: 75_000_000_000 and energy_limit is 75_000_000_000
A: 75_000_000_000 and energy_limit is 90_000_000_000
B: 75_000_000_000 and energy_limit is 90_000_000_000
when C stakes 1 TRX:
the energy they can get is:
A: 60_000_000_000 and energy_limit is 60_000_000_000
B: 60_000_000_000 and energy_limit is 60_000_000_000
C: 30_000_000_000 and energy_limit is 30_000_000_000
A: 60_000_000_000 and energy_limit is 72_000_000_000
B: 60_000_000_000 and energy_limit is 72_000_000_000
C: 30_000_000_000 and energy_limit is 36_000_000_000
```
#### Energy Consumption

Expand Down

0 comments on commit e3bf5fa

Please sign in to comment.