Skip to content

Commit

Permalink
fix: added null type
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Jan 19, 2024
1 parent 5733c70 commit 4ad04ca
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/marginfi-client-v2/src/models/bank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,24 +678,24 @@ enum OracleSetup {

// BankConfigOpt Args
interface BankConfigOpt {
assetWeightInit: WrappedI80F48;
assetWeightMaint: WrappedI80F48;
assetWeightInit: WrappedI80F48 | null;
assetWeightMaint: WrappedI80F48 | null;

liabilityWeightInit: WrappedI80F48;
liabilityWeightMaint: WrappedI80F48;
liabilityWeightInit: WrappedI80F48 | null;
liabilityWeightMaint: WrappedI80F48 | null;

depositLimit: BN;
borrowLimit: BN;
riskTier: { collateral: {} } | { isolated: {} };
totalAssetValueInitLimit: BN;
depositLimit: BN | null;
borrowLimit: BN | null;
riskTier: { collateral: {} } | { isolated: {} } | null;
totalAssetValueInitLimit: BN | null;

interestRateConfig: InterestRateConfigRaw;
operationalState: { paused: {} } | { operational: {} } | { reduceOnly: {} };
interestRateConfig: InterestRateConfigRaw | null;
operationalState: { paused: {} } | { operational: {} } | { reduceOnly: {} } | null;

oracle: {
setup: { none: {} } | { pythEma: {} } | { switchboardV2: {} };
keys: PublicKey[];
}
setup: { none: {} } | { pythEma: {} } | { switchboardV2: {} } ;
keys: PublicKey[] ;
} | null
}


Expand Down

0 comments on commit 4ad04ca

Please sign in to comment.