agent.portir.xyz.
Buy plan run
- Scan
PlanRegistryevery 15 minutes. Skip plans not due, inactive, or in a 30-minute back-off. - Held funds check. If money pulled by an earlier attempt is unaccounted for, log an
ALERT, record Waited, and stop until the operator settles it. - Funding check. Below $1, or allowance/balance below one run: log locally, record nothing.
- Guard per holding. A basket takes its worst verdict. Decide with the plan’s rules (smart timing, 48h / 7-day window).
- News check (may hold the buy back inside the window).
- Agentic Wallet preflight on mainnet (session, daily limit) before any money moves.
pullFundsat mostplan.amount; on mainnet forward it to the Agentic Wallet.- One guarded swap per holding (holdings under $1 are reported, not bought). Deliver exactly the shares bought to the owner.
- Return anything unspent through
returnFunds. recordRunExecuted with spread, transaction hash and reason; or Waited with the failure and a back-off.
Where trades settle
Sell rule run
Watch the real price; once crossed, wait for the open;pullShares exactly the rule’s shares; sell at a fair on-chain price; send USDT to the owner; on failure return the shares and record Waited. Testnet only.
Loan Guard loop
Every 5 minutes: mirror live prices into the testnet pool, read each guarded borrower, and callrescue with the amount that brings usedBps back to the target, capped by maxPerRescue.