Skip to content

Commit

Permalink
Merge pull request #3 from ithaca-protocol/feat/ithaca-health-factor
Browse files Browse the repository at this point in the history
feat: add custom health factor calculation
  • Loading branch information
chaitanyasjoshi authored Nov 12, 2024
2 parents 83a8d18 + 2c477b5 commit 6ab26e2
Show file tree
Hide file tree
Showing 190 changed files with 3,594 additions and 30,064 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
run: npm run aave:fork:main
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
- name: Amm deployment at Mainnet fork
run: npm run amm:fork:main
env:
ALCHEMY_KEY: ${{ secrets.ALCHEMY_KEY }}
# - name: Coverage
# run: npm run coverage
# - uses: codecov/codecov-action@v1
Expand Down
92 changes: 0 additions & 92 deletions .gitlab-ci.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions Dockerfile_test

This file was deleted.

27 changes: 27 additions & 0 deletions Reserves.md
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.
110 changes: 0 additions & 110 deletions buidler.config.ts

This file was deleted.

127 changes: 0 additions & 127 deletions contracts/adapters/BaseParaSwapAdapter.sol

This file was deleted.

Loading

0 comments on commit 6ab26e2

Please sign in to comment.