[CIP-1] V2.1.0 Software Upgrade Proposal
-
Summary
The v2.1.0 software upgrade for Carbon contains the following changes:
Improvements
- Allow multiple persistence services to write to the same pSQL database
- Upgrade cosmos-sdk to v0.45.1
- Restricted futures trading to be a bandwidth around the mark price - orders that will settle at a price outside this bandwidth are rejected instead of executed; this bandwidth can be configured on a per-market basis via edit market or
x/gov
- Implement stricter mark pricing - if a futures order book has less liquidity than
impact_size
on either side of the book, the index price is used directly as the mark price, without consideration of the quotes on the order book - Allow staked LP tokens to be unlocked when LP reward weights are adjusted such that the reward for that pool as a ratio of total rewards has dropped below a threshold percentage that is defined in the params store (default: 50%)
- Added transactions for editing bridge names and removing bridges
- Disallow withdrawals for tokens with missing or disabled bridges
- Change WS market stats endpoint to return all markets instead of requiring a single market name to be consistent with gRPC query
- Added gRPC query to get all
msg_type
- Added gRPC query to get all
tx
- Added gRPC query to get all
blocks
- Created index on pSQL
tx
table forhash
,block_height
,address
Bug Fixes
- Fix crash in candlesticks WS endpoint
- Fix WS not handling new market event
- Fix ADL module crashing due to incorrect initialization
- Fix open positions in pSQL not closing properly
- Fix misleading error message in update leverage tx
- Fix pSQL incorrect balance when staking / unstaking (resync is required to correct previous data)
- Fix default
appd
name and--chain-id
s - Initialize
x/upgrade
VersionMap properly
V2.1.0 Binary
Release Download: Link
Checksums:- amd64:
sha256:ce8cfbd7e4711ff0ac19ae9069a53af73aa1a1fe5322d3c2a4c763afa42b42ca
- arm64:
sha256:d2d3891dc9bf306e74492d69414cad6e9384be90e180f33048cb1020c5035b8c
Governance Proposal
Carbonscan: Proposal 201