This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(granary-finance): Add variable debt on Base
- Loading branch information
Showing
10 changed files
with
127 additions
and
97 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/apps/granary-finance/arbitrum/granary-finance.position-presenter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; | ||
import { PresentationConfig } from '~app/app.interface'; | ||
import { AaveV2PositionPresenter } from '~apps/aave-v2/common/aave-v2.position-presenter'; | ||
|
||
@PresenterTemplate() | ||
export class ArbitrumGranaryFinancePositionPresenter extends AaveV2PositionPresenter { | ||
lendingPoolAddress = '0x102442a3ba1e441043154bc0b8a2e2fb5e0f94a7'; | ||
|
||
explorePresentationConfig?: PresentationConfig = { | ||
tabs: [ | ||
{ | ||
label: 'Lending', | ||
viewType: 'split', | ||
views: [ | ||
{ | ||
viewType: 'list', | ||
label: 'Supply', | ||
groupIds: ['supply'], | ||
}, | ||
{ | ||
viewType: 'list', | ||
label: 'Borrow', | ||
groupIds: ['variable-debt'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
} |
28 changes: 0 additions & 28 deletions
28
src/apps/granary-finance/arbitrum/granary-finance.stable-debt.token-fetcher.ts
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
src/apps/granary-finance/base/granary-finance.position-presenter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; | ||
import { PresentationConfig } from '~app/app.interface'; | ||
import { AaveV2PositionPresenter } from '~apps/aave-v2/common/aave-v2.position-presenter'; | ||
|
||
@PresenterTemplate() | ||
export class BaseGranaryFinancePositionPresenter extends AaveV2PositionPresenter { | ||
lendingPoolAddress = '0xb702ce183b4e1faa574834715e5d4a6378d0eed3'; | ||
|
||
explorePresentationConfig?: PresentationConfig = { | ||
tabs: [ | ||
{ | ||
label: 'Lending', | ||
viewType: 'split', | ||
views: [ | ||
{ | ||
viewType: 'list', | ||
label: 'Supply', | ||
groupIds: ['supply'], | ||
}, | ||
{ | ||
viewType: 'list', | ||
label: 'Borrow', | ||
groupIds: ['variable-debt'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/apps/granary-finance/ethereum/granary-finance.position-presenter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; | ||
import { PresentationConfig } from '~app/app.interface'; | ||
import { AaveV2PositionPresenter } from '~apps/aave-v2/common/aave-v2.position-presenter'; | ||
|
||
@PresenterTemplate() | ||
export class EthereumGranaryFinancePositionPresenter extends AaveV2PositionPresenter { | ||
lendingPoolAddress = '0xb702ce183b4e1faa574834715e5d4a6378d0eed3'; | ||
|
||
explorePresentationConfig?: PresentationConfig = { | ||
tabs: [ | ||
{ | ||
label: 'Lending', | ||
viewType: 'split', | ||
views: [ | ||
{ | ||
viewType: 'list', | ||
label: 'Supply', | ||
groupIds: ['supply'], | ||
}, | ||
{ | ||
viewType: 'list', | ||
label: 'Borrow', | ||
groupIds: ['variable-debt'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
} |
28 changes: 0 additions & 28 deletions
28
src/apps/granary-finance/ethereum/granary-finance.stable-debt.token-fetcher.ts
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
src/apps/granary-finance/fantom/granary-finance.position-presenter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; | ||
import { PresentationConfig } from '~app/app.interface'; | ||
import { AaveV2PositionPresenter } from '~apps/aave-v2/common/aave-v2.position-presenter'; | ||
|
||
@PresenterTemplate() | ||
export class FantomGranaryFinancePositionPresenter extends AaveV2PositionPresenter { | ||
lendingPoolAddress = '0x7220ffd5dc173ba3717e47033a01d870f06e5284'; | ||
|
||
explorePresentationConfig?: PresentationConfig = { | ||
tabs: [ | ||
{ | ||
label: 'Lending', | ||
viewType: 'split', | ||
views: [ | ||
{ | ||
viewType: 'list', | ||
label: 'Supply', | ||
groupIds: ['supply'], | ||
}, | ||
{ | ||
viewType: 'list', | ||
label: 'Borrow', | ||
groupIds: ['variable-debt'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
} |
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
22 changes: 22 additions & 0 deletions
22
src/apps/granary-finance/optimism/granary-finance.position-presenter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
import { PresenterTemplate } from '~app-toolkit/decorators/presenter-template.decorator'; | ||
import { PresentationConfig } from '~app/app.interface'; | ||
import { AaveV2PositionPresenter } from '~apps/aave-v2/common/aave-v2.position-presenter'; | ||
|
||
@PresenterTemplate() | ||
export class OptimismGranaryFinancePositionPresenter extends AaveV2PositionPresenter { | ||
lendingPoolAddress = '0x8fd4af47e4e63d1d2d45582c3286b4bd9bb95dfe'; | ||
|
||
explorePresentationConfig?: PresentationConfig = { | ||
tabs: [ | ||
{ | ||
label: 'Lending', | ||
viewType: 'split', | ||
views: [ | ||
{ | ||
viewType: 'list', | ||
label: 'Supply', | ||
groupIds: ['supply'], | ||
}, | ||
{ | ||
viewType: 'list', | ||
label: 'Borrow', | ||
groupIds: ['variable-debt'], | ||
}, | ||
], | ||
}, | ||
], | ||
}; | ||
} |
28 changes: 0 additions & 28 deletions
28
src/apps/granary-finance/optimism/granary-finance.stable-debt.token-fetcher.ts
This file was deleted.
Oops, something went wrong.