Skip to content

@armada/sdk / index / buildLendAndShieldCalldata

Function: buildLendAndShieldCalldata() ​

buildLendAndShieldCalldata(tx, params): TransactCalldata

Defined in: src/tx/wrappers.ts:62

lendAndShield(tx, npk, shieldCiphertext) — unshield USDC into the yield adapter, which deposits to the vault and re-shields vault shares to npk. to is the ArmadaYieldAdapter. The proof must bind boundParams.adaptParams = encodeYieldDepositBinding(npk, encryptedBundle, shieldKey).

Parameters ​

tx ​

TransactionData

params ​

adapterAddress ​

`0x${string}`

npk ​

bigint

shieldCiphertext ​

ShieldCiphertextArg

Returns ​

TransactCalldata