yearn / ydaemon

Next gen API for Yearn
https://ydaemon.yearn.farm/
29 stars 31 forks source link

Risk: Create New "Generic Lev Aave v3" Group (v3 Polygon) #324

Closed rareweasel closed 12 months ago

rareweasel commented 1 year ago

Proposal

New risk group:

{ "id": "GenericLevAaveV3", "network": 137 , // Polygon "label": "Generic Lev Aave v3", "codeReviewScore": 3, "testingScore": 3, "auditScore": 5, "protocolSafetyScore": 2, "complexityScore": 1, "teamKnowledgeScore": 2, "criteria": { "nameLike": [], "strategies": [], "exclude": [] }

Solve

New group in the risk framework.

Thoughts

We know Polygon is not supported yet, but just for tracking purposes we create this issue to implement it once we support Polygon.

Also maybe we need another property in the schema to identify a v3 strategy group.

Majorfi commented 12 months ago

@rareweasel Please, create a PR with a new file in /data/risks/networks/137 with the desired structure:

{
    "label": "NAME OF RISK GROUP",
    "auditScore": X, // Score from 1 to 5
    "codeReviewScore": X, // Score from 1 to 5
    "complexityScore": X, // Score from 1 to 5
    "protocolSafetyScore": X, // Score from 1 to 5
    "teamKnowledgeScore": X, // Score from 1 to 5
    "testingScore": X, // Score from 1 to 5
    "chainID": X, // Score from 1 to 5
    "strategies": [
        "0x0000000000000000000000000000000000000001",
        "0x0000000000000000000000000000000000000002",
        ...
        "0x000000000000000000000000000000000000000n"
    ]
}