-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
xross chain element #18
Comments
this is the part to extend:
|
adding answers here too:
Omni will support multiple streams for different "completion levels" of messages (finalisation levels).
fee for performing an uint256 fee = feeFor(
destChainId, // destination chain id
data, // abi encoded calldata, ex abi.encodeWithSignature("foo()")
gasLimit // gas limit to enforce on execution, if omitted uses default gas limit
) This is the main interface returning the fee required for performing the cross-chain call at any time. This is implemented as follows (currently, and subject to change): /// @inheritdoc IFeeOracle
function feeFor(uint64 destChainId, bytes calldata, uint64 gasLimit) external view returns (uint256) {
require(gasPriceOn[destChainId] > 0 && toNativeRate[destChainId] > 0, "FeeOracleV1: no fee params");
uint256 gasPrice = gasPriceOn[destChainId] * toNativeRate[destChainId] / CONVERSION_RATE_DENOM;
return protocolFee + (baseGasLimit * gasPrice) + (gasLimit * gasPrice);
}
|
we can use this :
https://docs.omni.network/develop/contracts
to have it work cross-chain.
for example, when the user clicks refund or withdraw, the token is on Matic and the USD is on BSC.
Some flags appear in the other chain. and block the other option.
need to check:
It will add more Defi to the system. and can make part of the backend obsolete.
The text was updated successfully, but these errors were encountered: