EVM Deploy
Deposits LBTC into a DeFi vault for yield generation.
Basic Usage
import { createLombardSDK, Chain, AssetId, DeployProtocol } from '@lombard.finance/sdk';
import { config } from './lib/lombard';
const sdk = createLombardSDK(config);
const deploy = sdk.chain.evm.deploy({
sourceChain: Chain.ETHEREUM,
assetIn: AssetId.LBTC,
deploy: {
protocol: DeployProtocol.Veda,
},
});
await deploy.prepare({
amount: '0.5',
});
const result = await deploy.execute();Parameters
Deploy Options
| Parameter | Type | Required | Description |
|---|---|---|---|
sourceChain | Chain | Yes | Chain where LBTC resides |
assetIn | AssetId | Yes | AssetId.LBTC |
deploy.protocol | DeployProtocol | Yes | Vault protocol |
deploy.slippage | number | No | Slippage tolerance in basis points |
deploy.deadline | number | No | Transaction deadline |
Prepare Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
amount | string | Yes | LBTC quantity to deploy |
Supported Protocols
DeployProtocol.Veda;
DeployProtocol.Silo;Status Flow
IDLE → NEEDS_APPROVAL → READY → CONFIRMING → COMPLETEDLast updated on