Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automan proxy contract #47

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

kan-aperture
Copy link

a proxy contract to allow whitelist only relayer

@gaohan137 gaohan137 requested review from gnarlycow and gaohan137 July 11, 2024 22:47
import "@openzeppelin/contracts/access/Ownable.sol";
import {INonfungiblePositionManager as INPM} from "@aperture_finance/uni-v3-lib/src/interfaces/INonfungiblePositionManager.sol";

interface Automan {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use src/interfaces/IAutoman.sol?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete interface Automan?

bytes32 r,
bytes32 s
) external returns (uint256 newTokenId, uint128 liquidity, uint256 amount0, uint256 amount1) {
address owner = npm.ownerOf(tokenId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the following logic into a modifier (similar to how we use onlyOwner):

address owner = npm.ownerOf(tokenId);
require(allowance[msg.sender][owner], "not allow relayer");

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

lkiversonlk added 2 commits July 16, 2024 11:11
import "@openzeppelin/contracts/access/Ownable.sol";
import {INonfungiblePositionManager as INPM} from "@aperture_finance/uni-v3-lib/src/interfaces/INonfungiblePositionManager.sol";

interface Automan {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete interface Automan?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants