Skip to content

Commit

Permalink
chore(): update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ-Cro committed Jan 6, 2025
1 parent 43c8b05 commit 9cf5ddf
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 127 deletions.
40 changes: 20 additions & 20 deletions src/main-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2420,8 +2420,6 @@ export class MainClient extends BaseRestClient {
return this.postPrivate('sapi/v1/sol-staking/sol/claim');
}



/**
*
* STAKING Endpoints - SOL Staking- History
Expand Down Expand Up @@ -2473,13 +2471,18 @@ export class MainClient extends BaseRestClient {
rows: SolBoostRewardsHistoryRecord[];
total: number;
}> {
return this.getPrivate('sapi/v1/sol-staking/sol/history/boostRewardsHistory', params);
return this.getPrivate(
'sapi/v1/sol-staking/sol/history/boostRewardsHistory',
params,
);
}

getSolUnclaimedRewards(): Promise<{
amount: string;
rewardsAsset: string;
}[]> {
getSolUnclaimedRewards(): Promise<
{
amount: string;
rewardsAsset: string;
}[]
> {
return this.getPrivate('sapi/v1/sol-staking/sol/history/unclaimedRewards');
}

Expand Down Expand Up @@ -2712,7 +2715,7 @@ export class MainClient extends BaseRestClient {
}

repayCryptoLoanFlexibleWithCollateral(
params: RepayCryptoLoanFlexibleWithCollateralParams
params: RepayCryptoLoanFlexibleWithCollateralParams,
): Promise<RepayCryptoLoanFlexibleWithCollateralResponse> {
return this.postPrivate('sapi/v2/loan/flexible/repay/collateral', params);
}
Expand Down Expand Up @@ -2741,20 +2744,17 @@ export class MainClient extends BaseRestClient {
);
}

getFlexibleLoanCollateralRepayRate(
params: {
loanCoin: string;
collateralCoin: string;
}
): Promise<{
getFlexibleLoanCollateralRepayRate(params: {
loanCoin: string;
collateralCoin: string;
}): Promise<{
loanCoin: string;
collateralCoin: string;
rate: string;
}> {
return this.getPrivate('sapi/v2/loan/flexible/repay/rate', params);
}


getLoanFlexibleBorrowHistory(
params: GetFlexibleCryptoLoanBorrowHistoryParams,
): Promise<{
Expand All @@ -2774,7 +2774,7 @@ export class MainClient extends BaseRestClient {
}

getFlexibleLoanLiquidationHistory(
params?: GetFlexibleLoanLiquidationHistoryParams
params?: GetFlexibleLoanLiquidationHistoryParams,
): Promise<{
rows: FlexibleLoanLiquidationHistoryRecord[];
total: number;
Expand All @@ -2791,8 +2791,6 @@ export class MainClient extends BaseRestClient {
return this.getPrivate('sapi/v2/loan/flexible/repay/history', params);
}



/**
*
* CRYPTO LOAN Endpoints - Stable rate - Market data
Expand Down Expand Up @@ -3504,12 +3502,14 @@ export class MainClient extends BaseRestClient {
return this.getPrivate('sapi/v1/portfolio/balance', params);
}

mintPortfolioMarginBFUSD(params: PMProMintBFUSDParams): Promise<PMProMintBFUSDResponse> {
mintPortfolioMarginBFUSD(
params: PMProMintBFUSDParams,
): Promise<PMProMintBFUSDResponse> {
return this.postPrivate('sapi/v1/portfolio/mint', params);
}

redeemPortfolioMarginBFUSD(params: {
fromAsset: string; // BFUSD only
fromAsset: string; // BFUSD only
targetAsset: string; // USDT only
amount: number;
}): Promise<PMProRedeemBFUSDResponse> {
Expand Down
Loading

0 comments on commit 9cf5ddf

Please sign in to comment.