// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract HTLC {
IERC20 public token;
constructor(address _token){
if (_token != address(0)) token = IERC20(_token);
}
function _deposit(uint256 amount) public {
address _sender = msg.sender;
token.transferFrom(_sender,address(this),amount);
}
}