-
Notifications
You must be signed in to change notification settings - Fork 212
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
InstAgoric network for Econ Stress Test (xnet) #5375
Comments
@michaelfig You and were talking about how we work the permissionless interchain AMM pool stuff into bootstrap... but now that it has come up tangibly, I don't recall how we were going to do it. The relevant test code is https://github.com/Agoric/agoric-sdk/blob/master/packages/run-protocol/test/test-gov-collateral.js#L321-L352 . Making that into a deploy script looks straightforward, but that doesn't fit in the genesis "core proposals" mechanism. The tangible bit, as reported by @arirubinstein :
|
xnet is up, though without telemetry due to #5445: https://xnet.agoric.net/ p.s. but not yet viable due to complications with provisioning clients. |
xnet is up now and supporting provisioning of clients. https://xnet.explorer.agoric.net/agoric/blocks/2 2022-05-26T23:04:34.062691692Z
AMM: no liquidityhttps://amm.agoric.app/ can't quote prices (it just spins) because there is no liquidity:
@michaelfig can you send me a bunch of tokens (IbcATOM, RUN) so I can add some? Vaults: no collaterals? no Oracles?There are no vault collaterals... or at least: none with functioning oracles.
|
AMM has liquidityUsing the xnet shared agsolo that has lots of tokens:
|
Vault has IbcATOM collateral with manual Oracle pricecommand[48] E(oa).pushResult('12.34') oracleAdmin: rescued offerResult
fortunately, I was able to rescue it: command[38] E(home.wallet).getAdminFacet().then(f => wa=f)
history[38] [Object Alleged: adminFacet]{}
command[39] E(wa).getOffersNotifier()
history[39] [Object Alleged: notifier]{}
command[40] E(h[39]).getUpdateSince()
...
command[45] E(home.wallet).lookup('offerResult', h[40].value[2].id)
history[45] [Object Alleged: OracleAdmin]{}
command[46] oa=h[45] ref: Voted to raise the debt limitI used vote-raise-debt-limit.js . It was straightforward except
So I'm able to create a vault: |
I still think we should re-spin xnet with the reserve shortfall stuff tomorrow. |
updating xnet to agoricdev-13Chain: agoricxnet-7 econ committee not available to start vaults@michaelfig help? I'm trying to do the vote to raise the debt limit, but the shared agsolo that has the voting invitation is stuck: command[0] E(home.myAddressNameAdmin).getMyAddress()
history[0] Promise.reject("TypeError: Cannot deliver \"getMyAddress\" to target; typeof target is \"undefined\"")
command[1] home.LOADING
history[1] ["agoric","wallet"] |
agoricxnet-8 all setDue to trouble with econ committee voter facet, we respun xnet today. Then, I...
|
p.s. I fixed the xnet AMM price, finally: ack: wolfram alpha: solve xy=203662439646,x/y=12,x>0,y>0
|
p.s. we restarted: agoricxnet-9 2022-06-08T20:26:45.03466185Z |
@michaelfig once #5614 lands, please re-spin. |
All systems go on agoricxnet-11vault liquidation confirmed. 2022-06-16T21:19:50.071425508Z |
respun xnet with RPC: problem with vaults
I can get collaterals from the REPL: command[12] E(vf.pub).getCollaterals()
history[12] [{"brand":[Object Alleged: IbcATOM brand]{},"interestRate":{"denominator":{"brand":[Object Alleged: RUN brand]{},"value":100n},"numerator":{"brand":[Object Alleged: RUN brand]{},"value":1n}},"liquidationMargin":{"denominator":{"brand":[Object Alleged: RUN brand]{},"value":100n},"numerator":{"brand":[Object Alleged: RUN brand]{},"value":200n}},"marketPrice":{"denominator":{"brand":[Object Alleged: IbcATOM brand]{},"value":10000n},"numerator":{"brand":[Object Alleged: RUN brand]{},"value":20000000n}},"stabilityFee":{"denominator":{"brand":[Object Alleged: RUN brand]{},"value":100n},"numerator":{"brand":[Object Alleged: RUN brand]{},"value":1n}}}] In the console, I see https://xnet.explorer.agoric.net/agoric/blocks/2 |
@samsiegart you asked for the whole console log... I'm not really sure how to get it; the closest I got is https://gist.github.com/dckc/f3c441d27ddc2986106f388c0f46ddc5 |
Yeah, @samsiegart here's how to get it from the public facet of the vault factory: agoric-sdk/packages/run-protocol/test/test-gov-collateral.js Lines 496 to 503 in f2cb70e
|
@samsiegart can you confirm that vaults are working in xnet (including liquidation)? |
I'm not sure how to simulate liquidation, but I was able to get a vault opened on xnet with these steps https://gist.github.com/samsiegart/4015af98add766be5eb688bb0e97d0f4 |
Thanks, @samsiegart ; I confirmed that vaults are working. |
Nalin reports not being able to get the "whale" account to load. @samsiegart found at least a partial diagnosis:
So xnet is hosed. |
xnet is up with 13 contracts listed in RPC query (though without #5929)thanks, @arirubinstein ! published.agoricNames.instance$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.agoricNames.instance -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": [
[
"economicCommittee",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 0
}
],
[
"amm",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 1
}
],
[
"ammGovernor",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 2
}
],
[
"VaultFactory",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 3
}
],
[
"feeDistributor",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 4
}
],
[
"Treasury",
{
"@qclass": "slot",
"index": 3
}
],
[
"VaultFactoryGovernor",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 5
}
],
[
"stakeFactory",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 6
}
],
[
"Pegasus",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 7
}
],
[
"reserve",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 8
}
],
[
"reserveGovernor",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 9
}
],
[
"psm",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 10
}
],
[
"psmGovernor",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 11
}
],
[
"interchainPool",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 12
}
],
[
"ATOM-USD price feed",
{
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 13
}
]
],
"slots": [
"board00613",
"board03040",
"board01029",
"board00848",
"board04719",
"board04149",
"board01034",
"board00917",
"board05736",
"board03138",
"board00530",
"board04431",
"board05141",
"board02021"
]
} |
AMM has 10,000 IbcATOM to 200,000 IST liquiditypublished.amm.pool0$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.amm.pool0 -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"central": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IST brand",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "200000000000"
}
},
"secondary": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IbcATOM brand",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "100000000"
}
}
},
"slots": [
"board0074",
"board03446"
]
} Vault Factory has IbcATOM collateral with 10,000,000 IST debt limitpublished.vaultFactory.manager0$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.vaultFactory.metrics -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"collaterals": [
{
"@qclass": "slot",
"iface": "Alleged: IbcATOM brand",
"index": 0
}
],
"rewardPoolAllocation": {}
},
"slots": [
"board03446"
]
} $ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.vaultFactory.manager0.governance -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"current": {
"DebtLimit": {
"type": "amount",
"value": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IST brand",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "10000000000000"
}
}
},
"InterestRate": {
"type": "ratio",
"value": {
"denominator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "1"
}
}
}
},
"LiquidationMargin": {
"type": "ratio",
"value": {
"denominator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "200"
}
}
}
},
"LiquidationPenalty": {
"type": "ratio",
"value": {
"denominator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "1"
}
}
}
},
"LoanFee": {
"type": "ratio",
"value": {
"denominator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "1"
}
}
}
}
}
},
"slots": [
"board0074"
]
}```
```console
$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.vaultFactory.manager0.metrics -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"numActiveVaults": 0,
"numLiquidatingVaults": 0,
"numLiquidationsCompleted": 0,
"retainedCollateral": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IbcATOM brand",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalCollateral": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalCollateralSold": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalDebt": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IST brand",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalOverageReceived": {
"brand": {
"@qclass": "slot",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalProceedsReceived": {
"brand": {
"@qclass": "slot",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
},
"totalShortfallReceived": {
"brand": {
"@qclass": "slot",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "0"
}
}
},
"slots": [
"board03446",
"board0074"
]
}```
```console
agoric-sdk/packages/cosmic-swingset$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.vaultFactory.manager0 -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"compoundedInterest": {
"denominator": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: IST brand",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
}
},
"interestRate": {
"denominator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "100"
}
},
"numerator": {
"brand": {
"@qclass": "slot",
"index": 0
},
"value": {
"@qclass": "bigint",
"digits": "1"
}
}
},
"latestInterestUpdate": {
"@qclass": "bigint",
"digits": "1660694400"
},
"liquidatorInstance": {
"@qclass": "slot",
"iface": "Alleged: InstanceHandle",
"index": 1
}
},
"slots": [
"board0074",
null
]
} |
Price Feed: 19 USD / ATOM (vs 19.37)The price was set using published.priceFeed.ATOM_USD_price_feed$ ~/go/bin/agd --node=https://xnet.rpc.agoric.net:443 query vstorage data published.priceFeed.ATOM_USD_price_feed -o json | jq '.value | fromjson | {body: .body | fromjson, slots}' {
"body": {
"quoteAmount": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: quote brand",
"index": 0
},
"value": [
{
"amountIn": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: ATOM brand",
"index": 1
},
"value": {
"@qclass": "bigint",
"digits": "1"
}
},
"amountOut": {
"brand": {
"@qclass": "slot",
"iface": "Alleged: USD brand",
"index": 2
},
"value": {
"@qclass": "bigint",
"digits": "19"
}
},
"timer": {
"@qclass": "slot",
"iface": "Alleged: timerService",
"index": 3
},
"timestamp": {
"@qclass": "bigint",
"digits": "1660695302"
}
}
]
},
"quotePayment": {
"@qclass": "slot",
"iface": "Alleged: quote payment",
"index": 4
}
},
"slots": [
null,
"board02810",
"board0639",
null,
null
]
} |
wallet.agoric.app, amm.agoric.app are up-to-date (thanks, @samsiegart ). xnet is current at 2022-08-18T16:27:06 5098751 |
This must include the installation of the code-complete Inter Protocol contracts, as well as the Oracles and required collaterals wired through.
The text was updated successfully, but these errors were encountered: