###### tags: `defi protocol` # Larix protocol ## 2/8 Breaking change ### Deposit Transaction #### depositReserveLiquidity Instruction - Dappio SDK: > Larix/transaction.ts > createDepositTx --> > Larix/instruction.ts > depositReserveLiquidity - Larix SDK: > src/sdk/models/instructions/depositReserveLiquidity.ts > depositReserveLiquidityInstruction  #### depositToMiner Instruction - Dappio SDK: > Larix/transaction.ts > createDepositTx --> > Larix/instruction.ts > depositToMiner - Larix SDK: > src/sdk/models/instructions/depositMining.ts --> createDepositMiningInstruction  ### Withdraw Transaction - Dappio SDK: > Larix > transaction.ts --> createWithdrawTx > Larix > instruction.ts --> RedeemReserveLiquidity - Larix SDK: > src/sdk/actions/redeemReserve.ts --> redeemReserve > src/sdk/actions/utils/redeemReserveCollateral.tsx --> redeemReserveCollateral  ### ClaimReward Transaction - Dappio SDK: > Larix > transaction.ts --> claimReward > Larix > instruction.ts --> claimReward - Larix SDK: > src/sdk/models/instructions/claimMiningMine.ts --> createClaimMiningMineInstruction  # TODO 1. Check the definition of Miner 2. Check depositToMiner ix struct reason ``` let dataString = "12ffffffffffffffff"; let data = Buffer.from(dataString, "hex"); // const dataLayout = struct([u8("instruction"), u64("depositAmount")]); // const data = Buffer.alloc(dataLayout.span); // dataLayout.encode( // { // instruction: LendingInstruction.DepositMining, // depositAmount: new BN(10), // }, // data // ); ``` 3. Check the difference between Ix#20 (ClaimMining) & Ix#26 (CliamMine) 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up