hedge-web3 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,8 +31,4 @@ export class StakingPool {
31
31
  // this.currentRewardsPerDay = DecimalFromU128(poolInfo.currentRewardsPerDay)
32
32
  }
33
33
 
34
- // updateFeeAccumulator () {
35
- // this.feeAccumulator = (this.totalFeesNow - this.totalFeesPrevious) / this.deposits
36
- // this.totalFeesPrevious = this.totalFeesNow
37
- // }
38
34
  }
@@ -1,8 +1,8 @@
1
1
  import { parseIdlErrors, ProgramError } from '@project-serum/anchor'
2
- import { vaultIdl } from '../idl/idl'
2
+ import { IDL } from '../idl/vault'
3
3
 
4
4
  export function parseAnchorErrors (error: any): void {
5
- const idlErrors = parseIdlErrors(vaultIdl)
5
+ const idlErrors = parseIdlErrors(IDL)
6
6
  const parsedError = ProgramError.parse(error, idlErrors)
7
7
  if (parsedError !== null) {
8
8
  throw parsedError
@@ -1,2 +0,0 @@
1
- import { Idl } from '@project-serum/anchor';
2
- export declare const vaultIdl: Idl;