Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
feat(investor-idle): add active property (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Mar 27, 2023
1 parent 3a79fb7 commit 4a07a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/investor-idle/src/IdleOpportunity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class IdleOpportunity
/**
* Opportunity id e.g., contract address or validator address
*/
readonly active: boolean
readonly id: string
readonly version: string
readonly strategy: string
Expand Down Expand Up @@ -146,6 +147,7 @@ export class IdleOpportunity

// this.metadata = vault.metadata
this.id = toLower(vault.address)
this.active = !vault.isPaused
this.metadata = {
...vault,
apy: {
Expand Down
1 change: 1 addition & 0 deletions packages/investor-idle/src/constants/availableTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IdleVault {
underlyingTVL: number
underlyingAddress: string
externalIntegration: boolean
isPaused: boolean
}

export const baseUrl = 'https://api.idle.finance/'
Expand Down

0 comments on commit 4a07a37

Please sign in to comment.