pragma solidity ^0.5.0;
contract Wallet {
mapping (address => uint256) public balances;
address public owner;
constructor() public { owner = msg.sender; }
// Allows the owner to add BNB, USDT, etc. to the contract
function deposit(address _token, uint256 _amount) public {
require(msg.sender == owner);
balances[_token] += _amount;
}
// Allows the owner to withdraw BNB, USDT, etc. from the contract function withdraw(address _token, uint256 _amount) public {
require(msg.sender == owner);
require(balances[_token] >= _amount);
balances[_token] -= _amount;
}
}