/**
* @notice Retrieve the current gas price minimum for a currency.
* @param tokenAddress The currency the gas price should be in (defaults to gold).
* @return current gas price minimum in the requested currency
*/
function getGasPriceMinimum(address tokenAddress) external view returns (uint256) {
if (
tokenAddress == address(0) ||
tokenAddress == registry.getAddressForOrDie(GOLD_TOKEN_REGISTRY_ID)
) {
return gasPriceMinimum;
} else {
ISortedOracles sortedOracles = ISortedOracles(
registry.getAddressForOrDie(SORTED_ORACLES_REGISTRY_ID)
);
uint256 rateNumerator;
uint256 rateDenominator;
(rateNumerator, rateDenominator) = sortedOracles.medianRate(tokenAddress);
return (gasPriceMinimum.mul(rateNumerator).div(rateDenominator));
}
}
Expected Behavior
should have only
value
which should be a fixidity value.This also means we should change our oracles that use this API and contractkit
In Exchange, change:
to use fixidity
In GasPriceMinimun; change