Preparing search index...
The search index is not available
Carrot Protocol Documentation
Carrot Protocol Documentation
@carrot-protocol/rpc-client
Common
Namespace Common
Interfaces
Asset
CarrotEvent
CarrotEventMetadata
ChestStrategyType
DistributeVaultFeesEvent
DriftInsuranceFundStrategyType
DriftSupplyStrategyType
Fee
IssueEvent
KlendSupplyStrategyType
MangoSupplyStrategyType
MarginfiSupplyStrategyType
RebalanceRequest
RebalanceUpdate
RedeemEvent
ReserveAPY
SolendReserveAccounts
SolendSupplyStrategyType
Strategy
StrategyAPY
StrategyEvent
StrategyMetadata
StrategyRecord
UpdateSwitchboardOraclePriceEvent
Vault
VaultPerformance
Type Aliases
Carrot
CarrotsEventKind
RebalanceAction
StrategyType
Variables
CARROT_PROGRAM_ID
CARROT_PROGRAM_LOG_ID
CHEST_PROGRAM_ID
DRIFT_PROGRAM_ID
DRIFT_VAULTS_PROGRAM_ID
IDL
KLEND_FARMS_PROGRAM_ID
KLEND_PROGRAM_ID
MANGO_PROGRAM_ID
MARGINFI_PROGRAM_ID
SOLEND_PROGRAM_ID
SWITCHBOARD_ON_DEMAND_PROGRAM_ID
Functions
adjustSharesByFees
amountToUi
amountToUsd
calculatePerformanceFee
calculatePerformanceFeeForStrategy
calculateVaultAPY
calculateWeights
convertSharesToAsset
formatStrategyType
getStrategyPda
getVaultPda
nav
newChestStrategyType
newDriftInsuranceFundStrategyType
newDriftSupplyStrategyType
newKlendSupplyStrategyType
newMangoSupplyStrategyType
newMarginfiSupplyStrategyType
newSolendSupplyStrategyType
sharesEarned
tvl
uiToAmount
usdEarned
usdToAmount
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Interfaces
Asset
Carrot
Event
Carrot
Event
Metadata
Chest
Strategy
Type
Distribute
Vault
Fees
Event
Drift
Insurance
Fund
Strategy
Type
Drift
Supply
Strategy
Type
Fee
Issue
Event
Klend
Supply
Strategy
Type
Mango
Supply
Strategy
Type
Marginfi
Supply
Strategy
Type
Rebalance
Request
Rebalance
Update
Redeem
Event
ReserveAPY
Solend
Reserve
Accounts
Solend
Supply
Strategy
Type
Strategy
StrategyAPY
Strategy
Event
Strategy
Metadata
Strategy
Record
Update
Switchboard
Oracle
Price
Event
Vault
Vault
Performance
Type Aliases
Carrot
Carrots
Event
Kind
Rebalance
Action
Strategy
Type
Variables
CARROT_
PROGRAM_
ID
CARROT_
PROGRAM_
LOG_
ID
CHEST_
PROGRAM_
ID
DRIFT_
PROGRAM_
ID
DRIFT_
VAULTS_
PROGRAM_
ID
IDL
KLEND_
FARMS_
PROGRAM_
ID
KLEND_
PROGRAM_
ID
MANGO_
PROGRAM_
ID
MARGINFI_
PROGRAM_
ID
SOLEND_
PROGRAM_
ID
SWITCHBOARD_
ON_
DEMAND_
PROGRAM_
ID
Functions
adjust
Shares
By
Fees
amount
To
Ui
amount
To
Usd
calculate
Performance
Fee
calculate
Performance
Fee
For
Strategy
calculate
VaultAPY
calculate
Weights
convert
Shares
To
Asset
format
Strategy
Type
get
Strategy
Pda
get
Vault
Pda
nav
new
Chest
Strategy
Type
new
Drift
Insurance
Fund
Strategy
Type
new
Drift
Supply
Strategy
Type
new
Klend
Supply
Strategy
Type
new
Mango
Supply
Strategy
Type
new
Marginfi
Supply
Strategy
Type
new
Solend
Supply
Strategy
Type
shares
Earned
tvl
ui
To
Amount
usd
Earned
usd
To
Amount
Carrot Protocol Documentation
Loading...