Skip to content

Commit

Permalink
feat: make locking behaviour consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Aug 29, 2023
1 parent f8bf1c2 commit 3b3efc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protocol/0083-RFPR-on_chain_referral_program.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ If a party is already a referee, and submits another `ApplyReferralCode` transac
The network must now track the cumulative notional volume of taker trades for each party in an epoch, call this value `party_epoch_notional_taker_volume`. Note, trades generated by auction uncrossing are not counted. Each time a eligible trade is generated, the network should increment a parties `party_epoch_notional_taker_volume` by the quantum notional volume of the trade. For a spot market, the quantum is the quantum of the asset used to express the price (i.e. the [quote_asset](./0080-SPOT-product_builtin_spot.md/#1-product-parameters)).

```pseudo
party_epoch_notional_taker_volume = party_epoch_notional_taker_volume + (trade_price * trade_size * settlement_asset_quantum)
party_epoch_notional_taker_volume = party_epoch_notional_taker_volume + (trade_price * trade_size / settlement_asset_quantum)
```

At the end of an epoch, the `party_epoch_notional_taker_volume` is stored by the network and each parties `party_epoch_notional_taker_volume` is reset to `0` ready for the next epoch.
Expand Down

0 comments on commit 3b3efc4

Please sign in to comment.