Skip to content

Commit f447ba5

Browse files
atepemclaude
andcommitted
feat(connect): show pUSD in the Polygon agent wallet
Add pUSD to Connect's per-chain erc20Tokens so the Agent Wallet lists it on Polygon instances. Gnosis stays ERC20-free (native xDAI only). pUSD already has a Polygon token config, and BalanceProvider reads balances for every token in TOKEN_CONFIG, so amounts populate with no backend change. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 293ab9f commit f447ba5

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

frontend/config/agents.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,11 @@ export const AGENT_CONFIG: {
340340
doesChatUiRequireApiKey: false,
341341
// PLACEHOLDER: real public id lands with the minted Connect package (PR2).
342342
servicePublicId: 'valory/connect:0.1.0',
343-
// Per-chain: Connect uses USDC on Polygon only. Gnosis runs on native xDAI,
344-
// so USDC must not appear in the Gnosis agent wallet.
345-
erc20Tokens: { [EvmChainIdMap.Polygon]: [TokenSymbolMap.USDC] },
343+
// Per-chain: Connect uses USDC and pUSD on Polygon only. Gnosis runs on
344+
// native xDAI, so neither may appear in the Gnosis agent wallet.
345+
erc20Tokens: {
346+
[EvmChainIdMap.Polygon]: [TokenSymbolMap.USDC, TokenSymbolMap.pUSD],
347+
},
346348
},
347349
};
348350

frontend/tests/config/agents.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ describe('AGENT_CONFIG', () => {
7070
}
7171
});
7272

73+
it('Connect lists USDC and pUSD on Polygon only, no ERC20s on Gnosis', () => {
74+
const connectErc20Tokens = AGENT_CONFIG[AgentMap.Connect].erc20Tokens;
75+
expect(connectErc20Tokens).toEqual({
76+
[EvmChainIdMap.Polygon]: [TokenSymbolMap.USDC, TokenSymbolMap.pUSD],
77+
});
78+
});
79+
7380
it('Polystrat additionalRequirements surfaces pUSD safe amount from service template', () => {
7481
const polystratRequirements =
7582
AGENT_CONFIG[AgentMap.Polystrat].additionalRequirements;

0 commit comments

Comments
 (0)