yield-contract/contracts/tests/ethLogic.sol
2020-08-31 23:37:54 +05:30

22 lines
491 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.6.8;
contract EthRateLogic {
address poolToken;
function getTotalToken() public returns (uint) {
uint bal = (address(this).balance);
bal += (address(poolToken).balance);
return bal;
}
function reduceETH(uint amt) public {
payable(address(0)).transfer(amt);
}
constructor (address ethPool) public {
poolToken = address(ethPool);
}
receive() external payable {}
}