Closed edd closed 3 years ago
Is it non-zero on dev?
@davidsiska-vega I've given you all the tools to go and find out. They're all 0 there but there are also no LPs
{
markets {
state
id
name
data {
marketValueProxy
targetStake
}
liquidityProvisions {
party { id }
status
commitmentAmount
}
}
}
{
"data": {
"markets": [
{
"state": "ACTIVE",
"id": "076BB86A5AA41E3E",
"name": "BTCUSD Monthly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
},
{
"state": "ACTIVE",
"id": "1F0BB6EB5703B099",
"name": "ETHBTC Quarterly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
},
{
"state": "ACTIVE",
"id": "2839D9B2329C9E70",
"name": "AAVEDAI Monthly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
},
{
"state": "ACTIVE",
"id": "3C58ED2A4A6C5D7E",
"name": "UNIDAI Monthly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
},
{
"state": "ACTIVE",
"id": "4899E01009F1A721",
"name": "Apple Monthly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
},
{
"state": "ACTIVE",
"id": "5A86B190C384997F",
"name": "Tesla Quarterly (30 Jun 2021)",
"data": {
"marketValueProxy": "0",
"targetStake": "0"
},
"liquidityProvisions": null
}
]
}
}
Hi @jeremyletang , could you please have a look at this. We looked into this with @barnabee and @tamlyn10 yesterday and we "think" that "market value proxy" is calculated by core but just not exposed on APIs, is that correct?
At least the equity-like-share which is determined by market value proxy looked like it might have used it... though not 100% clear.
Hi @jeremyletang , could you please have a look at this. We looked into this with @barnabee and @tamlyn10 yesterday and we "think" that "market value proxy" is calculated by core but just not exposed on APIs, is that correct?
At least the equity-like-share which is determined by market value proxy looked like it might have used it... though not 100% clear.
Taking a look now. For some reason when looking at unit tests, this seems perfectly fine. looking at it in more depth now.
https://github.com/vegaprotocol/specs/blob/master/protocol/0042-setting-fees-and-rewarding-lps.md#calculating-market-value-proxy
Example market that should not have a MarketValue of 0
Relevant network params
Full output