UNPKG

@drift-labs/sdk

Version:
14 lines (13 loc) 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildUpdateFundingRateInstruction = void 0; async function buildUpdateFundingRateInstruction(args) { return await args.program.instruction.updateFundingRate(args.perpMarketIndex, { accounts: { state: args.state, perpMarket: args.perpMarket, oracle: args.oracle, }, }); } exports.buildUpdateFundingRateInstruction = buildUpdateFundingRateInstruction;