Skip to content

Commit 5833d52

Browse files
authored
Merge pull request #595 from DavidIfebueme/feat/add-vesu-support
feat: adds vesu to protocolids and available protocols
2 parents d6208f3 + 159ff43 commit 5833d52

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""Add Vesu protocol support to enum constraints
2+
3+
Revision ID: eca9b6bc75e9
4+
Revises: 0003f938152d
5+
Create Date: 2025-06-04 10:21:57.261622
6+
7+
"""
8+
from typing import Sequence, Union
9+
10+
from alembic import op
11+
import sqlalchemy as sa
12+
13+
14+
# revision identifiers, used by Alembic.
15+
revision: str = 'eca9b6bc75e9'
16+
down_revision: Union[str, None] = '0003f938152d'
17+
branch_labels: Union[str, Sequence[str], None] = None
18+
depends_on: Union[str, Sequence[str], None] = None
19+
20+
21+
def upgrade() -> None:
22+
# ### commands auto generated by Alembic - please adjust! ###
23+
pass
24+
# ### end Alembic commands ###
25+
26+
27+
def downgrade() -> None:
28+
# ### commands auto generated by Alembic - please adjust! ###
29+
pass
30+
# ### end Alembic commands ###

apps/shared/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ class ProtocolIDs(Enum):
205205
# zkLend protocol
206206
ZKLEND: str = "zkLend"
207207

208+
VESU: str = "Vesu"
209+
208210
@classmethod
209211
def choices(cls) -> list[str]:
210212
"""

apps/web_app/utils/values.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,20 @@ class ProtocolIDs(Enum):
5151
NOSTRA_ALPHA: str = "Nostra_alpha"
5252
NOSTRA_MAINNET: str = "Nostra_mainnet"
5353
ZKLEND: str = "zkLend"
54+
VESU: str = "Vesu"
5455

5556

5657
class ProtocolIDCodeNames(Enum):
5758
HASHSTACK: str = "hashstack_v1"
5859
NOSTRA: str = "nostra_mainnet"
5960
ZKLEND: str = "zklend"
61+
VESU: str = "Vesu"
6062

6163

6264
CURRENTLY_AVAILABLE_PROTOCOLS_IDS: tuple[str, ...] = (
6365
"zkLend",
6466
"Nostra_alpha",
6567
"Nostra_mainnet",
68+
"Vesu",
6669
)
6770
HEALTH_RATIO_LEVEL_ALERT_VALUE: float = 0.1

0 commit comments

Comments
 (0)