Skip to content

Commit

Permalink
Merge pull request #1 from protofire/default-approval-exact-amount
Browse files Browse the repository at this point in the history
Default approval to exact amount
  • Loading branch information
llopez authored Dec 30, 2024
2 parents 9b11c0e + c6d4a68 commit 6164a8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/contract-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aave/contract-helpers",
"version": "1.30.5",
"version": "1.31.0",
"sideEffects": false,
"license": "MIT",
"description": "",
Expand Down
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

0 comments on commit 6164a8d

Please sign in to comment.