@aurigami/sdk 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.5.8",
2
+ "version": "1.5.9",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
package/src/SDK.ts CHANGED
@@ -15,6 +15,7 @@ import {
15
15
  ALL_STAKING_POOLS,
16
16
  BORROW_LIMIT_BUFFER,
17
17
  DECIMAL_PRECISION,
18
+ INF,
18
19
  networkAddresses,
19
20
  } from './constants';
20
21
  import { decimalFactor, isSameAddress } from './helpers';
@@ -327,6 +328,12 @@ export class SdkReadWrite extends SdkRead {
327
328
  );
328
329
  }
329
330
 
331
+ public async claimLpRewards(): Promise<TransactionResponse> {
332
+ return this._auriFairLaunch
333
+ .connect(this._networkConnection.signer!)
334
+ .harvest(await this._networkConnection.signer!.getAddress(), 0, INF);
335
+ }
336
+
330
337
  public async stake(amount: TokenAmount): Promise<TransactionResponse> {
331
338
  return new StakingReadWrite(this._networkConnection).stake(amount);
332
339
  }