Skip to content

Commit

Permalink
Merge branch '4739-pindexer-lp' of github.com:penumbra-zone/penumbra …
Browse files Browse the repository at this point in the history
…into 4739-pindexer-lp
  • Loading branch information
cronokirby committed Jul 30, 2024
2 parents 0c0a760 + f76b091 commit ec84a54
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions crates/bin/pindexer/src/dex/dex.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ CREATE TYPE Value AS (
);

-- Keeps track of changes to the dex's value circuit breaker.
CREATE TABLE IF NOT EXISTS dex_value_circuit_breaker_change (
-- The asset being moved into or out of the dex.
asset_id BYTEA NOT NULL,
-- The flow, either positive, or negative, into the dex via this particular asset.
--
-- Because we're dealing with arbitrary assets, we need to use something which can store u128
flow Amount
CREATE TABLE IF NOT EXISTS dex_value_circuit_breaker_change
(
-- The asset being moved into or out of the dex.
asset_id BYTEA NOT NULL,
-- The flow, either positive, or negative, into the dex via this particular asset.
--
-- Because we're dealing with arbitrary assets, we need to use something which can store u128
flow Amount
);

-- One step of an execution trace.
Expand Down

0 comments on commit ec84a54

Please # to comment.