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

[CLI] Auction Status interface #7266

Closed
arirubinstein opened this issue Mar 29, 2023 · 5 comments · Fixed by #7339 or #7454
Closed

[CLI] Auction Status interface #7266

arirubinstein opened this issue Mar 29, 2023 · 5 comments · Fixed by #7339 or #7454
Assignees
Labels
auction bug Something isn't working vaults_triage DO NOT USE
Milestone

Comments

@arirubinstein
Copy link
Contributor

Describe the bug

As a bidding user, I want to list the remaining time left on an auction and the current price of the auction, so that I can best inform my bidding strategy.

To Reproduce

Steps to reproduce the behavior:

  1. Bid on some liquidating vaults
  2. Unable to easily see other bids I'm competing with, or how long there is for an auction I have already bid on, or if my bid will currently win the auction at the end of the duration

Expected behavior

A user can see if their bid is the current winning bid, the time remaining on the auction, and easily list in ranked order the other bids in competition

@arirubinstein arirubinstein added the bug Something isn't working label Mar 29, 2023
@rowgraus
Copy link

rowgraus commented Mar 29, 2023

Would suggest we want the following details about the auction:

Auction Details

  1. Auction start time
  2. Auction starting price
  3. Collateral available for sale at start time
  4. IST target at start time
  5. Current price (i.e., the current collateral price being accepted at this tier/step)
  6. Collateral currently available for sale
  7. IST raised so far (or, IST target remaining - whichever is more straightforward)
  8. Time until next price step

Governance settings:

  1. Step size
  2. Step time
  3. Minimum discount

@dckc
Copy link
Member

dckc commented Mar 29, 2023

re "Unable to easily see other bids I'm competing with" see also #7159

@dckc
Copy link
Member

dckc commented Mar 29, 2023

Governance settings:

Those are available via RPC/vstorage/chainStorage now. Adding a concise version the agops inter liquidation status output is straightforward.

Details ``` $ agoric follow :published.auction.governance -B https://ollinet.rpc.agoric.net:443 { current: { AuctionStartDelay: { type: "relativeTime", value: { relValue: 2n, timerBrand: slot(0,"Alleged: timerBrand"), }, }, ClockStep: { type: "relativeTime", value: { relValue: 180n, timerBrand: slot(0), }, }, DiscountStep: { type: "nat", value: 500n, }, Electorate: { type: "invitation", value: { brand: slot(1,"Alleged: Zoe Invitation brand"), value: [ { description: "questionPoser", handle: slot(2,"Alleged: InvitationHandle"), installation: slot(3,"Alleged: BundleIDInstallation"), instance: slot(4,"Alleged: InstanceHandle"), }, ], }, }, LowestRate: { type: "nat", value: 4500n, }, PriceLockPeriod: { type: "relativeTime", value: { relValue: 3n, timerBrand: slot(0), }, }, StartFrequency: { type: "relativeTime", value: { relValue: 3600n, timerBrand: slot(0), }, }, StartingRate: { type: "nat", value: 10500n, }, }, } ```

@dckc
Copy link
Member

dckc commented Mar 31, 2023

Please be sure the timerBrand is published, while you're at it. Without it, auctioneer governance is somewhat opaque, and I'm struggling to make time records for #7249.

Note the null slot 0.

$ agoric follow --output text :published.auction.governance -B https://ollinet.rpc.agoric.net:443|jq '{body: .body|fromjson, slots}'
{
  "body": {
    "current": {
      "AuctionStartDelay": {
        "type": "relativeTime",
        "value": {
          "relValue": { "@qclass": "bigint", "digits": "2" },
          "timerBrand": {  "@qclass": "slot",  "iface": "Alleged: timerBrand", "index": 0 }
        }
      },
...
  },
  "slots": [    null,    "board0074",    null,    "board03523",    "board06120"  ]
}

Slot 2 is a questionPoser invitation handle, which is not published by design.

@dckc
Copy link
Member

dckc commented Apr 14, 2023

the contract now provides the relevant info, but the CLI hasn't been updated to show it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auction bug Something isn't working vaults_triage DO NOT USE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants