Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/strategies/defi-app-voting/README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
10 changes: 5 additions & 5 deletions src/strategies/defi-app-voting/examples.json
Original file line number Diff line number Diff line change
@@ -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
}
]
2 changes: 1 addition & 1 deletion src/strategies/defi-app-voting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
})
);
Expand Down
Loading