Skip to content

Commit

Permalink
chore: update AC codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Letang <me@jeremyletang.com>
  • Loading branch information
jeremyletang committed Aug 6, 2024
1 parent 602adc6 commit 836304d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
16 changes: 8 additions & 8 deletions protocol/0056-REWA-rewards_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -1061,14 +1061,14 @@ At the end of epoch 2, 10000 VEGA rewards should be distributed to the `ETHUSDT`

### Average Position

- If an eligible party opens a position at the beginning of the epoch, and the mark price does **not** change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-171" href="#0056-REWA-171">0056-REWA-171</a>).
- If an eligible party opens a position at the beginning of the epoch, and the price changes during the epoch, their average notional position reward metric should be set equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-172" href="#0056-REWA-172">0056-REWA-172</a>).
- If an eligible party held an open position at the start of the epoch, and the mark price does **not** change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-173" href="#0056-REWA-173">0056-REWA-173</a>).
- If an eligible party held an open position at the start of the epoch, and the mark price does change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-174" href="#0056-REWA-174">0056-REWA-174</a>).
- If an eligible party opens a position half way through the epoch, their average notional position reward metric should be half the notional value of the position at the end of the epoch (<a name="0056-REWA-175" href="#0056-REWA-175">0056-REWA-175</a>).
- If an eligible party held an open position at the start of the epoch and closes it half-way through the epoch, their average notional position reward metric should be equal to half the notional value of the position at the point they closed their position (<a name="0056-REWA-176" href="#0056-REWA-176">0056-REWA-176</a>).
- If an eligible party held positions in multiple in-scope markets, their average notional position reward metric should be the sum of their time-weighted-average-notional-position in each market (<a name="0056-REWA-177" href="#0056-REWA-177">0056-REWA-177</a>).
- If a `window_length>1` is specified in the recurring transfer, an eligible parties average notional position reward metric should be the average of their reward metrics over the last `window_length` epochs (<a name="0056-REWA-178" href="#0056-REWA-178">0056-REWA-178</a>).
- If an eligible party opens a position at the beginning of the epoch, and the mark price does **not** change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-192" href="#0056-REWA-192">0056-REWA-192</a>).
- If an eligible party opens a position at the beginning of the epoch, and the price changes during the epoch, their average notional position reward metric should be set equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-193" href="#0056-REWA-193">0056-REWA-193</a>).
- If an eligible party held an open position at the start of the epoch, and the mark price does **not** change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-194" href="#0056-REWA-194">0056-REWA-194</a>).
- If an eligible party held an open position at the start of the epoch, and the mark price does change during the epoch, their average notional position reward metric should be equal to the notional value of the position at the end of the epoch (<a name="0056-REWA-195" href="#0056-REWA-195">0056-REWA-195</a>).
- If an eligible party opens a position half way through the epoch, their average notional position reward metric should be half the notional value of the position at the end of the epoch (<a name="0056-REWA-196" href="#0056-REWA-196">0056-REWA-196</a>).
- If an eligible party held an open position at the start of the epoch and closes it half-way through the epoch, their average notional position reward metric should be equal to half the notional value of the position at the point they closed their position (<a name="0056-REWA-197" href="#0056-REWA-197">0056-REWA-197</a>).
- If an eligible party held positions in multiple in-scope markets, their average notional position reward metric should be the sum of their time-weighted-average-notional-position in each market (<a name="0056-REWA-198" href="#0056-REWA-198">0056-REWA-198</a>).
- If a `window_length>1` is specified in the recurring transfer, an eligible parties average notional position reward metric should be the average of their reward metrics over the last `window_length` epochs (<a name="0056-REWA-199" href="#0056-REWA-199">0056-REWA-199</a>).

### Relative returns

Expand Down
8 changes: 8 additions & 0 deletions protocol/features.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,14 @@
"0056-REWA-189",
"0056-REWA-190",
"0056-REWA-191",
"0056-REWA-192",
"0056-REWA-193",
"0056-REWA-194",
"0056-REWA-195",
"0056-REWA-196",
"0056-REWA-197",
"0056-REWA-198",
"0056-REWA-199",
"0085-RVST-015",
"0085-RVST-016",
"0085-RVST-017",
Expand Down

0 comments on commit 836304d

Please sign in to comment.