Skip to content

Commit

Permalink
Match BUY/SELL polarity to map to BID/ASK
Browse files Browse the repository at this point in the history
Closes #56
  • Loading branch information
alnoki committed Dec 20, 2022
1 parent 290d14d commit f5c968a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/move/econia/doc/incentives.md
Expand Up @@ -722,7 +722,7 @@ Caller is not Econia, but should be.
Buy direction flag, as defined in <code><a href="market.md#0xc0deb00c_market">market</a>.<b>move</b></code>.


<pre><code><b>const</b> <a href="incentives.md#0xc0deb00c_incentives_BUY">BUY</a>: bool = <b>true</b>;
<pre><code><b>const</b> <a href="incentives.md#0xc0deb00c_incentives_BUY">BUY</a>: bool = <b>false</b>;
</code></pre>


Expand Down Expand Up @@ -1070,7 +1070,7 @@ Number of fields in an <code><a href="incentives.md#0xc0deb00c_incentives_Integr
Sell direction flag, as defined in <code><a href="market.md#0xc0deb00c_market">market</a>.<b>move</b></code>.


<pre><code><b>const</b> <a href="incentives.md#0xc0deb00c_incentives_SELL">SELL</a>: bool = <b>false</b>;
<pre><code><b>const</b> <a href="incentives.md#0xc0deb00c_incentives_SELL">SELL</a>: bool = <b>true</b>;
</code></pre>


Expand Down
4 changes: 2 additions & 2 deletions src/move/econia/doc/market.md
Expand Up @@ -1066,7 +1066,7 @@ Flag for null value when null defined as 0.
Flag for buy direction.


<pre><code><b>const</b> <a href="market.md#0xc0deb00c_market_BUY">BUY</a>: bool = <b>true</b>;
<pre><code><b>const</b> <a href="market.md#0xc0deb00c_market_BUY">BUY</a>: bool = <b>false</b>;
</code></pre>


Expand All @@ -1076,7 +1076,7 @@ Flag for buy direction.
Flag for sell direction.


<pre><code><b>const</b> <a href="market.md#0xc0deb00c_market_SELL">SELL</a>: bool = <b>false</b>;
<pre><code><b>const</b> <a href="market.md#0xc0deb00c_market_SELL">SELL</a>: bool = <b>true</b>;
</code></pre>


Expand Down
4 changes: 2 additions & 2 deletions src/move/econia/sources/incentives.move
Expand Up @@ -453,7 +453,7 @@ module econia::incentives {
// Constants >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

/// Buy direction flag, as defined in `market.move`.
const BUY: bool = true;
const BUY: bool = false;
/// Index of fee share in vectorized representation of an
/// `IntegratorFeeStoreTierParameters`.
const FEE_SHARE_DIVISOR_INDEX: u64 = 0;
Expand All @@ -473,7 +473,7 @@ module econia::incentives {
/// Number of fields in an `IntegratorFeeStoreTierParameters`.
const N_TIER_FIELDS: u64 = 3;
/// Sell direction flag, as defined in `market.move`.
const SELL: bool = false;
const SELL: bool = true;
/// Index of tier activation fee in vectorized representation of an
/// `IntegratorFeeStoreTierParameters`.
const TIER_ACTIVATION_FEE_INDEX: u64 = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/move/econia/sources/market.move
Expand Up @@ -628,7 +628,7 @@ module econia::market {
/// Flag for bid side.
const BID: bool = false;
/// Flag for buy direction.
const BUY: bool = true;
const BUY: bool = false;
/// Flag for `MakerEvent.type` when order is cancelled.
const CANCEL: u8 = 0;
/// Flag for `MakerEvent.type` when order size is changed.
Expand Down Expand Up @@ -667,7 +667,7 @@ module econia::market {
/// Flag for post-or-abort order restriction.
const POST_OR_ABORT: u8 = 3;
/// Flag for sell direction.
const SELL: bool = false;
const SELL: bool = true;
/// Number of bits maker order counter is shifted in a market order
/// ID.
const SHIFT_COUNTER: u8 = 64;
Expand Down

0 comments on commit f5c968a

Please sign in to comment.