-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into deploy/treasury-opsepolia
- Loading branch information
Showing
194 changed files
with
58,365 additions
and
308,548 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": ["./typechain", "./deploy", "./tests", "./script", "./scenario", "saddle.config.js", "docgen-templates", "commitlint.config.js"] | ||
"include": ["./typechain", "./deploy", "./tests", "./script", "./scenario", "saddle.config.js", "docgen-templates", "commitlint.config.js", "./hardhat.config.zksync.ts"] | ||
} |
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 |
---|---|---|
|
@@ -43,7 +43,9 @@ junit.xml | |
# hardhat | ||
typechain | ||
artifacts | ||
artifacts-zk | ||
cache | ||
cache-zk | ||
|
||
# OZ | ||
.openzeppelin/ | ||
|
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
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
Binary file not shown.
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
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,34 @@ | ||
pragma solidity 0.8.25; | ||
|
||
/** | ||
* @title Venus's InterestRateModelV8 Interface | ||
* @author Venus | ||
*/ | ||
abstract contract InterestRateModelV8 { | ||
/// @notice Indicator that this is an InterestRateModel contract (for inspection) | ||
bool public constant isInterestRateModel = true; | ||
|
||
/** | ||
* @notice Calculates the current borrow interest rate per block | ||
* @param cash The total amount of cash the market has | ||
* @param borrows The total amount of borrows the market has outstanding | ||
* @param reserves The total amnount of reserves the market has | ||
* @return The borrow rate per block (as a percentage, and scaled by 1e18) | ||
*/ | ||
function getBorrowRate(uint256 cash, uint256 borrows, uint256 reserves) external view virtual returns (uint256); | ||
|
||
/** | ||
* @notice Calculates the current supply interest rate per block | ||
* @param cash The total amount of cash the market has | ||
* @param borrows The total amount of borrows the market has outstanding | ||
* @param reserves The total amnount of reserves the market has | ||
* @param reserveFactorMantissa The current reserve factor the market has | ||
* @return The supply rate per block (as a percentage, and scaled by 1e18) | ||
*/ | ||
function getSupplyRate( | ||
uint256 cash, | ||
uint256 borrows, | ||
uint256 reserves, | ||
uint256 reserveFactorMantissa | ||
) external view virtual returns (uint256); | ||
} |
Oops, something went wrong.