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.
- package/declarations/Constants.d.ts +1 -1
- package/declarations/idl/vault.d.ts +893 -756
- package/lib/Constants.js +3 -3
- package/lib/idl/vault.js +893 -756
- package/lib/utils/Errors.js +2 -2
- package/package.json +1 -1
- package/src/Constants.ts +73 -31
- package/src/idl/vault.ts +1780 -1506
- package/src/state/StakingPool.ts +0 -4
- package/src/utils/Errors.ts +2 -2
- package/declarations/idl/idl.d.ts +0 -2
- package/lib/idl/idl.js +0 -1475
- package/src/idl/idl.ts +0 -1474
package/src/state/StakingPool.ts
CHANGED
@@ -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
|
}
|
package/src/utils/Errors.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { parseIdlErrors, ProgramError } from '@project-serum/anchor'
|
2
|
-
import {
|
2
|
+
import { IDL } from '../idl/vault'
|
3
3
|
|
4
4
|
export function parseAnchorErrors (error: any): void {
|
5
|
-
const idlErrors = parseIdlErrors(
|
5
|
+
const idlErrors = parseIdlErrors(IDL)
|
6
6
|
const parsedError = ProgramError.parse(error, idlErrors)
|
7
7
|
if (parsedError !== null) {
|
8
8
|
throw parsedError
|