Depositing into a pool
A pool is a shared pot of two coins on Tinyman that people trade against. When your agent deposits into one, it deposits both coins in the pool's own ratio and gets pool tokens back: its claim on a share of the pot.
What goes in
You name one amount, of one coin. When the deposit is built, PortMula reads the pool's reserves at that moment and works out the matching amount of the other coin from them. The reserves come from the pool's own records on chain, not its balance, because a pool's account also holds fees and anything sent to it directly.
The approval card shows both amounts before anything is signed. On an automation's card it also says which amount you chose, which the pool decided, and how much, if any, is swapped inside the pool to fit its ratio, at what cost.
Your agent's wallet has to hold both amounts. If it holds less of the second coin than the pool asks for, the deposit is refused before it is built, and nothing is charged.
What you get back, and the minimum
The pool pays you in pool tokens. The card shows the least you will accept, worked out from the slippage you set; if the pool would pay fewer, the transaction fails and nothing moves. After it lands, the receipt says how many arrived and how that compares with the minimum, with the transaction id and an explorer link.
Holding the pool token locks 0.1 ALGO
Pool tokens are a coin of their own, and Algorand's network rule is that holding a coin needs an opt-in, which locks 0.1 ALGO for as long as the wallet holds it. The first time your agent adds to a pool, PortMula places that opt-in at the front of the same transaction group and checks before signing that it is for that pool's own token. If the wallet cannot cover that and the network fees, the deposit is refused, free.
How a deposit starts, and who approves it
- An automation with "Deposit into a pool". You pick the pool, the amount and the slippage, and they are pinned: the agent decides whether to deposit, never how much.
- Terminal. Say which pool and how much of one coin.
A deposit you start yourself, with Run now or in Terminal, waits for you on a card. On a schedule it may go through on its own, inside the pinned values; Settings shows whether automations trade on their own. Your trade limits count both coins that leave the wallet. The Services page shows what building a deposit costs and whether it is available right now.