-
Notifications
You must be signed in to change notification settings - Fork 8
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
Interchain adapters #75
Conversation
function estimateFee( | ||
uint16 _dstChainId, | ||
bool _useZro, | ||
bytes calldata _adapterParams | ||
) public view returns (uint nativeFee, uint zroFee) { | ||
return lzEndpoint.estimateFees(_dstChainId, address(this), PAYLOAD, _useZro, _adapterParams); | ||
} |
Check warning
Code scanning / Slither
Unused return Medium
function getOracle(uint16 remoteChainId) external view returns (address _oracle) { | ||
bytes memory bytesOracle = | ||
lzEndpoint.getConfig(lzEndpoint.getSendVersion(address(this)), remoteChainId, address(this), 6); | ||
assembly { | ||
_oracle := mload(add(bytesOracle, 32)) | ||
} | ||
} |
Check warning
Code scanning / Slither
Assembly usage Warning
/* INITIALIZATION */ | ||
/*.•°:°.´+˚.*°.˚:*.´•*.+°.•°:´*.´•*.•°.•°:°.´:•˚°.*°.˚:*.´+°.•*/ | ||
|
||
function initialize(address platform_, address _lzEndpoint) external initializer { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
|
||
function estimateFee( | ||
uint16 _dstChainId, | ||
bool _useZro, |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
function endpoint() external view returns (address) {} | ||
|
||
function estimateFee( | ||
uint16 _dstChainId, |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
function estimateFee( | ||
uint16 _dstChainId, | ||
bool _useZro, | ||
bytes calldata _adapterParams |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 7-bridge-sc #75 +/- ##
===============================================
+ Coverage 84.43% 84.63% +0.19%
===============================================
Files 53 54 +1
Lines 3489 3481 -8
Branches 446 442 -4
===============================================
Hits 2946 2946
+ Misses 394 386 -8
Partials 149 149 ☔ View full report in Codecov by Sentry. |
No description provided.