Skip to content

Adds new Decibel Vault EA#4739

Draft
mohamed-mehany wants to merge 9 commits intomainfrom
decibel-vault
Draft

Adds new Decibel Vault EA#4739
mohamed-mehany wants to merge 9 commits intomainfrom
decibel-vault

Conversation

@mohamed-mehany
Copy link
Collaborator

@mohamed-mehany mohamed-mehany commented Mar 16, 2026

Closes OPDATA-5855

Description

New External Adapter (decibel-vault-adapter) that computes share prices for Decibel Vaults on Aptos. The adapter reads two on-chain view functions (get_vault_net_asset_value and get_vault_num_shares) from the Decibel vault module and computes share_price = (NAV * 10^output_decimals) / total_shares.

Changes

  • Added new @chainlink/decibel-vault-adapter package (DECIBEL_VAULT)

Steps to Test

  1. Unit tests
  2. Integration tests
  3. Local server curl test:
   curl -X POST http://localhost:8080 \
     -H "Content-Type: application/json" \
     -d '{"data":{"endpoint":"share-price","vault_object_id":"0x06ad70a9a4f30349b489791e2f2bcf58363dad30e54a9d2d4095d6213d7a9bf9"}}'

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

@mohamed-mehany mohamed-mehany changed the title Decibel vault Adds new Decibel Vault EA Mar 16, 2026
@changeset-bot
Copy link

changeset-bot bot commented Mar 16, 2026

🦋 Changeset detected

Latest commit: b6d96c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/decibel-vault-adapter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mohamed-mehany mohamed-mehany marked this pull request as ready for review March 16, 2026 14:14
@mohamed-mehany mohamed-mehany marked this pull request as draft March 16, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant