-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from etherfi-protocol/syko/certora/L-02
Fix [Certora][L-02] Redundant code block
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.24; | ||
|
||
interface IRateProvider { | ||
function getRate() external view returns (uint256); | ||
function getRateSafe() external view returns (uint256 rate); | ||
function decimals() external view returns (uint8); | ||
} | ||
|
||
contract eBtcRateProvider is IRateProvider { | ||
IRateProvider public rateProvier = IRateProvider(0x1b293DC39F94157fA0D1D36d7e0090C8B8B8c13F); | ||
|
||
function getRate() external view returns (uint256) { | ||
return rateProvier.getRate() * 1e10; | ||
} | ||
|
||
function getRateSafe() external view returns (uint256 rate) { | ||
return rateProvier.getRateSafe() * 1e10; | ||
} | ||
|
||
function decimals() external view returns (uint8) { | ||
return rateProvier.decimals() + 10; | ||
} | ||
} |