Skip to content

Commit

Permalink
Morpho rebase (consensys-vertical-apps#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergarces authored Feb 22, 2024
1 parent 69d9f4e commit 5b54ccd
Show file tree
Hide file tree
Showing 239 changed files with 52,309 additions and 152 deletions.
149 changes: 63 additions & 86 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"dependencies": {
"dotenv": "^16.3.1",
"ethers": "^6.7.1",
"evm-maths": "^6.0.0",
"pino": "^8.15.0",
"zod": "^3.22.4"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { CacheToFile } from '../../../../core/decorators/cacheToFile'
import { PositionType, ProtocolDetails } from '../../../../types/adapter'
import {
AssetType,
PositionType,
ProtocolDetails,
} from '../../../../types/adapter'
import { AaveBasePoolAdapter } from '../../common/aaveBasePoolAdapter'
import { ProtocolDataProvider } from '../../contracts'

Expand All @@ -16,6 +20,9 @@ export class AaveV2ATokenPoolAdapter extends AaveBasePoolAdapter {
positionType: PositionType.Lend,
chainId: this.chainId,
productId: this.productId,
assetDetails: {
type: AssetType.StandardErc20,
},
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { CacheToFile } from '../../../../core/decorators/cacheToFile'
import { PositionType, ProtocolDetails } from '../../../../types/adapter'
import {
AssetType,
PositionType,
ProtocolDetails,
} from '../../../../types/adapter'
import { AaveBasePoolAdapter } from '../../common/aaveBasePoolAdapter'
import { ProtocolDataProvider } from '../../contracts'

Expand All @@ -16,6 +20,9 @@ export class AaveV2StableDebtTokenPoolAdapter extends AaveBasePoolAdapter {
positionType: PositionType.Borrow,
chainId: this.chainId,
productId: this.productId,
assetDetails: {
type: AssetType.NonStandardErc20,
},
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { CacheToFile } from '../../../../core/decorators/cacheToFile'
import { PositionType, ProtocolDetails } from '../../../../types/adapter'
import {
AssetType,
PositionType,
ProtocolDetails,
} from '../../../../types/adapter'
import { AaveBasePoolAdapter } from '../../common/aaveBasePoolAdapter'
import { ProtocolDataProvider } from '../../contracts'

Expand All @@ -16,6 +20,9 @@ export class AaveV2VariableDebtTokenPoolAdapter extends AaveBasePoolAdapter {
positionType: PositionType.Borrow,
chainId: this.chainId,
productId: this.productId,
assetDetails: {
type: AssetType.NonStandardErc20,
},
}
}

Expand Down
9 changes: 9 additions & 0 deletions src/adapters/aave-v2/tests/snapshots/ethereum.apr.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"positionType": "lend",
"chainId": 1,
"productId": "a-token",
"assetDetails": {
"type": "StandardErc20"
},
"success": true,
"tokens": [
{
Expand Down Expand Up @@ -107,6 +110,9 @@
"positionType": "borrow",
"chainId": 1,
"productId": "stable-debt-token",
"assetDetails": {
"type": "NonStandardErc20"
},
"success": true,
"tokens": [
{
Expand Down Expand Up @@ -204,6 +210,9 @@
"positionType": "borrow",
"chainId": 1,
"productId": "variable-debt-token",
"assetDetails": {
"type": "NonStandardErc20"
},
"success": true,
"tokens": [
{
Expand Down
9 changes: 9 additions & 0 deletions src/adapters/aave-v2/tests/snapshots/ethereum.apy.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"positionType": "lend",
"chainId": 1,
"productId": "a-token",
"assetDetails": {
"type": "StandardErc20"
},
"success": true,
"tokens": [
{
Expand Down Expand Up @@ -107,6 +110,9 @@
"positionType": "borrow",
"chainId": 1,
"productId": "stable-debt-token",
"assetDetails": {
"type": "NonStandardErc20"
},
"success": true,
"tokens": [
{
Expand Down Expand Up @@ -204,6 +210,9 @@
"positionType": "borrow",
"chainId": 1,
"productId": "variable-debt-token",
"assetDetails": {
"type": "NonStandardErc20"
},
"success": true,
"tokens": [
{
Expand Down
Loading

0 comments on commit 5b54ccd

Please sign in to comment.