From 7655d0e87d6a7df1d0cc4d2f6efa9c0d23c1d564 Mon Sep 17 00:00:00 2001 From: JD0x2e Date: Thu, 12 Jun 2025 14:53:06 +0100 Subject: [PATCH] defi-app-voting updates --- src/strategies/defi-app-voting/README.md | 4 +++- src/strategies/defi-app-voting/examples.json | 10 +++++----- src/strategies/defi-app-voting/index.ts | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/strategies/defi-app-voting/README.md b/src/strategies/defi-app-voting/README.md index 019f8f74b..221175d90 100644 --- a/src/strategies/defi-app-voting/README.md +++ b/src/strategies/defi-app-voting/README.md @@ -1,4 +1,6 @@ -This strategy returns total voting power on Defi App, based on HOME and sHOME +This strategy returns total voting power on Defi App, based on HOME and sHOME. + +HOME tokens have no voting power multiplier, whereas sHOME (staked HOME) tokens have a 4x multiplier. Here is an example of parameters: diff --git a/src/strategies/defi-app-voting/examples.json b/src/strategies/defi-app-voting/examples.json index 0c0ab2f5e..0d0342cf6 100644 --- a/src/strategies/defi-app-voting/examples.json +++ b/src/strategies/defi-app-voting/examples.json @@ -1,19 +1,19 @@ [ { - "name": "sHOME - Base", + "name": "HOME & sHOME Voting - Base", "strategy": { "name": "defi-app-voting", "params": { - "lockingContract": "0xcfb0c58ac2db2269b4a794e615c9f4c559556da0", - "homeToken": "0xc8688a66f2588ff3064e87e9bad666c281d41af3" + "lockingContract": "0xC9714F8f036087d801f38C4105194e150d3a1864", + "homeToken": "0x4BfAa776991E85e5f8b1255461cbbd216cFc714f" } }, "network": "8453", "addresses": [ - "0xFD79F3E5E5641266c46Aa7F19144Ff7F19a637C7", + "0x0dC9044fcD7760dfbdB567A364B9B098e770b192", "0x4011091Dbe57bd4521F598616fe4BB3978ea3005", "0x2eAA7327e9B5Ff46bc2B7452acE9e44A1528eb84" ], - "snapshot": 31224505 + "snapshot": 31422072 } ] diff --git a/src/strategies/defi-app-voting/index.ts b/src/strategies/defi-app-voting/index.ts index 15331e8b1..788e4902d 100644 --- a/src/strategies/defi-app-voting/index.ts +++ b/src/strategies/defi-app-voting/index.ts @@ -49,7 +49,7 @@ export async function strategy( const sHome = locks.reduce((acc, lock) => acc + toJsNum(lock.amount), 0); const home = toJsNum(homeBalances[address] ?? 0); - const weightedPower = sHome * 0.8 + home * 0.2; + const weightedPower = sHome * 4 + home; return [address, weightedPower]; }) );