yield-contract/contracts/tests/ethLogic.sol

22 lines
491 B
Solidity
Raw Normal View History

2020-08-30 18:03:16 +00:00
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.8;
contract EthRateLogic {
address poolToken;
function getTotalToken() public returns (uint) {
2020-09-08 13:24:06 +00:00
uint bal = (address(this).balance);
bal += (address(poolToken).balance);
2020-08-30 18:03:16 +00:00
return bal;
}
function reduceETH(uint amt) public {
payable(address(0)).transfer(amt);
}
constructor (address ethPool) public {
poolToken = address(ethPool);
}
receive() external payable {}
2020-08-30 18:03:16 +00:00
}