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](https://docs.loopscale.com/introduction/overview).

Instructions

18 total
InstructionDescription
borrow_principalBorrow principal against a locked loan.
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.
lock_loanLock a loan to commit borrowed principal and collateral.
price_loansPrice loans.
price_strategiesPrice direct lender strategies.
refinance_ledgerRefinance a loan ledger from one strategy to another.
repay_principalRepay principal on a Loopscale loan.
set_loopscale_policySets Loopscale deposit, borrow, and market allowlist policy.
unlock_loanUnlock a previously locked loan.
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.