Skip to content

Commit

Permalink
fix: Expression
Browse files Browse the repository at this point in the history
  • Loading branch information
karelianpie committed Jun 21, 2023
1 parent 768a045 commit ad2d3b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/veyfi/utils/actions/gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function approveAndStake(
allowance: bigint
): Promise<TTxResponse> {
const signer = provider.getSigner(accountAddress);
if(!allowance.gte(amount)) {
if(!(allowance >= amount)) {
const contract = new ethers.Contract(vaultAddress, ['function approve(address _spender, uint256 _value) external'], signer);
await contract.approve(gaugeAddress, amount);
}
Expand Down

0 comments on commit ad2d3b8

Please sign in to comment.