Skip to content

Commit

Permalink
approval on setting token fee tier
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivaanshK committed Sep 11, 2024
1 parent 4e2a0e5 commit 27f9f61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/token/swaps/Uniswapper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ abstract contract Uniswapper {
}

function _setTokenPool(address _token, uint24 _feeTier) internal {
IERC20(_token).approve(address(uniswapRouter), type(uint256).max); // one time max approval
tokenToPools[_token] = _feeTier; // set mapping of token to uniswap pool to use for swap
}

Expand Down

0 comments on commit 27f9f61

Please sign in to comment.