Archived documentation for
@eco-incorp/sauce@1.0.0. Install this release with npm install --save-exact @eco-incorp/sauce@1.0.0. Links to guides outside this tab open current documentation.carrot, exported from @eco-incorp/sauce/svm.
Generated from the type declarations of @eco-incorp/sauce.
CARROT_PROGRAM_ID
Variable ยท @eco-incorp/sauce/svm
CRT_MINT
Variable ยท @eco-incorp/sauce/svm
CARROT_VAULT_ADDRESS
Variable ยท @eco-incorp/sauce/svm
The one deployed vault - a PDA of ["vault", CRT_MINT], singleton today.
CARROT_TOKEN_2022_MINTS
Variable ยท @eco-incorp/sauce/svm
See the module headerโs TOKEN PROGRAM note - CRT (shares) plus pyUSD are the only Token-2022 mints today.
CARROT_MAX_ASSETS
Variable ยท @eco-incorp/sauce/svm
Fail-loud cap on basket size (not a silent truncation) - see the module
headerโs SELF-DROP SCOPE note. The vault has held exactly 3 assets
(USDC/USDT/pyUSD) for its entire observed history; paramCount below is
sized for this. A real 4th-asset addition needs this constant (and
paramCount) bumped, not a silent misquote.
carrot
Variable ยท @eco-incorp/sauce/svm
parseCarrotDirection
Function ยท @eco-incorp/sauce/svm
carrotAllDirections
Function ยท @eco-incorp/sauce/svm
Every issue:<id> / redeem:<id> direction the fetched vault currently offers, in asset order.
carrotGate
Function ยท @eco-incorp/sauce/svm
Prepare-time direction gate: self-drops the SPECIFIC direction (not the whole vault) if its assetโs oracle reading is stale.
carrotMints
Function ยท @eco-incorp/sauce/svm
carrotApplyDirection
Function ยท @eco-incorp/sauce/svm
PYTH_RECEIVER_PROGRAM_ID
Variable ยท @eco-incorp/sauce/svm
Pyth PriceUpdateV2 (pyth-solana-receiver) layout, confirmed live against all 3 basket oracles.
CARROT_U64_MAX
Variable ยท @eco-incorp/sauce/svm
CarrotAssetSnapshot
Interface ยท @eco-incorp/sauce/svm
CarrotPoolConfig
Interface ยท @eco-incorp/sauce/svm
CarrotDirection
Interface ยท @eco-incorp/sauce/svm
