mirror of
https://github.com/Instadapp/yield-contract.git
synced 2024-07-29 21:47:29 +00:00
22 lines
491 B
Solidity
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 {}
|
|
} |