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

feat(investor-idle): add active property #1226

Merged
merged 1 commit into from
Mar 27, 2023
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
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