Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ export interface iAssetBase<T> {
STAKE: T;
xSUSHI: T;
WAVAX: T;
KAT: T;
}

export type iAssetsWithoutETH<T> = Omit<iAssetBase<T>, 'ETH'>;
Expand Down Expand Up @@ -286,6 +287,8 @@ export type iAavePoolAssets<T> = Pick<
| 'REN'
| 'ENJ'
| 'xSUSHI'
| 'KAT'

>;

export type iLpPoolAssets<T> = Pick<
Expand Down Expand Up @@ -376,6 +379,7 @@ export enum TokenContractId {
STAKE = 'STAKE',
xSUSHI = 'xSUSHI',
WAVAX = 'WAVAX',
KAT = 'KAT',
}

export interface IReserveParams extends IReserveBorrowParams, IReserveCollateralParams {
Expand Down
4 changes: 4 additions & 0 deletions markets/aave/commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export const CommonsConfig: ICommonConfiguration = {
BUSD: {
borrowRate: oneRay.multipliedBy(0.05).toFixed(),
},
KAT: {
borrowRate: oneRay.multipliedBy(0.03).toFixed(),
},

},
// ----------------
// COMMON PROTOCOL ADDRESSES ACROSS POOLS
Expand Down
10 changes: 9 additions & 1 deletion markets/aave/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
strategyYFI,
strategyXSUSHI,
strategyENJ,
strategyKAT,
} from './reservesConfigs';

// ----------------
Expand Down Expand Up @@ -56,9 +57,13 @@ export const AaveConfig: IAaveConfiguration = {
YFI: strategyYFI,
ZRX: strategyZRX,
xSUSHI: strategyXSUSHI,
KAT: strategyKAT,
},
ReserveAssets: {
[eEthereumNetwork.goerli]: {},
[eEthereumNetwork.goerli]: {
KAT: '0x357B99FcE34d2eD9962bC90266a477053498065E'
},

[eEthereumNetwork.buidlerevm]: {},
[eEthereumNetwork.hardhat]: {},
[eEthereumNetwork.coverage]: {},
Expand All @@ -83,6 +88,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xd0a1e359811322d97991e03f863a0c30c2cf029c',
YFI: '0xb7c325266ec274fEb1354021D27FA3E3379D840d',
ZRX: '0xD0d76886cF8D952ca26177EB7CfDf83bad08C00C',

},
[eEthereumNetwork.ropsten]: {
AAVE: '',
Expand All @@ -105,6 +111,7 @@ export const AaveConfig: IAaveConfiguration = {
WETH: '0xc778417e063141139fce010982780140aa0cd5ab',
YFI: ZERO_ADDRESS,
ZRX: '0x02d7055704EfF050323A2E5ee4ba05DB2A588959',

},
[eEthereumNetwork.main]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
Expand All @@ -128,6 +135,7 @@ export const AaveConfig: IAaveConfiguration = {
YFI: '0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',
ZRX: '0xE41d2489571d322189246DaFA5ebDe1F4699F498',
xSUSHI: '0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272',

},
[eEthereumNetwork.tenderly]: {
AAVE: '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9',
Expand Down
13 changes: 13 additions & 0 deletions markets/aave/reservesConfigs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,16 @@ export const strategyXSUSHI: IReserveParams = {
aTokenImpl: eContractid.AToken,
reserveFactor: '3500',
};

export const strategyKAT: IReserveParams = {
strategy: rateStrategyStableThree,
baseLTVAsCollateral: '7500',
liquidationThreshold: '8000',
liquidationBonus: '11000',
borrowingEnabled: true,
stableBorrowRateEnabled: true,
reserveDecimals: '18',
aTokenImpl: eContractid.AToken,
reserveFactor: '1000',

};