Skip to content

Commit

Permalink
Change default approval to exact (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
llopez authored Dec 31, 2024
1 parent 446d9af commit c811375
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "@aave/aave-utilities",
"name": "@luigibyte/aave-utilities",
"repository": {
"type": "git",
"url": "https://github.com/aave/aave-utilities.git"
"url": "https://github.com/protofire/aave-utilities.git"
},
"private": true,
"license": "MIT",
"scripts": {
"postinstall": "lerna bootstrap",
Expand Down Expand Up @@ -76,4 +75,4 @@
"typescript": "4.8.4",
"xo": "^0.46.4"
}
}
}
10 changes: 5 additions & 5 deletions packages/contract-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aave/contract-helpers",
"name": "@luigibyte/contract-helpers",
"version": "1.30.2",
"sideEffects": false,
"license": "MIT",
Expand Down Expand Up @@ -34,15 +34,15 @@
"types": "./dist/esm/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/aave/aave-utilities.git"
"url": "git+https://github.com/protofire/aave-utilities.git"
},
"author": "",
"bugs": {
"url": "https://github.com/aave/aave-utilities/issues"
"url": "https://github.com/protofire/aave-utilities/issues"
},
"homepage": "https://github.com/aave/aave-utilities#readme",
"homepage": "https://github.com/protofire/aave-utilities#readme",
"gitHead": "47a9a6d1f940185ab1e7f6c2bea61564b2abe47a",
"publishConfig": {
"access": "public"
}
}
}
4 changes: 2 additions & 2 deletions packages/contract-helpers/src/staking-contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
tEthereumAddress,
transactionType,
} from '../commons/types';
import { DEFAULT_APPROVE_AMOUNT, valueToWei } from '../commons/utils';
import { valueToWei } from '../commons/utils';
import {
SignStakingValidator,
StakingValidator,
Expand Down Expand Up @@ -220,7 +220,7 @@ export class StakingService
user,
token: stakedToken,
spender: this.stakingContractAddress,
amount: DEFAULT_APPROVE_AMOUNT,
amount: convertedAmount,
});
txs.push(approveTx);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/contract-helpers/src/v3-staking-contract/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
tEthereumAddress,
transactionType,
} from '../commons/types';
import { DEFAULT_APPROVE_AMOUNT, valueToWei } from '../commons/utils';
import { valueToWei } from '../commons/utils';
import {
SignStakingValidator,
StakingValidator,
Expand Down Expand Up @@ -213,7 +213,7 @@ export class StakingServiceV3
user,
token: stakedToken,
spender: this.stakingContractAddress,
amount: DEFAULT_APPROVE_AMOUNT,
amount: convertedAmount,
});
txs.push(approveTx);
}
Expand Down
8 changes: 4 additions & 4 deletions packages/math-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@aave/math-utils",
"name": "@luigibyte/math-utils",
"version": "1.30.2",
"license": "MIT",
"description": "",
Expand Down Expand Up @@ -41,13 +41,13 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/aave/aave-utilities.git"
"url": "git+https://github.com/protofire/aave-utilities.git"
},
"author": "",
"bugs": {
"url": "https://github.com/aave/aave-utilities/issues"
"url": "https://github.com/protofire/aave-utilities/issues"
},
"sideEffects": false,
"homepage": "https://github.com/aave/aave-utilities#readme",
"homepage": "https://github.com/protofire/aave-utilities#readme",
"gitHead": "47a9a6d1f940185ab1e7f6c2bea61564b2abe47a"
}

0 comments on commit c811375

Please sign in to comment.