Skip to content

Commit

Permalink
refactor(perp): remove trading limits (NibiruChain#39)
Browse files Browse the repository at this point in the history
* refactor(perp): remove trading limits

* build: run clean and increment versions

* build: correct checksums

---------

Co-authored-by: Unique-Divine <[email protected]>
  • Loading branch information
k-yang and Unique-Divine authored Jun 14, 2023
1 parent ddc9156 commit edf82af
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified artifacts/bindings_perp.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions artifacts/checksums.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
bb1d89654a02451cc141bda5788b849f125a32c89f93847b740949f3762889bf bindings_perp.wasm
580f63815bb4446f4a14e4d092d125ee40891149db8ae0bb1010ed85aff26542 controller.wasm
047f7c12bc3a11e2ffad7f8ad968fcfd88344c321ae04899194606819aa77d02 bindings_perp.wasm
4139d17b201803fee784a4cb65516668cf5b14bc2ea64085518de056f6627dda controller.wasm
5a3b0fd9f1e393b6a527e1e3196f1e7da15c0c1b0cd98e84aaf738064147a013 incentives.wasm
54092bf5cc51ce34b5e03ac25ca9348f7d1d65fb4a9d4e2eb891bc104e0a70ea lockup.wasm
8f345654d267c8cbf1a6980bd7a5a00f87a24053666eba8bb2564548a32efd02 pricefeed.wasm
b255a21da290ae98f49b7dc0f7d58decfed3f233cc9e08a190c7d78881e2f201 shifter.wasm
18cde58ce0089e696b06b446bc7ec36cc125dea1eabd59235fb8caa4d88b6799 shifter.wasm
13 changes: 3 additions & 10 deletions artifacts/checksums_intermediate.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
c65dd8ba501207911ea5f37bb7354f120094c7c683caa7cc5529671cde1bc029 target/wasm32-unknown-unknown/release/whitelist.wasm
<<<<<<< HEAD
12ae4bf868441005355b7c253cff41b27f823a6227324ce892b107c0fe3c9f3f target/wasm32-unknown-unknown/release/bindings_perp.wasm
920dfe30edf0235fd0e89389e0d6d9bb8c06846b4af17dae231e9516431e3152 target/wasm32-unknown-unknown/release/controller.wasm
dcd590fef2b6181ee467c5fe8495060d8bcac3791cb42b27e2f93da770030a63 target/wasm32-unknown-unknown/release/incentives.wasm
d639a02138854e78e0b0edb37985b026bdda02be0c655be999ddd47aa581cb37 target/wasm32-unknown-unknown/release/lockup.wasm
404360df977067505c3ef36bf48279f99c49904de1a5f809beca6a8b29b01f2d target/wasm32-unknown-unknown/release/pricefeed.wasm
=======
e6f93267495f120ae8be89f106c6445420fee489178b610dfb2eaa9ed7021b5f target/wasm32-unknown-unknown/release/incentives.wasm
e0c3076f0b6837cfba03da5a9c0dcde60e8895aecfc34a49b01cdbf4d99fcf13 target/wasm32-unknown-unknown/release/lockup.wasm
51537ec24467a617341168ae3fd64c428b70773a3b7894be780c51ea61eabc10 target/wasm32-unknown-unknown/release/pricefeed.wasm
>>>>>>> main
a79907a1760a072596cb8ea0f4fe6c450f963ac0d50f328b9fa150b89d1734ab target/wasm32-unknown-unknown/release/bindings_perp.wasm
2f785c42e36b3f7953e71124e12fb21c7e93cbcfc2088ff1a9c3d15f824fb7dd target/wasm32-unknown-unknown/release/controller.wasm
e44bb38786ca44557c3392e389ca7fbe4aa4ec6db869f48156995b41d98b9468 target/wasm32-unknown-unknown/release/shifter.wasm
584f57e5a2f7ab579109cd27aa060b5db0d44350966382697f8825ca6d372be6 target/wasm32-unknown-unknown/release/shifter.wasm
Binary file modified artifacts/controller.wasm
Binary file not shown.
Binary file modified artifacts/shifter.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions contracts/bindings-perp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bindings-perp"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
homepage = "https://nibiru.fi"
repository = "https://github.com/NibiruChain/cw-nibiru"
Expand Down Expand Up @@ -30,4 +30,4 @@ nibiru-macro = { path = "../../packages/macro" }
[dev-dependencies]
cosmwasm-vm = "1.2.3"
serde_json = "1.0.95"
dummy = { path = "../../packages/dummy" }
dummy = { path = "../../packages/dummy" }
3 changes: 0 additions & 3 deletions contracts/bindings-perp/query_resp.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"total_short": "69",
"peg_mult": "420",
"config": {
"trade_limit_ratio": "420",
"fluct_limit_ratio": "420",
"max_oracle_spread_ratio": "420",
"maintenance_margin_ratio": "420",
"max_leverage": "420"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nibiru-bindings"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "Bindings for CosmWasm contracts to call into custom modules of Nibiru Chain"

Expand Down
3 changes: 0 additions & 3 deletions packages/bindings/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ pub struct Market {

#[cw_serde]
pub struct MarketConfig {
pub trade_limit_ratio: Decimal,
pub fluct_limit_ratio: Decimal,
pub max_oracle_spread_ratio: Decimal,
pub maintenance_margin_ratio: Decimal,
pub max_leverage: Decimal,
}
Expand Down
3 changes: 0 additions & 3 deletions packages/dummy/query_resp.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
"total_short": "69",
"peg_mult": "420",
"config": {
"trade_limit_ratio": "420",
"fluct_limit_ratio": "420",
"max_oracle_spread_ratio": "420",
"maintenance_margin_ratio": "420",
"max_leverage": "420"
},
Expand Down
3 changes: 0 additions & 3 deletions packages/dummy/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ pub fn all_markets_response() -> AllMarketsResponse {
total_short: dec_69(),
peg_mult: dec_420(),
config: MarketConfig {
trade_limit_ratio: dec_420(),
fluct_limit_ratio: dec_420(),
max_oracle_spread_ratio: dec_420(),
maintenance_margin_ratio: dec_420(),
max_leverage: dec_420(),
},
Expand Down

0 comments on commit edf82af

Please sign in to comment.