Skip to content

Commit b2dc8b0

Browse files
committed
ci(agent): settle SUI and USDC treasuries via matrix (serial, one signer)
The cron only settled the SUI treasury, so USDC-treasury rules never auto-settled. Run a matrix over both treasury ids; max-parallel 1 since a single signer key funds all settlements and parallel txs would contend for the same gas coin.
1 parent 9195f16 commit b2dc8b0

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/conduit-agent.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ jobs:
2222
settle:
2323
runs-on: ubuntu-latest
2424
timeout-minutes: 10
25+
strategy:
26+
# One signer key funds all settlements, so run treasuries serially — parallel
27+
# txs from the same address would contend for the same gas coin and fail.
28+
max-parallel: 1
29+
fail-fast: false
30+
matrix:
31+
# Each treasury the operator settles. Add a line to cover more.
32+
treasury:
33+
- '0xb5e08e3e8d9cf7fb23ee29179f395b0868cf9957953e42ca0eca87ed68534626' # SUI
34+
- '0x1e1a20c5da4deb6c8f21c429cfb711e418c53a8fda04d607f3f18cd31936b562' # USDC
2535
defaults:
2636
run:
2737
working-directory: agent
@@ -42,6 +52,6 @@ jobs:
4252
SUI_NETWORK: testnet
4353
# Public on-chain ids — safe to commit. The signer key is the only secret.
4454
CONDUIT_PACKAGE_ID: '0x1b4c89db10e2d5a6f97b56796d00de44e9b6dc4d49079547003fb82c1c829433'
45-
CONDUIT_TREASURY_ID: '0xb5e08e3e8d9cf7fb23ee29179f395b0868cf9957953e42ca0eca87ed68534626'
55+
CONDUIT_TREASURY_ID: ${{ matrix.treasury }}
4656
WALRUS_EPOCHS: '3'
4757
SUI_AGENT_SECRET_KEY: ${{ secrets.SUI_AGENT_SECRET_KEY }}

0 commit comments

Comments
 (0)