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

update derivatives schema #54

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions schemas/derivatives/SCHEMA.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Liquidity providers snapshot (one entry for each token in a vault).
| amount_useful | The amount of tokens supplied by the LP that are liquid and usable by users in the vault, decimal normalized. | number |
| amount_useful_usd | The amount of liquid tokens supplied in USD. | number |
| liquidity_change_amount | The amount of tokens lost (indicated by negative sign) or gained (indicated by positive sign) by the LP, decimal normalized. | number |
| liquidity_amount_usd | The amount lost or gained by the LP, in USD. | number |
| liquidity_change_amount_usd | The amount lost or gained by the LP, in USD. | number |
| total_lp_fees_usd | Total fees generated for the LP at the time of snapshot (in USD). | number |

### Pool Snapshot
Expand All @@ -124,8 +124,7 @@ Vault(s) in the protocol (one entry for each vault).

| Property | Description | Type |
|-------------------------|-----------------------------------------------------------|--------|
| timestamp | The timestamp of the snapshot. | number |
| block_date | The timestamp truncated (ie, YYYY-MM-DD format for daily snapshots and YYYY-MM-DD HH:00:00 for hourly snapshots). | date |
| timestamp | The timestamp of the block the pool was created on. | number |
| chain_id | Standard chain id. | number |
| vault_address | The smart contract address of the vault. | string |
| token_symbol | The symbol of the token. | string |
Expand Down
8 changes: 2 additions & 6 deletions schemas/derivatives/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"description": "The amount of tokens lost (indicated by negative sign) or gained (indicated by positive sign) by the LP, decimal normalized.",
"type": "number"
},
"liquidity_amount_usd": {
"liquidity_change_amount_usd": {
"description": "The amount lost or gained by the LP, in USD.",
"type": "number"
},
Expand Down Expand Up @@ -354,13 +354,9 @@
"description": "Vault(s) in the protocol (one entry for each vault).",
"properties": {
"timestamp": {
"description": "The timestamp of the snapshot.",
"description": "The timestamp of the block the pool was created on.",
"type": "number"
},
"block_date": {
"description": "The timestamp truncated (ie, YYYY-MM-DD format for daily snapshots and YYYY-MM-DD HH:00:00 for hourly snapshots).",
"type": "date"
},
"chain_id": {
"description": "Standard chain id.",
"type": "number"
Expand Down
Loading