flatEarnings2 = {
const map = new Map();
ledger
.accounts()
.filter((x) =>
x.payoutAddresses.get(
'{"chainId":"1","tokenAddress":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","type":"EVM"}'
)
)
.forEach((account) => {
const name = account.identity.name;
map.set(name, [
name,
account.payoutAddresses.get(
'{"chainId":"1","tokenAddress":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","type":"EVM"}'
)
]);
});
return map;
}