diff --git a/src/models/lending/market.ts b/src/models/lending/market.ts index ecde757..434ab09 100644 --- a/src/models/lending/market.ts +++ b/src/models/lending/market.ts @@ -5,11 +5,12 @@ import * as Layout from "./../../utils/layout"; export const LendingMarketLayout: typeof BufferLayout.Structure = BufferLayout.struct( [ BufferLayout.u8('version'), + BufferLayout.u8('bumpSeed'), Layout.publicKey("quoteMint"), Layout.publicKey("tokenProgramId"), // extra space for future contract changes - BufferLayout.blob(63, "padding"), + BufferLayout.blob(62, "padding"), ], ); diff --git a/src/models/lending/obligation.ts b/src/models/lending/obligation.ts index bb24ee0..7da30b6 100644 --- a/src/models/lending/obligation.ts +++ b/src/models/lending/obligation.ts @@ -6,8 +6,6 @@ import * as Layout from "./../../utils/layout"; export const LendingObligationLayout: typeof BufferLayout.Structure = BufferLayout.struct( [ BufferLayout.u8('version'), - /// Slot when obligation was updated. Used for calculating interest. - Layout.uint64("lastUpdateSlot"), /// Amount of collateral tokens deposited for this obligation Layout.uint64("depositedCollateral"), /// Reserve which collateral tokens were deposited into @@ -33,7 +31,6 @@ export const isLendingObligation = (info: AccountInfo) => { export interface LendingObligation { version: number; - lastUpdateSlot: BN; depositedCollateral: BN; collateralReserve: PublicKey; cumulativeBorrowRateWad: BN; // decimals