Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const mockStakeData: StakeDataStruct = {
symbol: 'MST',
price: BigNumber.from('1000000000000000000'),
totalAssets: BigNumber.from('1000000000000000000000000'),
targetLiquidity: BigNumber.from('2000000000000000000000000'),
underlyingTokenAddress: '0xabcdefabcdefabcdefabcdefabcdefabcdefabcd',
underlyingTokenName: 'Mock Underlying Token',
underlyingTokenSymbol: 'MUT',
Expand Down Expand Up @@ -119,6 +120,7 @@ describe('Umbrella StakeDataProvider', () => {
...mockStakeData,
totalAssets: '1000000000000000000000000',
price: '1000000000000000000',
targetLiquidity: '2000000000000000000000000',
cooldownSeconds: 86400,
unstakeWindowSeconds: 43200,
rewards: [
Expand Down
2 changes: 2 additions & 0 deletions packages/contract-helpers/src/umbrella/StakeDataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface StakeData {
symbol: string;
price: string;
totalAssets: string;
targetLiquidity: string;
underlyingTokenAddress: string;
underlyingTokenName: string;
underlyingTokenSymbol: string;
Expand Down Expand Up @@ -96,6 +97,7 @@ export class StakeDataProviderService {
symbol: r.symbol,
price: r.price.toString(),
totalAssets: r.totalAssets.toString(),
targetLiquidity: r.targetLiquidity.toString(),
underlyingTokenAddress: r.underlyingTokenAddress,
underlyingTokenName: r.underlyingTokenName,
underlyingTokenSymbol: r.underlyingTokenSymbol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export type StakeDataStruct = {
symbol: string;
price: BigNumberish;
totalAssets: BigNumberish;
targetLiquidity: BigNumberish;
underlyingTokenAddress: string;
underlyingTokenName: string;
underlyingTokenSymbol: string;
Expand Down Expand Up @@ -119,6 +120,7 @@ export type StakeDataStructOutput = [
symbol: string;
price: BigNumber;
totalAssets: BigNumber;
targetLiquidity: BigNumber;
underlyingTokenAddress: string;
underlyingTokenName: string;
underlyingTokenSymbol: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ const _abi = [
type: 'uint256',
internalType: 'uint256',
},
{
name: 'targetLiquidity',
type: 'uint256',
internalType: 'uint256',
},
{
name: 'underlyingTokenAddress',
type: 'address',
Expand Down
Loading