Skip to content

Commit

Permalink
feat: usualusdc piils (#20)
Browse files Browse the repository at this point in the history
* feat: add morpho usual usdc pills

* feat: update schema
  • Loading branch information
Ulydev authored Sep 18, 2024
1 parent d656311 commit 76ebe4b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 17 deletions.
24 changes: 24 additions & 0 deletions src/protocols/protocolList.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,29 @@
"name": "Resolv points"
}
]
},
{
"ptAddress": "0x4ee81b93cf490f7157144c82ff07557cffd2b86b",
"chainId": 1,
"protocolName": "Morpho (Usual Boosted USDC)",
"token": {
"symbol": "USUALUSDC+",
"logoURI": "/images/tokens/USUALUSDC.svg",
"underlying": "USDC"
},
"multipliers": {
"lp": [
{
"amount": 1,
"name": "Pill/day per $1 of USUALUSDC"
}
],
"yt": [
{
"amount": 1,
"name": "Pill/day"
}
]
}
}
]
55 changes: 38 additions & 17 deletions src/schema/protocolList.schema.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
{
"$defs": {
"multiplierArray": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"name"
],
"properties": {
"amount": {
"type": "number",
"minimum": 1,
"maximum": 1000
},
"name": {
"type": "string"
}
}
}
}
},
"type": "array",
"uniqueItems": true,
"items": {
Expand Down Expand Up @@ -46,25 +69,23 @@
}
},
"multipliers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"amount",
"name"
],
"properties": {
"amount": {
"type": "number",
"minimum": 1,
"maximum": 1000
},
"name": {
"type": "string"
"anyOf": [
{
"$ref": "multiplierArray"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"lp": {
"$ref": "multiplierArray"
},
"yt": {
"$ref": "multiplierArray"
}
}
}
}
]
}
}
}
Expand Down

0 comments on commit 76ebe4b

Please sign in to comment.