forked from aave/protocol-v2
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #3 from ithaca-protocol/feat/ithaca-health-factor
feat: add custom health factor calculation
- Loading branch information
Showing
190 changed files
with
3,594 additions
and
30,064 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
# Configure Reserves | ||
|
||
for deployment and testing, current setup uses the configurations from `reservesConfigs.ts`, for aave, it is located in `markets/aave`. | ||
|
||
specs - | ||
|
||
``` | ||
export const strategy<RESERVE>: IReserveParams = { | ||
strategy: <INTEREST_RATE_STRATEGY>, | ||
baseLTVAsCollateral: '10000' (percentage in 2 decimal precision, i.e - 9950=99.5%), | ||
liquidationThreshold: '10000' (100%), | ||
liquidationBonus: '10050' (100.5%), | ||
borrowingEnabled: true/false, | ||
stableBorrowRateEnabled: true/false, | ||
reserveDecimals: '18', | ||
aTokenImpl: eContractid.AToken (Atoken implementation address), | ||
reserveFactor: '1000', | ||
}; | ||
``` | ||
|
||
## Reserve Indices | ||
the order of registration of reserves is decided from AaveConfig `markets/aave/index.ts` | ||
|
||
currently the first reserve is "ithaca reserve", hence the 0 index is reserved. | ||
|
||
## Assets | ||
assets can be configured in the same AaveConfig(`markets/aave/index.ts`), the ReserveAssets, key holds the addresses of all the assets. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.