Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 0064-VALP-validator_performance_based_rewards.md #1795

Closed
wants to merge 238 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
238 commits
Select commit Hold shift + click to select a range
c4f9ddc
feat: Add new cases, mostly around eth changes during outages. A few …
jgsbennett Mar 9, 2023
74dc927
chore: Linting fixes.
jgsbennett Mar 9, 2023
6978495
Merge branch 'master' of github.com:vegaprotocol/specs-internal into …
jgsbennett Mar 15, 2023
c2012ab
Merge branch 'master' of github.com:vegaprotocol/specs-internal into …
jgsbennett Mar 16, 2023
e394bb7
fix: More linting issues.
jgsbennett Mar 17, 2023
35c6743
Merge remote-tracking branch 'origin/master' into eth_changes_during_…
jgsbennett Mar 17, 2023
f1c7561
fix: spelling and AC code lint errors
gordsport Mar 17, 2023
af389ac
Merge branch 'master' into eth_changes_during_outages
gordsport Mar 17, 2023
1483194
fix: spelling
gordsport Mar 17, 2023
586006b
Merge branch 'eth_changes_during_outages' of github.com:vegaprotocol/…
gordsport Mar 17, 2023
05d0b70
Merge branch 'master' into eth_changes_during_outages
gordsport Mar 20, 2023
ad1e7dc
Merge branch 'master' into eth_changes_during_outages
jgsbennett Mar 20, 2023
eb644ee
feat: Clarifying fees paid (or not paid) by post-only orders (#1635)
TomMcL Mar 21, 2023
f00e4d0
Merge branch 'master' into eth_changes_during_outages
jgsbennett Mar 21, 2023
c128f85
Merge pull request #1615 from vegaprotocol/eth_changes_during_outages
jgsbennett Mar 22, 2023
eb00a64
chore: remove invalid and unimplemented use cases
radoslaw-szpiech Mar 22, 2023
0100836
Merge pull request #1636 from vegaprotocol/chore/remove-invalid-acs
radoslaw-szpiech Mar 22, 2023
c682173
refactor: floor slippage
witgaw Mar 23, 2023
896351f
Merge pull request #1638 from vegaprotocol/floor-slippage
witgaw Mar 23, 2023
a36839b
User interface: add Post only and Reduce only (#1640)
campbellssource Mar 29, 2023
485f667
Clarify rewards if multisig contains a key it should not (#1643)
davidsiska-vega Mar 29, 2023
92d7f54
feat: update FOK MO reduce-only
Jiajia-Cui Mar 30, 2023
f805037
Merge pull request #1647 from vegaprotocol/FOK_MO
Jiajia-Cui Mar 30, 2023
7282d92
fix: Add some more cancel order ACs.
jgsbennett Apr 5, 2023
f3d59e1
Update protocol/0033-OCAN-cancel_orders.md
jgsbennett Apr 5, 2023
defbade
Merge pull request #1652 from vegaprotocol/cancel_partial_active
jgsbennett Apr 5, 2023
5894d98
feat: Add a test for checking performance scores when checkpoint rest…
jgsbennett Apr 5, 2023
5fb5df9
feat: Add a test for checking performance scores when checkpoint rest…
jgsbennett Apr 5, 2023
ecb7232
Update 0069-VCBS-validators_chosen_by_stake.md (#1653)
Vegaklaus Apr 6, 2023
5324a72
Amend price monitoring ACs (#1660)
witgaw Apr 14, 2023
f7aed68
feat: update datanode spec with functionality to rollback node and fu…
ettec Apr 17, 2023
7b972f0
spec: draft for time-based mempool pruning (#1645)
EVODelavega Apr 17, 2023
1befb9b
re-word ac
campbellssource Apr 18, 2023
a9ac335
chore: Add decision notes template (#1658)
gordsport Apr 18, 2023
dacb6e9
feat: update for distributing remainder of liq fee
cdummett Apr 12, 2023
c49ee26
fix: correct AC
cdummett Apr 12, 2023
5067dcf
refactor: address feedback
cdummett Apr 13, 2023
026748a
Merge pull request #1655 from vegaprotocol/feat/liq_fee_distribution
cdummett Apr 19, 2023
72fed21
add spec for current collateral
mattrussell36 Apr 7, 2023
a7f36d6
clarify total margin available
mattrussell36 Apr 11, 2023
58a454c
Update user-interface/7001-COLL-collateral.md
mattrussell36 Apr 11, 2023
85dc06d
Update user-interface/7001-COLL-collateral.md
mattrussell36 Apr 11, 2023
416ec89
Update user-interface/7001-COLL-collateral.md
mattrussell36 Apr 11, 2023
7d44016
Update user-interface/7001-COLL-collateral.md
mattrussell36 Apr 11, 2023
06e49b8
add asset file
mattrussell36 Apr 11, 2023
55c82d1
Add ACs for asset detail dialog and link up with collateral spec
mattrussell36 Apr 12, 2023
e6750a3
add suggested sort order per account type
mattrussell36 Apr 12, 2023
4585c50
fix: 005 AC code link (#1671)
gordsport Apr 20, 2023
3068b55
fix: mempool pruning with PoW only
davidsiska-vega Apr 20, 2023
0d5ebf4
fix: linting errors
gordsport Apr 20, 2023
09321d0
refactor: add liquidation price estimate
witgaw Apr 20, 2023
7c13ce0
refactor: add ACs
witgaw Apr 21, 2023
4d00f3f
refactor: another AC
witgaw Apr 21, 2023
3872ee4
Merge pull request #1675 from vegaprotocol/liquidation-price
witgaw Apr 21, 2023
8dc8ad9
refactor: cosmetic change
witgaw Apr 21, 2023
5f93d07
Merge pull request #1676 from vegaprotocol/correction
witgaw Apr 21, 2023
55c8b73
Merge branch 'master' into remove-ttl
gordsport Apr 21, 2023
9bcc3a0
Merge pull request #1673 from vegaprotocol/remove-ttl
davidsiska-vega Apr 21, 2023
5b98406
Update 0045-DSRC-data_sourcing.md (#1674)
vega-paul Apr 25, 2023
e09c790
add spec for current functionality fo fills data grid
mattrussell36 Apr 7, 2023
ee2122a
Update user-interface/7005-FILL-fills.md
mattrussell36 Apr 12, 2023
5ddba25
Update user-interface/7005-FILL-fills.md
mattrussell36 Apr 12, 2023
b6891ae
Update user-interface/7005-FILL-fills.md
mattrussell36 Apr 12, 2023
364a375
Make notional value of feels a could
mattrussell36 Apr 12, 2023
87af478
Update user-interface/7005-FILL-fills.md
mattrussell36 Apr 12, 2023
95ff5fe
add clarification on user role for trades during continuos vs auction
mattrussell36 Apr 12, 2023
39269b4
fix: typo in ac number
mattrussell36 Apr 20, 2023
d4c04e0
Merge branch 'master' into user-interface/EWAL-cant-destroy-ethwallet…
daro-maj Apr 28, 2023
b457f0c
Merge pull request #1664 from vegaprotocol/user-interface/EWAL-cant-d…
daro-maj Apr 28, 2023
bd694a3
feat: update typo in 0061
Jiajia-Cui Apr 28, 2023
3d60a8e
Merge pull request #1682 from vegaprotocol/typo-0061
Jiajia-Cui Apr 28, 2023
5c01d40
feat: add explaination on ersatz validators
Jiajia-Cui Apr 28, 2023
4b1f54e
feat: correct typos
Jiajia-Cui Apr 30, 2023
e72e9dd
feat: typo
Jiajia-Cui Apr 30, 2023
73f3ea4
Merge pull request #1683 from vegaprotocol/ersatz-validator-explain
Vegaklaus Apr 30, 2023
08f00c2
Update user-interface/7005-FILL-fills.md
daro-maj May 1, 2023
6d69b84
Merge branch 'master' into 7005-FILL-fills
daro-maj May 1, 2023
3d17a6e
Merge pull request #1657 from vegaprotocol/7005-FILL-fills
daro-maj May 1, 2023
689e7d2
Merge branch 'master' into 7001-COLL-collateral
daro-maj May 1, 2023
15cbf19
add browser wallet spec as part of approbation set up
dalebennett1992 May 3, 2023
bc7738f
chore: fix typo and add browser specs to app.json
dalebennett1992 May 3, 2023
f9c1191
chore: add browser wallet to categories, hopefully in the right place
dalebennett1992 May 3, 2023
11682b1
Merge pull request #1687 from vegaprotocol/chore/add-vega-wallet-specs
dalebennett1992 May 3, 2023
b976119
Merge branch 'master' into 7001-COLL-collateral
mattrussell36 May 4, 2023
8252fc4
Merge pull request #1656 from vegaprotocol/7001-COLL-collateral
mattrussell36 May 4, 2023
ace04c8
chore: Update 0033-OCAN-cancel_orders.md (#1686)
gordsport May 4, 2023
f623a33
feat: update BRIE specs (#1654)
jeremyletang May 4, 2023
99d973b
chore: Update cosmic elevator branch from master (#1688)
gordsport May 4, 2023
86cbcb4
fix: fix prefix for browser wallet
dalebennett1992 May 5, 2023
32cc916
chore: fixed wrong file..
dalebennett1992 May 5, 2023
774452f
chore: now undo my formatting for the other file
dalebennett1992 May 5, 2023
12be2d4
Merge branch 'master' into fix/fix-browser-wallet-spec-prefix
dalebennett1992 May 5, 2023
84a836c
chore: undo formatting change
dalebennett1992 May 5, 2023
2865ee6
Merge pull request #1689 from vegaprotocol/fix/fix-browser-wallet-spe…
dalebennett1992 May 5, 2023
4f27121
add missing AC
dalebennett1992 May 9, 2023
6de10f0
Merge pull request #1690 from vegaprotocol/chore/add-more-ac-browser-…
dalebennett1992 May 9, 2023
59ca776
add more ac
dalebennett1992 May 9, 2023
3fc97b7
typoe
dalebennett1992 May 9, 2023
1f1fe09
Merge pull request #1692 from vegaprotocol/chore/add-network-and-keyp…
dalebennett1992 May 11, 2023
143d182
chore: add ac for the sprint
dalebennett1992 May 15, 2023
83016bd
Merge branch 'master' into chore/add-specs-for-browser-wallet-sprint
dalebennett1992 May 15, 2023
734c728
Merge pull request #1696 from vegaprotocol/chore/add-specs-for-browse…
dalebennett1992 May 15, 2023
19c8b22
add ui specs for finding closed markets
mattrussell36 Apr 12, 2023
0e92276
fix number sequence
mattrussell36 Apr 12, 2023
28b3684
chore: add acs for market selector
mattrussell36 May 16, 2023
d3da340
Merge pull request #1662 from vegaprotocol/6001-MARK-find_markets
mattrussell36 May 16, 2023
1169c5f
chore: added ACs for transaction log
radoslaw-szpiech May 16, 2023
a722889
chore: removed navigation AC
radoslaw-szpiech May 16, 2023
658ad07
add key pair ac that slipped the net via a ticket going straight to t…
dalebennett1992 May 16, 2023
d3e5cd5
Merge pull request #1701 from vegaprotocol/chore/desktop-wallet-trans…
radoslaw-szpiech May 16, 2023
72aff13
Add UI ACs for network and nodes (#1700)
mattrussell36 May 18, 2023
e1f915a
Update 0002-WCON-connect_vega_wallet.md
pennyandrews May 18, 2023
add9b3a
Update user-interface/0002-WCON-connect_vega_wallet.md
ckpringle May 18, 2023
0e9bb75
Merge pull request #1707 from vegaprotocol/remove-non-musthaves
pennyandrews May 18, 2023
c548411
add settings ac
dalebennett1992 May 18, 2023
28d3854
Merge branch 'master' into chore/add-settings-ac
dalebennett1992 May 18, 2023
324136d
Merge branch 'master' into chore/update-ac-that-went-straight-to-done
dalebennett1992 May 18, 2023
4ea7945
Merge pull request #1703 from vegaprotocol/chore/update-ac-that-went-…
dalebennett1992 May 18, 2023
8e9f859
Merge branch 'master' into chore/add-settings-ac
dalebennett1992 May 18, 2023
8b3b7d4
Update user-interface/1101-BWAL-browser_wallet.md
pennyandrews May 19, 2023
0dcc9e2
Merge pull request #1710 from vegaprotocol/chore/add-settings-ac
dalebennett1992 May 19, 2023
37331cc
remove ac for recovery phrase and add new connection and transaction …
dalebennett1992 May 19, 2023
6f7a375
add ac
dalebennett1992 May 19, 2023
c284638
Merge pull request #1711 from vegaprotocol/chore/add-ac-for-connectio…
dalebennett1992 May 19, 2023
413d56d
add and increment
dalebennett1992 May 23, 2023
2d60985
Merge pull request #1712 from vegaprotocol/chore/add-newly-specified-ac
dalebennett1992 May 23, 2023
2c6f9df
chore: update readme (#1709)
gordsport May 24, 2023
4d15f57
feat: typo
Jiajia-Cui May 24, 2023
c3562ef
Merge pull request #1713 from vegaprotocol/typo-in-estimate-position
Jiajia-Cui May 25, 2023
feb2615
chore(trading): Add transfer ACs
bwallacee May 26, 2023
96d1cb2
chore(trading): Add transfer ACs number fix
bwallacee May 26, 2023
1138371
Merge pull request #1718 from vegaprotocol/chore(trading)-Add-Transfe…
bwallacee May 26, 2023
28e0364
chore: update proposal acs
May 26, 2023
c4c9344
fix(trading): Fix transfer specs ID
bwallacee May 26, 2023
7392e0f
Merge pull request #1721 from vegaprotocol/fix(trading)-Fix-transfer-…
MadalinaRaicu May 26, 2023
e27aa4b
added all markets and proposal markets ACs
daro-maj May 29, 2023
995ac59
Fix: bring ersatz number in line with core.
davidsiska-vega May 29, 2023
6117f8d
Merge pull request #1723 from vegaprotocol/fix/ersatz-number
ze97286 May 29, 2023
9dbca90
increment and add ac
dalebennett1992 May 30, 2023
bedcd9a
format
dalebennett1992 May 30, 2023
4495ce9
Merge pull request #1724 from vegaprotocol/chore/add-additional-conne…
dalebennett1992 May 30, 2023
763c4a0
rework
daro-maj May 31, 2023
84dc993
chore: withdraw minimal amount
asiaznik May 31, 2023
504fc97
Merge pull request #1725 from vegaprotocol/chore/withdraw-min-amount
asiaznik May 31, 2023
7987de0
chore: add new market proposal acs
May 31, 2023
a1ddf99
Merge branch 'master' into 3929-governance-ACs
May 31, 2023
b06185d
Update 1101-BWAL-browser_wallet.md
ckpringle Jun 1, 2023
e4b3533
chore:update todo
bwallacee Jun 1, 2023
04b21f4
Merge pull request #1727 from vegaprotocol/chore-update-todo
radoslaw-szpiech Jun 1, 2023
84fdefc
Merge branch 'master' into ckpringle-patch-2
dexturr Jun 1, 2023
4c04fcc
amend spec numbers
dalebennett1992 Jun 2, 2023
2634d97
Merge pull request #1726 from vegaprotocol/ckpringle-patch-2
dalebennett1992 Jun 2, 2023
f75ec11
update acs
daro-maj Jun 2, 2023
9f4a25a
update numeration
daro-maj Jun 2, 2023
3a25159
6501-ASSE-assets.md
bwallacee Jun 2, 2023
8fdfa48
Merge pull request #1731 from vegaprotocol/Update-6501-ASSE-assets.md
bwallacee Jun 2, 2023
773cc19
add ac for import wallet
dalebennett1992 Jun 5, 2023
ed2b934
Merge pull request #1734 from vegaprotocol/chore/add-import-wallet-ac
dalebennett1992 Jun 5, 2023
7d53705
add list connections ac
dalebennett1992 Jun 6, 2023
fb6e5b3
Merge pull request #1739 from vegaprotocol/chore/add-view-connections-ac
dalebennett1992 Jun 6, 2023
ea7eb29
update acs
daro-maj Jun 6, 2023
18cb69d
A community settlement story.
davidsiska-vega Jun 7, 2023
455a6d6
Merge branch 'master' into 6001-MARK-Find-markets
daro-maj Jun 7, 2023
09fd071
Merge pull request #1744 from vegaprotocol/feat/community-settled-mar…
davidsiska-vega Jun 7, 2023
91465f6
Merge branch 'master' into 6001-MARK-Find-markets
daro-maj Jun 7, 2023
f38cbf3
Merge pull request #1722 from vegaprotocol/6001-MARK-Find-markets
daro-maj Jun 7, 2023
11b9084
fix: another AC for changing oracle after trading termination
davidsiska-vega Jun 7, 2023
b85c0d1
fix: another AC for changing oracle after trading termination
davidsiska-vega Jun 7, 2023
62b333c
chore: ACs added to 6002-MDET-market-details
radoslaw-szpiech Jun 6, 2023
e0574e0
chore: few more details added
radoslaw-szpiech Jun 8, 2023
ab03a71
Update user-interface/6002-MDET-market-details.md
radoslaw-szpiech Jun 8, 2023
a8fb0ee
chore: info about tooltips added
radoslaw-szpiech Jun 8, 2023
cbb23d5
Update user-interface/6002-MDET-market-details.md
radoslaw-szpiech Jun 8, 2023
3c3f019
Merge pull request #1740 from vegaprotocol/chore/6002-MARD-AC
radoslaw-szpiech Jun 8, 2023
cf04fd6
liquidity ACs
daro-maj Jun 8, 2023
5b15fde
updated numeration
daro-maj Jun 8, 2023
05862de
Merge branch 'master' into fix/ac-for-lost-settle-key
davidsiska-vega Jun 9, 2023
14b1c8b
Merge pull request #1745 from vegaprotocol/fix/ac-for-lost-settle-key
davidsiska-vega Jun 9, 2023
60c9bb2
chore(trading): Add Position ACs (#1733)
bwallacee Jun 10, 2023
c6fca8d
remove outdated ac
dalebennett1992 Jun 13, 2023
b8475fe
Merge pull request #1757 from vegaprotocol/chore/remove-unneeded-ac
dalebennett1992 Jun 13, 2023
d8312ba
update
daro-maj Jun 13, 2023
efea4b1
chore: add AC for quantum formatting
mattrussell36 Jun 13, 2023
28ed3ea
chore: fix bold typo
mattrussell36 Jun 14, 2023
5e1a39a
Merge pull request #1759 from vegaprotocol/7001-COLL-collateral-add-q…
MadalinaRaicu Jun 14, 2023
28fbaf1
chore: filled ACs in 6003-ORDB
radoslaw-szpiech Jun 13, 2023
568a152
Merge pull request #1756 from vegaprotocol/chore/6003-ordb
radoslaw-szpiech Jun 14, 2023
2a1cc8b
Merge branch 'master' into 5002-LIQP-Liquidity
daro-maj Jun 14, 2023
f60d413
disconnect ac
dalebennett1992 Jun 14, 2023
f2bfba8
Merge branch 'master' into chore/add-disconnect-dapp-ac
dalebennett1992 Jun 14, 2023
405d693
finger slip
dalebennett1992 Jun 14, 2023
678ccee
Merge pull request #1760 from vegaprotocol/chore/add-disconnect-dapp-ac
dalebennett1992 Jun 14, 2023
ba0f463
Merge branch 'master' into 5002-LIQP-Liquidity
daro-maj Jun 14, 2023
4bb7631
Merge pull request #1748 from vegaprotocol/5002-LIQP-Liquidity
daro-maj Jun 14, 2023
f17972b
test: market selector acs update
daro-maj Jun 15, 2023
c0d9dbc
Merge pull request #1762 from vegaprotocol/market-selector-acs-update
daro-maj Jun 15, 2023
21c67e9
update console space
daro-maj Jun 15, 2023
386d713
Merge pull request #1765 from vegaprotocol/update-console-spec
daro-maj Jun 15, 2023
c7c63ca
chore: remove cosmic feature from master (#1766)
gordsport Jun 15, 2023
8db350d
chore: 6005-THIS-trade_history filled with ACs
radoslaw-szpiech Jun 16, 2023
35a3976
Merge branch 'master' into 3929-governance-ACs
jtsang586 Jun 16, 2023
2d2bfe8
Merge pull request #1720 from vegaprotocol/3929-governance-ACs
Jun 16, 2023
dd190e7
Merge branch 'master' into chore/6005-this-trade-history
daro-maj Jun 17, 2023
5a6b3a3
Merge pull request #1771 from vegaprotocol/chore/6005-this-trade-history
daro-maj Jun 17, 2023
2322f4c
popout windoiw
dalebennett1992 Jun 19, 2023
87a2a5a
fix: clarify what's a market and what's a network param.
davidsiska-vega Jun 19, 2023
9835795
fix: clarify what's a market and what's a network param.
davidsiska-vega Jun 19, 2023
640e7dd
fix: clarify what's a market and what's a network param.
davidsiska-vega Jun 19, 2023
5034de3
fix: typo
davidsiska-vega Jun 19, 2023
95afe22
Merge pull request #1774 from vegaprotocol/fix/tgt-stake-scaling-param
davidsiska-vega Jun 19, 2023
0f799ed
add browser wallet loading state ACs
dexturr Jun 20, 2023
6101b56
Merge pull request #1776 from vegaprotocol/feat/bw-loading-states
dexturr Jun 20, 2023
4e9b39c
Merge branch 'master' into chore/popout-window-specs
dalebennett1992 Jun 20, 2023
cc5f811
Merge pull request #1772 from vegaprotocol/chore/popout-window-specs
dalebennett1992 Jun 20, 2023
f80d582
chore: add AC for the button always being disabled (#1746)
mattrussell36 Jun 21, 2023
8db33e3
Update 5002-LIQP-liquidity.md with 5002-LIQP-013 (#1769)
MadalinaRaicu Jun 21, 2023
67af27b
user-interface/
dalebennett1992 Jun 21, 2023
906ffee
Merge pull request #1779 from vegaprotocol/chore/add-success-screen-ac
dalebennett1992 Jun 21, 2023
e387e9e
depth chart ACs
daro-maj Jun 23, 2023
95d230c
update acs
daro-maj Jun 23, 2023
07524a1
update numbers
daro-maj Jun 23, 2023
ab5815e
update name of reference
daro-maj Jun 23, 2023
aa2a9f6
update
daro-maj Jun 23, 2023
8d3b34a
Merge pull request #1784 from vegaprotocol/6006-DEPC-chart-depth-ACs
daro-maj Jun 23, 2023
757faa0
re-arrange browser wallet acs to save mainetenance (#1781)
dalebennett1992 Jun 27, 2023
dadbcd1
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Jun 27, 2023
e76af03
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Jun 27, 2023
afc33c1
fix: spell and MD lint errors
gordsport Jun 27, 2023
c77a505
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Jul 26, 2023
39b522e
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Jul 26, 2023
07e6c51
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Jul 31, 2023
085e545
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 3, 2023
916f286
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 3, 2023
46cb4d5
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 3, 2023
004eea2
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 22, 2023
81ced0b
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 23, 2023
7803980
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Aug 23, 2023
3349b84
Update 0064-VALP-validator_performance_based_rewards.md
Vegaklaus Oct 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/config/markdownlint.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@

{
"default": true,
"line-length": false,
"commands-show-output": false,
"no-bare-urls": true,
"no-inline-html": false,
"no-hard-tabs": false
"no-hard-tabs": false,
"MD012": {
"maximum": 2
},
"MD024": {
"siblings_only": true
}
}
52 changes: 52 additions & 0 deletions 0000-TEMP-template-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# 0000-TEMP decision notes

## Context / Problem Statement 1

| Opened | Last updated | Status |
|:----------:|:------------:|:------------:|
| DD/MM/YYYY | DD/MM/YYYY | open/resoved |

Describe the context and problem statement...

### Considered Options

* Option 1...
* Option 2...

### Decision Outcome

Chosen option: Option X, because... (include why paramemters are chosen, any dependancies and / or assumptions this decision is based upon)

### Open risks

* Risk 1 - details any risks or gaps that are not yet resolved

### Limitations

Are there any issues we wanted to address but could not e.g., A core rewrite or CometBFT limtitaion


## Context / Problem Statement 2

| Opened | Last updated | Status |
|:----------:|:------------:|:------------:|
| DD/MM/YYYY | DD/MM/YYYY | open/resoved |

Describe the context and problem statement...

### Considered Options

* Option 1...
* Option 2...

### Decision Outcome

Chosen option: Option X, because... (include why paramemters are chosen, any dependancies and / or assumptions this decision is based upon)

### Open risks

* Risk 1 - details any risks or gaps that are not yet resolved

### Limitations

Are there any issues we wanted to address but could not e.g., A core rewrite or CometBFT limtitaion
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This repository contains specifications and RFCs for future changes to the syste
In order to ensure that there is a clear view on the specification of the protocol, both at the version in mainnet and the version being developed in testnet, the following branching is used:

- `master` branch details the specification of the protocol in mainnet (from Alpha Mainnet onwards)
- `cosmicelevator` branch is the milestone grouping of features being developed AFTER Alpha Mainnet
- `cosmicelevator` branch is the milestone grouping of features being developed AFTER Alpha Mainnet. As features are deployed to mainnet by the validators the relevant spec changes will be merged into the `master` branch.
- Further milestone branches will be created as development progresses and will be updated in this `README.md`

To find out more see the [The specification lifecycle](WORKFLOW.md#the-specification-lifecycle)
Expand Down
60 changes: 60 additions & 0 deletions non-protocol-specs/0012-NP-LIPE-liquidation-price-estimate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Liquidation price estimate

## Summary

Provide an estimate of the price range at which the liquidation of a specified position is likely to occur.

## Overview

Provide a range of liquidation price, where the lower bound assumes no slippage in the [margin level calculation](../protocol/0019-MCAL-margin_calculator.md) and the upper bound assumes that the slippage cap is applied.

This amounts to carrying out the same computation twice, once with both linear and quadratic slippage factor set to `0` and once with the actual values used by the market for which the specified position is being considered.

The system carries out [position resolution](../protocol/0012-POSR-position_resolution.md) when the available collateral (amount in margin account for the market along with amount in the general account denominated in the same asset) is less than the maintenance margin level for the position. The first step is to cancel any open orders that a distressed party may have. After that the margin requirement is re-evaluated to see if the position is still distressed. Therefore we provide three sets of estimates of a liquidation price range: current open volume only, current open volume with active buy orders, current open volume with active sell orders.

## Calculation

### Position only

We start with the case which estimates the liquidation price given the current open volume and ignoring any orders a party may have. We need to keep in mind that as the mark price moves the maintenance margin changes and the collateral available a party has changes due to [mark to market](../protocol/0003-MTMK-mark_to_market_settlement.md) gains/losses. Therefore, to estimate the liquidation price we need to find $S^{\text{liquidation}}$ such that:

$$
\text{collateral available} + V(S^{\text{liquidation}}-S^{\text{current}}) = \text{maintenance margin}(S^{\text{liquidation}}),
$$

where $V$ is the open volume (negative for a short position) and $S^\text{current}$ is the current mark price.

We assume margin is calculated as per continuous trading formula (as there are no closeouts in auctions) and that the slippage cap always applies, therefore we get:

$$
\text{collateral available} + V(S^{\text{liquidation}}-S^\text{current}) = S^{\text{liquidation}} (V \cdot \text{linear slippage factor}+V^2 \cdot \text{quadratic slippage factor}+V \cdot \text{risk factor}),
$$

where $\text{risk factor}$ is the long risk factor when $V>0$ and the short risk factor otherwise. Solving for $S^{\text{liquidation}}$ we get:

$$
S^{\text{liquidation}} = \frac{\text{collateral available}-V \cdot S^\text{current}}{V \cdot \text{linear slippage factor}+V^2 \cdot \text{quadratic slippage factor}+V \cdot \text{risk factor}-V}
$$

if the denominator in the above expression evaluates to $0$ the liquidation price is undefined and we return an error, otherwise we return the result floored at $0$ (as the negative price is not attainable for any of the currently supported products).

### Including orders

When including orders we sort the orders in the order they will get filled in (descending for buy orders, ascending for sell orders) and assume any market orders get filled instantaneously at the current mark price. Then separately for each side:

- Calculate open volume with including the remaining volume of all the market orders for a given side ($V$) and calculate the liquidation price ($S^{\text{liquidation}}$) using the formula outlined above and the current mark price or indicative uncrossing price if market is in auction ($S^{\text{current}}$).
- For each limit order:
- if the order price ($S^{\text{order}}$) is above (buy side) / below (sell side) the liquidation price ($S^{\text{liquidation}}$):
- recalculate $V$ to include the order's remaining volume (assumes order gets filled as soon as its price level is filled),
- update $\text{collateral available}$ to include the MTM gains/losses: $V(S^{\text{order}}-S^{\text{current}})$,
- update $S^{\text{current}}$ to equal $S^{\text{order}}$,
- otherwise return last calculated $S^{\text{liquidation}}$ (assumes other orders will get cancelled and the remaining position will be liquidated).

### Acceptance criteria

1. An estimate is obtained for a long position with no open orders, mark price keeps going down in small increments and the actual liquidation takes place within the estimated range. (<a name="0012-NP-LIPE-001" href="#0012-NP-LIPE-001">0012-NP-LIPE-001</a>)
1. An estimate is obtained for a short position with no open orders, mark price keeps going up in small increments and the actual liquidation takes place within the estimated range. (<a name="0012-NP-LIPE-002" href="#0012-NP-LIPE-002">0012-NP-LIPE-002</a>)
1. An estimate is obtained for a position with no open volume and a single limit buy order, after the order fills the mark price keeps going down in small increments and the actual liquidation takes place within the obtained estimated range. (<a name="0012-NP-LIPE-003" href="#0012-NP-LIPE-003">0012-NP-LIPE-003</a>)
1. An estimate is obtained for a long position with multiple limit sell order with the absolute value of the total remaining size of the orders less than the open volume. The estimated liquidation price with sell orders is lower than that for the open volume only. As the limit orders get filled the estimated liquidation price for the (updated) open volume converges to the estimate originally obtained with open sell orders. (<a name="0012-NP-LIPE-004" href="#0012-NP-LIPE-004">0012-NP-LIPE-004</a>)
1. An estimate is obtained for a short position with multiple limit sell order with the absolute value of the total remaining size of the orders less than the open volume. The estimated liquidation price with sell orders is lower than that for the open volume only. As the limit orders get filled the estimated liquidation price for the (updated) open volume converges to the estimate originally obtained with open sell orders. As the price keeps moving in small increments the liquidation happens within the originally estimated range (with sell orders) (<a name="0012-NP-LIPE-005" href="#0012-NP-LIPE-005">0012-NP-LIPE-005</a>)
1. There's no difference in the estimate for an open volume and that with `0` open volume and market order of the same size. (<a name="0012-NP-LIPE-006" href="#0012-NP-LIPE-006">0012-NP-LIPE-006</a>)
5 changes: 5 additions & 0 deletions protocol/0010-MARG-margin_orchestration.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ The protocol compares these levels to the balance in the trader's margin account
| greater than _collateral release level_ | Collateral release | Collateral release
| greater than _collateral search level_ and less than _initial margin_ | no action | No financial risk to network

When posting a new order the initial margin for the overall position including the new order is calculated and order is only allowed to go ahead if party has enough funds to bring their margin account balance to that figure. An exception to this is when a party has an open position and tries to reduce it, but cannot afford the new margin. Then orders from the opposite side (short orders for a long position, long orders for a short position) are accepted as follows:

- limit order: accept order when sum sizes of all the party's order's for that side of the book including the one being posted is less than or equal to the absolute open volume that a party has,
- market order: accept order as long as its size is less than or equal to the absolute open volume that a party has.

#### Collateral search

When a trader's balance in their margin account (for a market) is less than their position’s collateral search level the protocol will attempt to transfer sufficient collateral from the trader’s main collateral account to top up their margin account to the level of the _initial margin_.
Expand Down
4 changes: 2 additions & 2 deletions protocol/0014-ORDT-order_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Notes on scope of current version of this spec:
**Market-state:**

1. **Good For Auction (GFA):** This order will only be accepted by the system if it arrives during an auction period, otherwise it will be rejected. The order can act like either a GTC or GTT order depending on whether the `expiresAt` field is set.
1. **Good For Normal (GFN):** This order will only be accepted by the system if it arrived during normal trading, otherwise it will be rejected. Normal trading is defined as either continuous trading on a normal market or auction trading in a frequent batch auction market. The order can act like either a GTC or GTT order depending on whether the `expiresAt` field is set.
2. **Good For Normal (GFN):** This order will only be accepted by the system if it arrived during normal trading, otherwise it will be rejected. Normal trading is defined as either continuous trading on a normal market or auction trading in a frequent batch auction market. The order can act like either a GTC or GTT order depending on whether the `expiresAt` field is set.

### Execution flags

1. **Post-Only (True/False):** Only valid for Limit orders. Cannot be True at the same time as Reduce-Only. If set to true, once order reaches the orderbook, this order acts identically to a limit order set at the same price. However, prior to being placed a check is run to ensure that the order will not (neither totally nor in any part) immediately cross with anything already on the book. If the order would immediately trade, it is instead immediately `Stopped` with a reason informing the trader that the order was stopped to avoid a trade occurring. As a result, placing a Post-Only order will never incur taker fees.
1. **Post-Only (True/False):** Only valid for Limit orders. Cannot be True at the same time as Reduce-Only. If set to true, once order reaches the orderbook, this order acts identically to a limit order set at the same price. However, prior to being placed a check is run to ensure that the order will not (neither totally nor in any part) immediately cross with anything already on the book. If the order would immediately trade, it is instead immediately `Stopped` with a reason informing the trader that the order was stopped to avoid a trade occurring. As a result, placing a Post-Only order will never incur taker fees, and will not incur fees in general if executed in continuous trading. It is possible for some liquidity and infrastructure fees to be paid if the resultant limit order trades at the uncrossing of an auction, as specified in [0029-FEES](https://github.com/vegaprotocol/specs/blob/master/protocol/0029-FEES-fees.md#normal-auctions-including-market-protection-and-opening-auctions).
1. **Reduce-Only (True/False):** Only valid for Non-Persistent orders. Cannot be True at the same time as Post-Only. If set, order will only be executed if the outcome of the trade moves the trader's position closer to 0. In addition, a Reduce-Only order will not move a position to the opposite side to the trader's current position (e.g. if short, a Reduce-Only order cannot make the trader long as a result). If submitted as IOC, where the full volume would switch sides, only the amount required to move the position to 0 will be executed.

### Valid order entry combinations
Expand Down
64 changes: 20 additions & 44 deletions protocol/0019-MCAL-margin_calculator.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,14 @@ If `riskiest long == 0` then `maintenance_margin_long = 0`.

In this simple methodology, a linearised margin formula is used to return the maintenance margin, using risk factors returned by the [quantitative model](./0018-RSKM-quant_risk_models.ipynb).

`maintenance_margin_long = maintenance_margin_long_open_position + maintenance_margin_long_open_orders`

with

```formula
maintenance_margin_long_open_position
= max(min(slippage_volume * slippage_per_unit, mark_price * (slippage_volume * market.maxSlippageFraction[1] + slippage_volume^2 * market.maxSlippageFraction[2])), 0)
+ slippage_volume * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ]
maintenance_margin_long
= max(min(riskiest_long * slippage_per_unit, product.value(market_observable) * (riskiest_long * market.maxSlippageFraction[1] + riskiest_long^2 * market.maxSlippageFraction[2])), 0)
+ max(open_volume, 0) * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ] + buy_orders * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ]`,
```

and

`maintenance_margin_long_open_orders = buy_orders * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ]`,

where

`slippage_volume = max( open_volume, 0 )`,
Expand All @@ -125,7 +119,7 @@ and

if `open_volume > 0` then

`slippage_per_unit = Product.value(market_observable) - Product.value(exit_price)`,
`slippage_per_unit = max(0, Product.value(market_observable) - Product.value(exit_price))`,

else `slippage_per_unit = 0`.

Expand All @@ -149,25 +143,17 @@ If `riskiest short == 0` then `maintenance_margin_short = 0`.

Else

`maintenance_margin_short = maintenance_margin_short_open_position + maintenance_margin_short_open_orders`

with

```formula
maintenance_margin_short_open_position
= max(min(abs(slippage_volume) * slippage_per_unit, mark_price * (abs(slippage_volume) * market.maxSlippageFraction[1] + abs(slippage_volume)^2 * market.maxSlippageFraction[2])), 0)
+ abs(slippage_volume) * [ quantitative_model.risk_factors_short ] . [ Product.value(market_observable) ]
maintenance_margin_short
= max(min(abs(riskiest short) * slippage_per_unit, mark_price * (abs(riskiest short) * market.maxSlippageFraction[1] + abs(slippage_volume)^2 * market.maxSlippageFraction[2])), 0)
+ abs(min( open_volume, 0 )) * [ quantitative_model.risk_factors_short ] . [ Product.value(market_observable) ] + abs(sell_orders) * [ quantitative_model.risk_factors_short ] . [ Product.value(market_observable) ]`
```

and

`maintenance_margin_short_open_orders = abs(sell_orders) * [ quantitative_model.risk_factors_short ] . [ Product.value(market_observable) ]`,

where meanings of terms in Step 1 apply except for:

`slippage_volume = min( open_volume, 0 )`,

`slippage_per_unit = -1 * (Product.value(market_observable) - Product.value(exit_price) )`
`slippage_per_unit = max(0, Product.value(exit_price)-Product.value(market_observable))`

### **Step 3**

Expand Down Expand Up @@ -224,10 +210,13 @@ bids: [
{volume: 7, price: $108}
]

market.maxSlippageFraction[1] = 0.25
market.maxSlippageFraction[2] = 0.001

risk_factor_short = 0.11
risk_factor_long = 0.1

last_trade = $144
mark_price = $144

search_level_scaling_factor = 1.1
initial_margin_scaling_factor = 1.2
Expand All @@ -244,29 +233,28 @@ riskiest_short = min( open_volume + sell_orders, 0 ) = min( 10 - 8, 0 ) = 0

## exit price considers what selling the open position (10) on the order book would achieve.

slippage_per_unit = Product.value(previous_mark_price) - Product.value(exit_price) = Product.value($144) - Product.value((1*120 + 4*110 + 5*108)/10) = 144 - 110 = 34
slippage_per_unit = max(0, Product.value(previous_mark_price) - Product.value(exit_price)) = max(0, Product.value($144) - Product.value((1*120 + 4*110 + 5*108)/10)) = max(0, 144 - 110) = 34

slippage_volume = max( open_volume, 0 ) = max ( 10, 0 ) = 10

maintenance_margin_long =max(min(riskiest_long * slippage_per_unit, product.value(market_observable) * (riskiest_long * market.maxSlippageFraction[1] + riskiest_long^2 * market.maxSlippageFraction[2])), 0)
+ max(open_volume, 0 ) * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ] + buy_orders * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ]

maintenance_margin_long = max(slippage_volume * slippage_per_unit, 0) + slippage_volume * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ] + buy_orders * [ quantitative_model.risk_factors_long ] . [ Product.value(market_observable) ]

= max(10 * 34, 0) + 10 * 0.1 * 144 + 4 * 0.1 * 144 = 541.6
= max(min(14 * 34, 144*(14 * 0.25 + 14 * 14 * 0.001), 0) + 10 * 0.1 * 144 + 4 * 0.1 * 144 = max(min(476, 532.224), 0) + 10 * 0.1 * 144 + 4 * 0.1 * 144 = 677.6

# Step 2

Since riskiest short == 0 then maintenance_margin_short = 0

# Step 3

maintenance_margin = max ( 541.6, 0) = 541.6
maintenance_margin = max ( 677.6, 0) = 677.6

# Step 4

collateral_release_level = 541.6 * collateral_release_scaling_factor = 541.6 * 1.1
initial_margin = 541.6 * initial_margin_scaling_factor = 541.6 * 1.2
search_level = 541.6 * search_level_scaling_factor = 541.6 * 1.3

collateral_release_level = 677.6 * collateral_release_scaling_factor = 677.6 * 1.1
initial_margin = 677.6 * initial_margin_scaling_factor = 677.6 * 1.2
search_level = 677.6 * search_level_scaling_factor = 677.6 * 1.3

```

Expand All @@ -286,30 +274,18 @@ riskiest long: 2

riskiest short: -1

slippage volume long: 1

slippage volume short: 0

#### *case-2*

riskiest long: 1

riskiest short: -1

slippage volume long: 0

slippage volume short: -1

#### *case-3*

riskiest long: 1

riskiest short: -1

slippage volume long: 1

slippage volume short: 0

## SCENARIOS

Scenarios found [here](https://docs.google.com/spreadsheets/d/1VXMdpgyyA9jp0hoWcIQTUFrhOdtu-fak/edit#gid=1586131462)
Loading
Loading