yearn / ydaemon

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

Risk: Create New "Generic Compound v3" Group (v3 Polygon) #327

Closed tapired closed 7 months ago

tapired commented 1 year ago

Proposal

New risk group:

{ "id": "GenericCompoundV3", "network": 137 , // Polygon "label": "Generic Compound v3", "codeReviewScore": 3, "testingScore": 3, "auditScore": 2, "protocolSafetyScore": 1, "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 1 year ago

@tapired 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"
    ]
}