2023-02-21 23:36:59 -08:00
|
|
|
import { BN } from '@coral-xyz/anchor';
|
2022-05-31 18:38:47 -07:00
|
|
|
|
2022-11-20 20:50:08 -08:00
|
|
|
export type Modify<T, R> = Omit<T, keyof R> & R;
|
|
|
|
|
2022-06-23 01:19:33 -07:00
|
|
|
export class FlashLoanWithdraw {
|
2022-05-31 18:38:47 -07:00
|
|
|
static index: number;
|
|
|
|
static amount: BN;
|
|
|
|
}
|
2022-08-17 03:36:55 -07:00
|
|
|
|
2023-10-06 01:05:56 -07:00
|
|
|
export type FlashLoanType =
|
|
|
|
| { unknown: Record<string, never> }
|
|
|
|
| { swap: Record<string, never> };
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
|
|
export namespace FlashLoanType {
|
|
|
|
export const unknown = { unknown: {} };
|
|
|
|
export const swap = { swap: {} };
|
2022-08-17 03:36:55 -07:00
|
|
|
}
|
2022-09-02 00:42:47 -07:00
|
|
|
|
|
|
|
export class InterestRateParams {
|
|
|
|
util0: number;
|
|
|
|
rate0: number;
|
|
|
|
util1: number;
|
|
|
|
rate1: number;
|
|
|
|
maxRate: number;
|
|
|
|
adjustmentFactor: number;
|
|
|
|
}
|
2022-11-09 04:25:53 -08:00
|
|
|
|
|
|
|
export class OracleConfigParams {
|
|
|
|
confFilter: number;
|
|
|
|
maxStalenessSlots: number | null;
|
|
|
|
}
|