Skip to content
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
3 changes: 2 additions & 1 deletion docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ Emitted by `set_boost` when a user sets their allocation percentage.
| Field | Rust Type | Description |
| :--- | :--- | :--- |
| `user` | `Address` | The user who set their boost allocation. |
| `allocation_pct` | `u32` | The allocation percentage (1-100) applied. |
| `old_allocation_pct` | `u32` | The previous allocation percentage (0 if user had no boost). |
| `allocation_pct` | `u32` | The new allocation percentage (1-100) applied. |
| `multiplier` | `u32` | The global multiplier in effect at the time of the call. |

### `mult_set` (boost)
Expand Down
2 changes: 1 addition & 1 deletion soroban/contracts/farming-pool/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ impl FarmingPool {
let multiplier = read_global_multiplier(&env);
env.events().publish(
(symbol_short!("boost"), symbol_short!("applied")),
(user.clone(), allocation_pct, multiplier),
(user.clone(), old_alloc, allocation_pct, multiplier),
);

record_boost_event(&env, &user, old_alloc, allocation_pct);
Expand Down