Skip to content

Commit

Permalink
chore: update labels
Browse files Browse the repository at this point in the history
  • Loading branch information
foodaka committed Dec 1, 2023
1 parent 8790777 commit 1db8f1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const GeneralStakeUIDataRaw = {
}),
},

stkGHO: {
stkGho: {
stakedTokenTotalSupply: BigNumber.from({
_hex: '0x0',
_isBigNumber: true,
Expand Down Expand Up @@ -486,7 +486,7 @@ export const GeneralStakeUIDataHumanized = {
distributionPerSecond: '0',
distributionEnd: '0',
},
stkGHO: {
gho: {
stakeTokenTotalSupply: '0',
stakeTokenTotalRedeemableAmount: '0',
stakeCooldownSeconds: 0,
Expand Down Expand Up @@ -517,7 +517,7 @@ export const GetUserStakeUIDataHumanized = {
userCooldownAmount: '0',
userIncentivesToClaim: '0',
},
stkGHO: {
gho: {
stakeTokenUserBalance: '0',
underlyingTokenUserBalance: '0',
stakeTokenRedeemableAmount: '0',
Expand Down
26 changes: 13 additions & 13 deletions packages/contract-helpers/src/uiStakeDataProvider-contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class UiStakeDataProvider implements UiStakeDataProviderInterface {
userCooldownTimestamp: stkBptUserData.userCooldownTimestamp,
rewardsToClaim: stkBptUserData.rewardsToClaim,
},
stkGHO: {
stkGho: {
...stkAaveData,
stakedTokenUserBalance: stkAaveUserData.stakedTokenUserBalance,
underlyingTokenUserBalance: stkAaveUserData.underlyingTokenUserBalance,
Expand Down Expand Up @@ -113,7 +113,7 @@ export class UiStakeDataProvider implements UiStakeDataProviderInterface {
userIncentivesToClaim:
contractResult.stkBptData.rewardsToClaim.toString(),
},
stkGHO: {
gho: {
stakeTokenUserBalance:
contractResult.stkAaveData.stakedTokenUserBalance.toString(),
underlyingTokenUserBalance:
Expand All @@ -137,7 +137,7 @@ export class UiStakeDataProvider implements UiStakeDataProviderInterface {
return {
stkAaveData,
stkBptData,
stkGHO: stkAaveData,
stkGho: stkAaveData,
ethPrice,
};
}
Expand Down Expand Up @@ -182,22 +182,22 @@ export class UiStakeDataProvider implements UiStakeDataProviderInterface {
contractResult.stkBptData.distributionPerSecond.toString(),
distributionEnd: contractResult.stkBptData.distributionEnd.toString(),
},
stkGHO: {
gho: {
stakeTokenTotalSupply:
contractResult.stkGHO.stakedTokenTotalSupply.toString(),
contractResult.stkGho.stakedTokenTotalSupply.toString(),
stakeTokenTotalRedeemableAmount:
contractResult.stkGHO.stakedTokenTotalRedeemableAmount.toString(),
contractResult.stkGho.stakedTokenTotalRedeemableAmount.toString(),
stakeCooldownSeconds:
contractResult.stkGHO.stakeCooldownSeconds.toNumber(),
stakeUnstakeWindow: contractResult.stkGHO.stakeUnstakeWindow.toNumber(),
contractResult.stkGho.stakeCooldownSeconds.toNumber(),
stakeUnstakeWindow: contractResult.stkGho.stakeUnstakeWindow.toNumber(),
stakeTokenPriceEth:
contractResult.stkGHO.stakedTokenPriceEth.toString(),
contractResult.stkGho.stakedTokenPriceEth.toString(),
rewardTokenPriceEth:
contractResult.stkGHO.rewardTokenPriceEth.toString(),
stakeApy: contractResult.stkGHO.stakeApy.toString(),
contractResult.stkGho.rewardTokenPriceEth.toString(),
stakeApy: contractResult.stkGho.stakeApy.toString(),
distributionPerSecond:
contractResult.stkGHO.distributionPerSecond.toString(),
distributionEnd: contractResult.stkGHO.distributionEnd.toString(),
contractResult.stkGho.distributionPerSecond.toString(),
distributionEnd: contractResult.stkGho.distributionEnd.toString(),
},
ethPriceUsd: contractResult.ethPrice.toString(),
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export type GeneralStakeUIData = {
stakedTokenPriceEth: BigNumber;
stakeApy: BigNumber;
};
stkGHO: {
stkGho: {
stakedTokenTotalSupply: BigNumber;
stakedTokenTotalRedeemableAmount: BigNumber;
stakeCooldownSeconds: BigNumber;
Expand Down Expand Up @@ -54,7 +54,7 @@ export type GetUserStakeUIData = {
userCooldownTimestamp: number;
rewardsToClaim: BigNumber;
};
stkGHO: {
stkGho: {
stakedTokenUserBalance: BigNumber;
underlyingTokenUserBalance: BigNumber;
stakedTokenRedeemableAmount: BigNumber;
Expand Down Expand Up @@ -89,7 +89,7 @@ export type GeneralStakeUIDataHumanized = {
distributionEnd: string;
};

stkGHO: {
gho: {
stakeTokenTotalSupply: string;
stakeTokenTotalRedeemableAmount: string;
stakeCooldownSeconds: number;
Expand Down Expand Up @@ -121,7 +121,7 @@ export type GetUserStakeUIDataHumanized = {
userCooldownTimestamp: number;
userIncentivesToClaim: string;
};
stkGHO: {
gho: {
stakeTokenUserBalance: string;
underlyingTokenUserBalance: string;
stakeTokenRedeemableAmount: string;
Expand Down

0 comments on commit 1db8f1a

Please sign in to comment.