WETHGateway
WETHGateway
The WETH Gateway contract is a helper to easily wrap and unwrap ETH (or native currency of chain eg. MATIC, AVAX etc) as necessary when interacting with the protocol.
Write Methods
depositETH
function depositETH(address pool, address onBehalfOf, uint16 referralCode)
Supplies the msg.value
amount of ETH (or native chain token) into the SparkLend pool, minting the same amount of corresponding aWETH and transferring them to the onBehalfOf
address.