We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently for ZETA withdraws, withdrawGasFeeWithGasLimit is not used in the function because it is assumed the fees are paid at the protocol level.
withdrawGasFeeWithGasLimit
For consistency in with V2 contracts and simplifying the protocol logic, the function should be used.
Low priority as ZETA is not enabled for now
The text was updated successfully, but these errors were encountered:
Implement this once Registry is deployed on mainnet.
function getGasInfo(uint256 chainId, uint256 gasLimit) public view returns (address, uint256) { address gasZRC20 = ISystem(systemContract).gasCoinZRC20ByChainId(chainId); if (gasZRC20 == address(0)) revert ZeroGasCoin(); uint256 gasPrice = ISystem(systemContract).gasPriceByChainId(chainId); if (gasPrice == 0) revert ZeroGasPrice(); uint256 gasFee = gasPrice * gasLimit; return (gasZRC20, gasFee); }
Sorry, something went wrong.
s2imonovic
Successfully merging a pull request may close this issue.
Currently for ZETA withdraws,
withdrawGasFeeWithGasLimit
is not used in the function because it is assumed the fees are paid at the protocol level.For consistency in with V2 contracts and simplifying the protocol logic, the function should be used.
Low priority as ZETA is not enabled for now
The text was updated successfully, but these errors were encountered: