Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.remlo.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Reallocates the idle treasury stablecoin bounds across distinct on-chain DeFi platforms configured by the employer. Endpoint POST /api/mpp/treasury/optimize Pricing $0.10 per session execution — Justifies executing multiple sequential smart contract interactions simulating gas usage on Moderato. Payment type Session — Triggered periodically through a long-running agent session evaluating micro-fluctuations in APY returns across protocols. Request
{
  "employerId": "e3b0c442...91b7852b855",
  "targetAllocation": [
    "5000000000000000000000",
    "2500000000000000000000"
  ]
}
Response
{
  "success": true,
  "txHash": "0xOptimizedTxHash12",
  "receipt": "L402-Receipt..."
}
Example
curl -X POST https://remlo.xyz/api/mpp/treasury/optimize \
  -H "Authorization: L402 <SESSION_HASH>" \
  -H "Content-Type: application/json" \
  -d '{"employerId":"e3b0c442...","targetAllocation":["5000...","2500..."]}'
Notes Requires the YieldRouter to maintain a whitelisted address hierarchy to execute rebalance. If allocations sum over the liquid PayrollTreasury state, the transaction reverts to secure base capital limits.

Authorization

Treasury financials are private. Caller must be the employer (Privy) or an authorized Tier 1 / Tier 2 agent for the employer. See Authentication.