Skip to content
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: 0 additions & 5 deletions .changeset/governance-spell-deployments.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/vote-token-decimals.md

This file was deleted.

8 changes: 8 additions & 0 deletions packages/react-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @reserve-protocol/react-sdk

## 0.8.1

### Patch Changes

- Updated dependencies [b72d19b]
- Updated dependencies [e5341f3]
- @reserve-protocol/sdk@0.8.1

## 0.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reserve-protocol/react-sdk",
"version": "0.8.0",
"version": "0.8.1",
"description": "React Query hooks for DTF interface integrations.",
"keywords": [
"dtf",
Expand Down
13 changes: 13 additions & 0 deletions packages/sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @reserve-protocol/sdk

## 0.8.1

### Patch Changes

- b72d19b: Decode proposals to every `GovernanceSpell_09_18_2026` deployment (the 2% and 1% threshold redeployments on Ethereum, Base and BSC) and OPEN's `GovernanceSpell_10_21_2026`, so a preview names them without the explorer ABI fallback.
- e5341f3: Index DTF governance amounts now use the decimals of the vote token. Before, the SDK formatted them with 18 decimals, so a DAO with a 6-decimal vote token (for example a vote-lock vault on USDC) showed a quorum of 0.00000000000003 instead of 0.03. Raw values did not change.

- Proposals, proposal lists and voting snapshots get a `voteTokenDecimals` field from the subgraph. `getProposalState` uses it for the threshold amounts and uses 18 when it is missing.
- `getVoterState`, `getProposalVoterState`, `getOptimisticProposalVoterState`, `getOptimisticVotes`, `getPastOptimisticVotes` and `getOptimisticProposalContext` read `decimals()` in the same multicall as their other reads.
- `getDelegates` reads the vote token decimals from the subgraph.
- The vote-lock state formats `optimisticVotingPower` with the vault decimals.
- `getProposalVotes`, `getProposerState` and `getOptimisticProposalContext` accept an optional `voteTokenDecimals`. Without it, `getProposalVotes` and `getProposerState` with a `timepoint` make one more `decimals()` call.

## 0.8.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reserve-protocol/sdk",
"version": "0.8.0",
"version": "0.8.1",
"description": "Core TypeScript SDK for DTF interface integrations.",
"keywords": [
"dtf",
Expand Down