mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix typo (#12672)
This commit is contained in:
parent
4779bd9fe5
commit
4ef7162656
@ -280,7 +280,7 @@ export default class SwapsController {
|
|||||||
|
|
||||||
// For a user to be able to swap a token, they need to have approved the MetaSwap contract to withdraw that token.
|
// For a user to be able to swap a token, they need to have approved the MetaSwap contract to withdraw that token.
|
||||||
// _getERC20Allowance() returns the amount of the token they have approved for withdrawal. If that amount is greater
|
// _getERC20Allowance() returns the amount of the token they have approved for withdrawal. If that amount is greater
|
||||||
// than 0, it means that approval has already occured and is not needed. Otherwise, for tokens to be swapped, a new
|
// than 0, it means that approval has already occurred and is not needed. Otherwise, for tokens to be swapped, a new
|
||||||
// call of the ERC-20 approve method is required.
|
// call of the ERC-20 approve method is required.
|
||||||
approvalRequired =
|
approvalRequired =
|
||||||
allowance.eq(0) &&
|
allowance.eq(0) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user