GLAMIDL Reference

Loopscale Integration Staging

Integration adapter for Loopscale direct-lender strategies and loan positions. It creates/manages vault-owned strategies and loans, prices those positions, and applies Loopscale deposit, borrow, and market allowlist policy. This staging deployment exposes additional or pre-release functionality for review.

Accounts owned or controlled

AccountOwner / authorityPurpose
Loopscale strategy accountsLoopscale program with GLAM vault authorityDirect-lender strategy accounts created and managed for the GLAM vault.
Loopscale loan accountsLoopscale program with GLAM vault authorityLoan records for collateral, principal, repayment, locking, unlocking, and pricing flows.

Integration notes

  • Loopscale Integration Staging must be enabled on the vault before integration actions can run. Delegate permissions are still required for non-owner callers.
  • Relevant official references: Loopscale documentation.

Instructions

21 total
InstructionDescription
borrow_principalBorrow principal against a locked loan.
claim_vault_rewardsClaims vault rewards.
close_loanClose an existing Loopscale loan PDA.
close_strategyClose a direct lender strategy owned by the GLAM vault.
create_loanCreate a new Loopscale loan PDA owned by the GLAM vault.
create_strategyCreate a direct lender strategy owned by the GLAM vault.
deposit_collateralDeposit collateral into a Loopscale loan.
deposit_strategyDeposit principal into a direct lender strategy.
deposit_user_vaultDeposits user vault.
repay_principalRepay principal on a Loopscale loan.
sell_ledgerSell a loan ledger from one strategy to another.
set_borrow_policySet the Loopscale borrow policy (collateral allowlist and market policies).
set_lending_policySet the Loopscale lending policy (allowlists, market policies, and sell-ledger limits).
set_vault_policySet the Loopscale vault policy (vault allowlist).
stake_user_vault_lpStakes user vault lp.
unstake_user_vault_lpUnstakes user vault lp.
update_strategyUpdate direct lender strategy terms.
update_weight_matrixUpdate the collateral weight matrix on a loan.
withdraw_collateralWithdraw collateral from a Loopscale loan.
withdraw_strategyWithdraw principal from a direct lender strategy.
withdraw_user_vaultWithdraws user vault.