Skip to content

Commit

Permalink
Merge branch 'master' into add/synapse
Browse files Browse the repository at this point in the history
  • Loading branch information
Defi-Moses authored Jan 22, 2025
2 parents 8c6d3e5 + f0f7a59 commit dfd1680
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/strategies/split-delegation/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fetch from 'cross-fetch';
import { StaticJsonRpcProvider } from '@ethersproject/providers';
import { Strategy } from '@snapshot-labs/snapshot.js/dist/src/voting/types';
import { getAddress } from '@ethersproject/address';

export const author = 'gnosisguild';
export const version = '1.0.0';
Expand Down Expand Up @@ -59,5 +60,8 @@ export async function strategy(
[k: string]: number;
};

return votingPowerByAddress;
return Object.keys(votingPowerByAddress).reduce((acc, address) => {
acc[getAddress(address)] = votingPowerByAddress[address];
return acc;
}, {});
}

0 comments on commit dfd1680

Please sign in to comment.