Skip to content

Commit

Permalink
pluto ref
Browse files Browse the repository at this point in the history
  • Loading branch information
opptylabs committed Feb 11, 2025
1 parent 84764da commit 5fcd4f1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/plugins/src/plugins/pluto/earnFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
const element = elementRegistry.addElementBorrowlend({
label: 'Lending',
name: `Earn`,
ref: acc.pubkey,
sourceRefs: [
{
name: 'Vault',
address: vault.pubkey.toString(),
},
],
link: 'https://app.pluto.so/earn',
});

const apy = Number(vault.apy.ema7d / 1e5);
Expand Down
8 changes: 8 additions & 0 deletions packages/plugins/src/plugins/pluto/leverageFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ const executor: FetcherExecutor = async (owner: string, cache: Cache) => {
const element = elementRegistry.addElementBorrowlend({
name: `Leverage`,
label: 'Leverage',
ref: acc.pubkey,
sourceRefs: [
{
name: 'Vault',
address: vault.pubkey.toString(),
},
],
link: 'https://app.pluto.so/leverage',
});

for (const position of acc.positions) {
Expand Down

0 comments on commit 5fcd4f1

Please sign in to comment.