Skip to content

Commit

Permalink
Mention solver address in quotes tables (#1978)
Browse files Browse the repository at this point in the history
# Description
Updates the `/database/README.md`.

# Changes
Document `solver` column in `quotes` and `order_qutoes` tables
  • Loading branch information
MartinquaXD authored Oct 18, 2023
1 parent dd1702b commit 1ab3a43
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ Quotes that an order was created with. These quotes get stored persistently and
sell\_token\_price | double | not null | ether-denominated price of sell\_token at the time of quoting. The ether value of `x` sell\_tokens is `x * sell_token_price`.
sell\_amount | numeric | not null | sell\_amount of the quote used to create the order with
buy\_amount | numeric | not null | buy\_amount of the quote used to create the order with
solver | bytea | not null | public address of the solver that provided this quote

Indexes:
- PRIMARY KEY: btree(`order_uid`)
Expand Down Expand Up @@ -282,6 +283,7 @@ Stores quotes in order to determine whether it makes sense to allow a user to cr
sell\_token\_price | double | not null | price of sell\_token in ETH. Since fees get taken in the sell token the actual fee will be computed with `sell_token_price * gas_amount * gas_used`.
id | bigint | not null | unique identifier of this quote
quote\_kind | [enum](#quotekind) | not null | quotekind for which this quote is considered valid
solver | bytea | not null | public address of the solver that provided this quote

Indexes:
- PRIMARY KEY: btree(`id`)
Expand Down

0 comments on commit 1ab3a43

Please sign in to comment.