I am working on WETH
pragma solidity ^0.8.5; import "./Token.sol";
contract WETH {
function transferFrom(address recipient, uint256 amount) external {
Token token = Token(0xc778417E063141139Fce010982780140Aa0cD5Ab);
token.transferFrom(msg.sender, recipient, amount );
}
}
0xc778417E063141139Fce010982780140Aa0cD5Ab is contract address from WETH according to https://docs.uniswap.org/protocol/reference/deployments
I want to create a functionality where I can create a opensea like marketplace and accept WETH from registering user on platform and give platform the permission to withdraw balance from User's account (Bidding like functionality) Can someone please guide me through it? I am not looking to convert ETH to WETH on my platform. I am expecting user to send WETH and have it in their account.
How can I get it implemented. Any repository or guidance will be greatly appreciated.