refactor: fix small issues

This commit is contained in:
cryptoDev222 2021-08-25 12:54:44 -05:00
parent 509d2cf3bd
commit 59870142d1

View File

@ -90,6 +90,7 @@ abstract contract UniswapResolver is Helpers, Events {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
if (_tokenId == 0) _tokenId = _getLastNftId(address(this));
address poolAddr = getPoolAddress(_tokenId);
IUniswapV3Pool pool = IUniswapV3Pool(poolAddr);
@ -127,6 +128,7 @@ abstract contract UniswapResolver is Helpers, Events {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
if (_tokenId == 0) _tokenId = _getLastNftId(address(this));
address poolAddr = getPoolAddress(_tokenId);
IUniswapV3Pool pool = IUniswapV3Pool(poolAddr);
@ -189,6 +191,7 @@ abstract contract UniswapResolver is Helpers, Events {
payable
returns (string memory _eventName, bytes memory _eventParam)
{
if (_tokenId == 0) _tokenId = _getLastNftId(address(this));
address poolAddr = getPoolAddress(_tokenId);
IUniswapV3Pool pool = IUniswapV3Pool(poolAddr);
@ -210,5 +213,5 @@ abstract contract UniswapResolver is Helpers, Events {
}
contract ConnectV2UniswapV3Staker is UniswapResolver {
string public constant name = "UniswapStaker-v1";
string public constant name = "Uniswap-V3-Staker-v1";
}