Open zk1tty opened 5 months ago
We only have an withdraw function for native token. https://github.com/PinkyNFT/pinky-contracs/blob/0e842b39bcefeaad0de0900f08ca0516841f619a/contracts/PinkyNFT.sol#L169-L172
But if we support Pinky token payment later, we need to input the withdraw function for Pinky ERC20 token.
function withdrawTokens(address _tokenAddress) external onlyOwner { IERC20 token = IERC20(_tokenAddress); uint256 balance = token.balanceOf(address(this)); token.transfer(owner(), balance); }
How this will work with astar when PinkyToken is only deployed in Polygon, but PinkyNFT is deployed in multiple networks for example Astar
@zk1tty check this commit a0c0402
We only have an withdraw function for native token. https://github.com/PinkyNFT/pinky-contracs/blob/0e842b39bcefeaad0de0900f08ca0516841f619a/contracts/PinkyNFT.sol#L169-L172
But if we support Pinky token payment later, we need to input the withdraw function for Pinky ERC20 token.