Skip to content

Commit

Permalink
feat: implement querying of remaining Stability Pool LQTY reward
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Mar 27, 2021
1 parent c5b6c1e commit 1850dce
Show file tree
Hide file tree
Showing 26 changed files with 177 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/sdk/lib-base.liquitystorebasestate.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export interface LiquityStoreBaseState
| [ownFrontend](./lib-base.liquitystorebasestate.ownfrontend.md) | [FrontendStatus](./lib-base.frontendstatus.md) | Status of user's own frontend. |
| [price](./lib-base.liquitystorebasestate.price.md) | [Decimal](./lib-base.decimal.md) | Current price of the native currency (e.g. Ether) in USD. |
| [remainingLiquidityMiningLQTYReward](./lib-base.liquitystorebasestate.remainingliquiditymininglqtyreward.md) | [Decimal](./lib-base.decimal.md) | Remaining LQTY that will be collectively rewarded to liquidity miners. |
| [remainingStabilityPoolLQTYReward](./lib-base.liquitystorebasestate.remainingstabilitypoollqtyreward.md) | [Decimal](./lib-base.decimal.md) | Remaining LQTY that will be collectively rewarded to stability depositors. |
| [stabilityDeposit](./lib-base.liquitystorebasestate.stabilitydeposit.md) | [StabilityDeposit](./lib-base.stabilitydeposit.md) | User's stability deposit. |
| [total](./lib-base.liquitystorebasestate.total.md) | [Trove](./lib-base.trove.md) | Total collateral and debt in the Liquity system. |
| [totalRedistributed](./lib-base.liquitystorebasestate.totalredistributed.md) | [Trove](./lib-base.trove.md) | Total collateral and debt per stake that has been liquidated through redistribution. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [LiquityStoreBaseState](./lib-base.liquitystorebasestate.md) &gt; [remainingStabilityPoolLQTYReward](./lib-base.liquitystorebasestate.remainingstabilitypoollqtyreward.md)

## LiquityStoreBaseState.remainingStabilityPoolLQTYReward property

Remaining LQTY that will be collectively rewarded to stability depositors.

<b>Signature:</b>

```typescript
remainingStabilityPoolLQTYReward: Decimal;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-base](./lib-base.md) &gt; [ReadableLiquity](./lib-base.readableliquity.md) &gt; [getRemainingStabilityPoolLQTYReward](./lib-base.readableliquity.getremainingstabilitypoollqtyreward.md)

## ReadableLiquity.getRemainingStabilityPoolLQTYReward() method

Get the remaining LQTY that will be collectively rewarded to stability depositors.

<b>Signature:</b>

```typescript
getRemainingStabilityPoolLQTYReward(): Promise<Decimal>;
```
<b>Returns:</b>

Promise&lt;[Decimal](./lib-base.decimal.md)<!-- -->&gt;

1 change: 1 addition & 0 deletions docs/sdk/lib-base.readableliquity.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Implemented by [EthersLiquity](./lib-ethers.ethersliquity.md)<!-- -->.
| [getNumberOfTroves()](./lib-base.readableliquity.getnumberoftroves.md) | Get number of Troves that are currently open. |
| [getPrice()](./lib-base.readableliquity.getprice.md) | Get the current price of the native currency (e.g. Ether) in USD. |
| [getRemainingLiquidityMiningLQTYReward()](./lib-base.readableliquity.getremainingliquiditymininglqtyreward.md) | Get the remaining LQTY that will be collectively rewarded to liquidity miners. |
| [getRemainingStabilityPoolLQTYReward()](./lib-base.readableliquity.getremainingstabilitypoollqtyreward.md) | Get the remaining LQTY that will be collectively rewarded to stability depositors. |
| [getStabilityDeposit(address)](./lib-base.readableliquity.getstabilitydeposit.md) | Get the current state of a Stability Deposit. |
| [getTotal()](./lib-base.readableliquity.gettotal.md) | Get the total amount of collateral and debt in the Liquity system. |
| [getTotalRedistributed()](./lib-base.readableliquity.gettotalredistributed.md) | Get the total collateral and debt per stake that has been liquidated through redistribution. |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-ethers](./lib-ethers.md) &gt; [EthersLiquity](./lib-ethers.ethersliquity.md) &gt; [getRemainingStabilityPoolLQTYReward](./lib-ethers.ethersliquity.getremainingstabilitypoollqtyreward.md)

## EthersLiquity.getRemainingStabilityPoolLQTYReward() method

Get the remaining LQTY that will be collectively rewarded to stability depositors.

<b>Signature:</b>

```typescript
getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal>;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| overrides | [EthersCallOverrides](./lib-ethers.etherscalloverrides.md) | |

<b>Returns:</b>

Promise&lt;[Decimal](./lib-base.decimal.md)<!-- -->&gt;

1 change: 1 addition & 0 deletions docs/sdk/lib-ethers.ethersliquity.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ The constructor for this class is marked as internal. Third-party code should no
| [getNumberOfTroves(overrides)](./lib-ethers.ethersliquity.getnumberoftroves.md) | | Get number of Troves that are currently open. |
| [getPrice(overrides)](./lib-ethers.ethersliquity.getprice.md) | | Get the current price of the native currency (e.g. Ether) in USD. |
| [getRemainingLiquidityMiningLQTYReward(overrides)](./lib-ethers.ethersliquity.getremainingliquiditymininglqtyreward.md) | | Get the remaining LQTY that will be collectively rewarded to liquidity miners. |
| [getRemainingStabilityPoolLQTYReward(overrides)](./lib-ethers.ethersliquity.getremainingstabilitypoollqtyreward.md) | | Get the remaining LQTY that will be collectively rewarded to stability depositors. |
| [getStabilityDeposit(address, overrides)](./lib-ethers.ethersliquity.getstabilitydeposit.md) | | Get the current state of a Stability Deposit. |
| [getTotal(overrides)](./lib-ethers.ethersliquity.gettotal.md) | | Get the total amount of collateral and debt in the Liquity system. |
| [getTotalRedistributed(overrides)](./lib-ethers.ethersliquity.gettotalredistributed.md) | | Get the total collateral and debt per stake that has been liquidated through redistribution. |
Expand Down
1 change: 1 addition & 0 deletions docs/sdk/lib-ethers.ethersliquityconnection.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ Exposed through [ReadableEthersLiquity.connection](./lib-ethers.readableethersli
| [deploymentDate](./lib-ethers.ethersliquityconnection.deploymentdate.md) | Date | Date when the Liquity contracts were deployed. |
| [provider](./lib-ethers.ethersliquityconnection.provider.md) | [EthersProvider](./lib-ethers.ethersprovider.md) | Ethers <code>Provider</code> used for connecting to the network. |
| [signer?](./lib-ethers.ethersliquityconnection.signer.md) | [EthersSigner](./lib-ethers.etherssigner.md) | <i>(Optional)</i> Ethers <code>Signer</code> used for sending transactions. |
| [totalStabilityPoolLQTYReward](./lib-ethers.ethersliquityconnection.totalstabilitypoollqtyreward.md) | [Decimal](./lib-base.decimal.md) | Total amount of LQTY allocated for rewarding stability depositors. |
| [version](./lib-ethers.ethersliquityconnection.version.md) | string | Version of the Liquity contracts (Git commit hash). |
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-ethers](./lib-ethers.md) &gt; [EthersLiquityConnection](./lib-ethers.ethersliquityconnection.md) &gt; [totalStabilityPoolLQTYReward](./lib-ethers.ethersliquityconnection.totalstabilitypoollqtyreward.md)

## EthersLiquityConnection.totalStabilityPoolLQTYReward property

Total amount of LQTY allocated for rewarding stability depositors.

<b>Signature:</b>

```typescript
readonly totalStabilityPoolLQTYReward: Decimal;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@liquity/lib-ethers](./lib-ethers.md) &gt; [ReadableEthersLiquity](./lib-ethers.readableethersliquity.md) &gt; [getRemainingStabilityPoolLQTYReward](./lib-ethers.readableethersliquity.getremainingstabilitypoollqtyreward.md)

## ReadableEthersLiquity.getRemainingStabilityPoolLQTYReward() method

Get the remaining LQTY that will be collectively rewarded to stability depositors.

<b>Signature:</b>

```typescript
getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal>;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| overrides | [EthersCallOverrides](./lib-ethers.etherscalloverrides.md) | |

<b>Returns:</b>

Promise&lt;[Decimal](./lib-base.decimal.md)<!-- -->&gt;

1 change: 1 addition & 0 deletions docs/sdk/lib-ethers.readableethersliquity.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The constructor for this class is marked as internal. Third-party code should no
| [getNumberOfTroves(overrides)](./lib-ethers.readableethersliquity.getnumberoftroves.md) | | Get number of Troves that are currently open. |
| [getPrice(overrides)](./lib-ethers.readableethersliquity.getprice.md) | | Get the current price of the native currency (e.g. Ether) in USD. |
| [getRemainingLiquidityMiningLQTYReward(overrides)](./lib-ethers.readableethersliquity.getremainingliquiditymininglqtyreward.md) | | Get the remaining LQTY that will be collectively rewarded to liquidity miners. |
| [getRemainingStabilityPoolLQTYReward(overrides)](./lib-ethers.readableethersliquity.getremainingstabilitypoollqtyreward.md) | | Get the remaining LQTY that will be collectively rewarded to stability depositors. |
| [getStabilityDeposit(address, overrides)](./lib-ethers.readableethersliquity.getstabilitydeposit.md) | | Get the current state of a Stability Deposit. |
| [getTotal(overrides)](./lib-ethers.readableethersliquity.gettotal.md) | | Get the total amount of collateral and debt in the Liquity system. |
| [getTotalRedistributed(overrides)](./lib-ethers.readableethersliquity.gettotalredistributed.md) | | Get the total collateral and debt per stake that has been liquidated through redistribution. |
Expand Down
4 changes: 4 additions & 0 deletions packages/lib-base/etc/lib-base.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export class _CachedReadableLiquity<T extends unknown[]> implements _ReadableLiq
// (undocumented)
getRemainingLiquidityMiningLQTYReward(...extraParams: T): Promise<Decimal>;
// (undocumented)
getRemainingStabilityPoolLQTYReward(...extraParams: T): Promise<Decimal>;
// (undocumented)
getStabilityDeposit(address?: string, ...extraParams: T): Promise<StabilityDeposit>;
// (undocumented)
getTotal(...extraParams: T): Promise<Trove>;
Expand Down Expand Up @@ -271,6 +273,7 @@ export interface LiquityStoreBaseState {
ownFrontend: FrontendStatus;
price: Decimal;
remainingLiquidityMiningLQTYReward: Decimal;
remainingStabilityPoolLQTYReward: Decimal;
// @internal (undocumented)
_riskiestTroveBeforeRedistribution: TroveWithPendingRedistribution;
stabilityDeposit: StabilityDeposit;
Expand Down Expand Up @@ -499,6 +502,7 @@ export interface ReadableLiquity {
getNumberOfTroves(): Promise<number>;
getPrice(): Promise<Decimal>;
getRemainingLiquidityMiningLQTYReward(): Promise<Decimal>;
getRemainingStabilityPoolLQTYReward(): Promise<Decimal>;
getStabilityDeposit(address?: string): Promise<StabilityDeposit>;
getTotal(): Promise<Trove>;
getTotalRedistributed(): Promise<Trove>;
Expand Down
12 changes: 10 additions & 2 deletions packages/lib-base/src/LiquityStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ export interface LiquityStoreBaseState {
/** User's stability deposit. */
stabilityDeposit: StabilityDeposit;

/** Remaining LQTY that will be collectively rewarded to stability depositors. */
remainingStabilityPoolLQTYReward: Decimal;

/** @internal */
_feesInNormalMode: Fees;

Expand Down Expand Up @@ -397,9 +400,8 @@ export abstract class LiquityStore<T = unknown> {
baseStateUpdate.totalStakedUniTokens
),

liquidityMiningLQTYReward: this._updateIfChanged(
liquidityMiningLQTYReward: this._silentlyUpdateIfChanged(
eq,
"liquidityMiningLQTYReward",
baseState.liquidityMiningLQTYReward,
baseStateUpdate.liquidityMiningLQTYReward
),
Expand Down Expand Up @@ -443,6 +445,12 @@ export abstract class LiquityStore<T = unknown> {
baseStateUpdate.stabilityDeposit
),

remainingStabilityPoolLQTYReward: this._silentlyUpdateIfChanged(
eq,
baseState.remainingStabilityPoolLQTYReward,
baseStateUpdate.remainingStabilityPoolLQTYReward
),

_feesInNormalMode: this._silentlyUpdateIfChanged(
equals,
baseState._feesInNormalMode,
Expand Down
5 changes: 5 additions & 0 deletions packages/lib-base/src/ReadableLiquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ export interface ReadableLiquity {
*/
getStabilityDeposit(address?: string): Promise<StabilityDeposit>;

/**
* Get the remaining LQTY that will be collectively rewarded to stability depositors.
*/
getRemainingStabilityPoolLQTYReward(): Promise<Decimal>;

/**
* Get the total amount of LUSD currently deposited in the Stability Pool.
*/
Expand Down
7 changes: 7 additions & 0 deletions packages/lib-base/src/_CachedReadableLiquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ export class _CachedReadableLiquity<T extends unknown[]>
);
}

async getRemainingStabilityPoolLQTYReward(...extraParams: T): Promise<Decimal> {
return (
this._cache.getRemainingStabilityPoolLQTYReward(...extraParams) ??
this._readable.getRemainingStabilityPoolLQTYReward(...extraParams)
);
}

async getLUSDInStabilityPool(...extraParams: T): Promise<Decimal> {
return (
this._cache.getLUSDInStabilityPool(...extraParams) ??
Expand Down
1 change: 1 addition & 0 deletions packages/lib-ethers/deployments/default/goerli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6201cfd8c83fc3828483e17f5f05ca4168f56c0c",
"deploymentDate": 1616755061000,
"bootstrapPeriod": 1209600,
"totalStabilityPoolLQTYReward": "32000000",
"_priceFeedIsTestnet": true,
"_uniTokenIsMock": false,
"_isDev": false,
Expand Down
1 change: 1 addition & 0 deletions packages/lib-ethers/deployments/default/kovan.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6201cfd8c83fc3828483e17f5f05ca4168f56c0c",
"deploymentDate": 1616753759000,
"bootstrapPeriod": 1209600,
"totalStabilityPoolLQTYReward": "32000000",
"_priceFeedIsTestnet": false,
"_uniTokenIsMock": false,
"_isDev": false,
Expand Down
1 change: 1 addition & 0 deletions packages/lib-ethers/deployments/default/rinkeby.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6201cfd8c83fc3828483e17f5f05ca4168f56c0c",
"deploymentDate": 1616758339000,
"bootstrapPeriod": 1209600,
"totalStabilityPoolLQTYReward": "32000000",
"_priceFeedIsTestnet": true,
"_uniTokenIsMock": false,
"_isDev": false,
Expand Down
1 change: 1 addition & 0 deletions packages/lib-ethers/deployments/default/ropsten.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "6201cfd8c83fc3828483e17f5f05ca4168f56c0c",
"deploymentDate": 1616754932000,
"bootstrapPeriod": 1209600,
"totalStabilityPoolLQTYReward": "32000000",
"_priceFeedIsTestnet": true,
"_uniTokenIsMock": false,
"_isDev": false,
Expand Down
5 changes: 5 additions & 0 deletions packages/lib-ethers/etc/lib-ethers.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export class EthersLiquity implements ReadableEthersLiquity, TransactableLiquity
// @internal (undocumented)
_getRemainingLiquidityMiningLQTYRewardCalculator(overrides?: EthersCallOverrides): Promise<(blockTimestamp: number) => Decimal>;
// (undocumented)
getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal>;
// (undocumented)
getStabilityDeposit(address?: string, overrides?: EthersCallOverrides): Promise<StabilityDeposit>;
// (undocumented)
getTotal(overrides?: EthersCallOverrides): Promise<Trove>;
Expand Down Expand Up @@ -230,6 +232,7 @@ export interface EthersLiquityConnection extends EthersLiquityConnectionOptional
readonly _priceFeedIsTestnet: boolean;
readonly provider: EthersProvider;
readonly signer?: EthersSigner;
readonly totalStabilityPoolLQTYReward: Decimal;
readonly version: string;
}

Expand Down Expand Up @@ -436,6 +439,8 @@ export class ReadableEthersLiquity implements ReadableLiquity {
// @internal (undocumented)
_getRemainingLiquidityMiningLQTYRewardCalculator(overrides?: EthersCallOverrides): Promise<(blockTimestamp: number) => Decimal>;
// (undocumented)
getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal>;
// (undocumented)
getStabilityDeposit(address?: string, overrides?: EthersCallOverrides): Promise<StabilityDeposit>;
// (undocumented)
getTotal(overrides?: EthersCallOverrides): Promise<Trove>;
Expand Down
3 changes: 3 additions & 0 deletions packages/lib-ethers/src/BlockPolledLiquityStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class BlockPolledLiquityStore extends LiquityStore<BlockPolledLiquityStor
totalStakedLQTY: this._readable.getTotalStakedLQTY({ blockTag }),
_riskiestTroveBeforeRedistribution: this._getRiskiestTroveBeforeRedistribution({ blockTag }),
totalStakedUniTokens: this._readable.getTotalStakedUniTokens({ blockTag }),
remainingStabilityPoolLQTYReward: this._readable.getRemainingStabilityPoolLQTYReward({
blockTag
}),

frontend: frontendTag
? this._readable.getFrontendStatus(frontendTag, { blockTag })
Expand Down
5 changes: 5 additions & 0 deletions packages/lib-ethers/src/EthersLiquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ export class EthersLiquity implements ReadableEthersLiquity, TransactableLiquity
return this._readable.getStabilityDeposit(address, overrides);
}

/** {@inheritDoc @liquity/lib-base#ReadableLiquity.getRemainingStabilityPoolLQTYReward} */
getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal> {
return this._readable.getRemainingStabilityPoolLQTYReward(overrides);
}

/** {@inheritDoc @liquity/lib-base#ReadableLiquity.getLUSDInStabilityPool} */
getLUSDInStabilityPool(overrides?: EthersCallOverrides): Promise<Decimal> {
return this._readable.getLUSDInStabilityPool(overrides);
Expand Down
8 changes: 7 additions & 1 deletion packages/lib-ethers/src/EthersLiquityConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { BigNumber } from "@ethersproject/bignumber";
import { Block, BlockTag } from "@ethersproject/abstract-provider";
import { Signer } from "@ethersproject/abstract-signer";

import { Decimal } from "@liquity/lib-base";

import devOrNull from "../deployments/dev.json";
import goerli from "../deployments/goerli.json";
import kovan from "../deployments/kovan.json";
Expand Down Expand Up @@ -65,6 +67,9 @@ export interface EthersLiquityConnection extends EthersLiquityConnectionOptional
/** Time period (in seconds) after `deploymentDate` during which redemptions are disabled. */
readonly bootstrapPeriod: number;

/** Total amount of LQTY allocated for rewarding stability depositors. */
readonly totalStabilityPoolLQTYReward: Decimal;

/** A mapping of Liquity contracts' names to their addresses. */
readonly addresses: Record<string, string>;

Expand All @@ -90,7 +95,7 @@ const connectionFrom = (
signer: EthersSigner | undefined,
_contracts: _LiquityContracts,
_multicall: _Multicall | undefined,
{ deploymentDate, ...deployment }: _LiquityDeploymentJSON,
{ deploymentDate, totalStabilityPoolLQTYReward, ...deployment }: _LiquityDeploymentJSON,
optionalParams?: EthersLiquityConnectionOptionalParams
): _InternalEthersLiquityConnection => {
if (
Expand All @@ -107,6 +112,7 @@ const connectionFrom = (
_contracts,
_multicall,
deploymentDate: new Date(deploymentDate),
totalStabilityPoolLQTYReward: Decimal.from(totalStabilityPoolLQTYReward),
...deployment,
...optionalParams
});
Expand Down
17 changes: 17 additions & 0 deletions packages/lib-ethers/src/ReadableEthersLiquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,17 @@ export class ReadableEthersLiquity implements ReadableLiquity {
return new StabilityDeposit(initialLUSD, currentLUSD, collateralGain, lqtyReward);
}

/** {@inheritDoc @liquity/lib-base#ReadableLiquity.getRemainingStabilityPoolLQTYReward} */
async getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Promise<Decimal> {
const { communityIssuance } = _getContracts(this.connection);

const issuanceCap = this.connection.totalStabilityPoolLQTYReward;
const totalLQTYIssued = decimalify(await communityIssuance.totalLQTYIssued({ ...overrides }));

// totalLQTYIssued approaches but never reaches issuanceCap
return issuanceCap.sub(totalLQTYIssued);
}

/** {@inheritDoc @liquity/lib-base#ReadableLiquity.getLUSDInStabilityPool} */
getLUSDInStabilityPool(overrides?: EthersCallOverrides): Promise<Decimal> {
const { stabilityPool } = _getContracts(this.connection);
Expand Down Expand Up @@ -602,6 +613,12 @@ class BlockPolledLiquityStoreBasedCache
}
}

getRemainingStabilityPoolLQTYReward(overrides?: EthersCallOverrides): Decimal | undefined {
if (this._blockHit(overrides)) {
return this._store.state.remainingStabilityPoolLQTYReward;
}
}

getLUSDInStabilityPool(overrides?: EthersCallOverrides): Decimal | undefined {
if (this._blockHit(overrides)) {
return this._store.state.lusdInStabilityPool;
Expand Down
1 change: 1 addition & 0 deletions packages/lib-ethers/src/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export interface _LiquityDeploymentJSON {
readonly version: string;
readonly deploymentDate: number;
readonly bootstrapPeriod: number;
readonly totalStabilityPoolLQTYReward: string;
readonly _priceFeedIsTestnet: boolean;
readonly _uniTokenIsMock: boolean;
readonly _isDev: boolean;
Expand Down

0 comments on commit 1850dce

Please sign in to comment.