@gearbox-protocol/sdk 3.0.0-next.253 → 3.0.0-next.255
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.
|
@@ -258,7 +258,7 @@ class GearboxRewardsApi {
|
|
|
258
258
|
if (!airdropDistributorAddress)
|
|
259
259
|
throw new Error(`V2 rewards are not supported on chain: ${network}`);
|
|
260
260
|
const merkleData = await this.getMerkle(provider, airdropDistributorAddress, network, account);
|
|
261
|
-
const rewardFromMerkle = merkleData?.claims[account];
|
|
261
|
+
const rewardFromMerkle = merkleData?.claims[(0, viem_1.getAddress)(account)];
|
|
262
262
|
if (!rewardFromMerkle)
|
|
263
263
|
throw new Error("No rewards found");
|
|
264
264
|
const distributor = (0, viem_1.getContract)({
|
|
@@ -314,7 +314,7 @@ class GearboxRewardsApi {
|
|
|
314
314
|
}
|
|
315
315
|
static getAmountOnContract({ account, merkleData, }) {
|
|
316
316
|
const { claims = {} } = merkleData || {};
|
|
317
|
-
const { amount } = claims[account] || {};
|
|
317
|
+
const { amount } = claims[(0, viem_1.getAddress)(account)] || {};
|
|
318
318
|
return BigInt(amount || 0);
|
|
319
319
|
}
|
|
320
320
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.255",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@gearbox-protocol/sdk-gov": "^2.30.
|
|
31
|
+
"@gearbox-protocol/sdk-gov": "^2.30.2",
|
|
32
32
|
"@wagmi/cli": "^2.1.13",
|
|
33
33
|
"axios": "^1.2.6",
|
|
34
34
|
"decimal.js-light": "^2.5.1",
|