mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
14 lines
413 B
Solidity
14 lines
413 B
Solidity
|
// SPDX-License-Identifier: UNLICENSED
|
||
|
pragma solidity 0.7.4;
|
||
|
|
||
|
import {GELATO_GAS_PRICE_ORACLE} from "../../constants/CGelato.sol";
|
||
|
import {mul} from "../../vendor/DSMath.sol";
|
||
|
|
||
|
function _getGelatoGasPrice() view returns (uint256) {
|
||
|
return uint256(GELATO_GAS_PRICE_ORACLE.latestAnswer());
|
||
|
}
|
||
|
|
||
|
function _getGelatoProviderFees(uint256 _gas) view returns (uint256) {
|
||
|
return mul(_gas, _getGelatoGasPrice());
|
||
|
}
|