Skip to content

v3.3.0

Choose a tag to compare

@lars0x lars0x released this 20 Nov 10:30
· 208 commits to main since this release
622a45f

Added

  • almanak ax portfolio --account reports an account's wallet tokens and protocol
    positions on every chain, with US dollar values, as Rabby's backend reports them. It
    needs no key and takes no transport. Every figure is the vendor's and unverified: the
    report is an overview, never identity, a price input or the basis of an action. The
    agent skill reads it when it loads.
  • Each connector declares the direct operator actions it serves, and almanak support
    lists them per chain as direct_actions. ax supply and ax withdraw take their
    connector choices from these declarations, refuse an undeclared connector, chain or
    action before any read, and the gateway admits and plans an operator request only
    for a declared action.
  • ax supply and ax withdraw take an optional --max-gas-limit.
  • ax supply and ax withdraw serve Aave V3, SparkLend, Compound V3 and Morpho Blue
    beside Aave V4, on every chain where the connector has production support for a
    plain account, except Morpho Blue on HyperEVM. The deployment covers the wallet's
    whole position in the venue: the Pool reserves the account uses as collateral or
    has borrowed, and every leg it holds in a Comet or a Morpho market. An action the
    protocol would check against a health floor is refused while the wallet has debt
    there, and the refusal says so.
  • ax borrow, ax repay and ax collateral, and an optional --amount on
    ax withdraw and ax repay, for the forms each lending connector serves.
    --min-health-factor states the lowest health factor a projected action may leave
    the account with: it is required to borrow, and for any other projected action
    while the wallet has debt in the venue. No floor can refuse a repayment.
  • ax swap sells an exact amount of one pool currency for another in one named pool,
    on Uniswap V3, Uniswap V4, PancakeSwap V3, Aerodrome, Aerodrome Slipstream and
    Curve, with a required --slippage-bps below the pool's own quote at the observed
    block. The result lists what was sold and bought and any allowance left.
  • ax open-liquidity, ax increase-liquidity, ax decrease-liquidity,
    ax collect-liquidity-fees and ax close-liquidity open and manage a
    concentrated-liquidity position on Uniswap V3, PancakeSwap V3 and Aerodrome
    Slipstream, in a tick range and from amounts the operator states. An existing
    position is named by --token-id, whoever opened it. Nothing is swapped inside a
    liquidity action. A mint or an increase reverts when mined at a price further than
    --slippage-bps from the observed one in either direction, within what the range
    itself holds. ax revoke-exchange
    sets the allowances a command left to zero, and ax liquidity-position reads a
    position.
  • A liquidity step mined after another account added to the position's NFT is
    recorded with the position as its block holds it and an accounting issue, for
    strategies and direct actions alike, so the step resolves.
  • The liquidity commands also serve Curve, whose position is the wallet's balance of
    the pool's LP token: open-liquidity and increase-liquidity deposit an exact
    --amount per named coin, and decrease-liquidity and close-liquidity state with
    --receive whether the burn pays every coin in proportion or one coin. They serve
    Aerodrome stable and volatile pools too, whose position is the wallet's balance of
    the pool's share token. An Aerodrome deposit offers the stated amounts in the
    proportion of the pool's reserves and reverts when that proportion moved further
    than --slippage-bps in either direction.
  • ax open-liquidity, ax collect-liquidity-fees and ax close-liquidity serve
    Uniswap V4, with the pool named by its key and a native pool provided in the wrapped
    token. A mint reverts when mined at a price further than --slippage-bps from the
    price its step was planned at, within what the range itself holds.
  • ax revoke-exchange serves Uniswap V4. For each of the pool's two tokens it sets the
    ERC-20 approval to Permit2 to zero, then the Permit2 allowances to the router and
    the position manager. The approval to Permit2 is shared with every other
    application that spends the token through Permit2, which needs it approved again
    afterwards; the result says so in note before anything is signed. A Uniswap V4
    result lists a Permit2 allowance that holds no amount and has not expired under
    permit2_unexpired, and the revocation expires it.
  • --public-rpc serves almanak ax reads on Base, Arbitrum, BNB, Optimism, Polygon and
    Robinhood beside Ethereum and Avalanche. drpc adds Base, Optimism, Polygon and
    Robinhood, and four chain operators' own endpoints are named base, arbitrum,
    bnbchain and optimism. Arbitrum, BNB, Polygon and Robinhood have one endpoint
    each, and HyperEVM has none. A direct action also runs through one, on the chains
    where almanak support lists it.
    Compound V3 listings, Morpho Blue listings on Avalanche and BNB, and the lookups by
    name are refused through a public endpoint; docs/operating.md says what works.
  • scripts/qualify_public_rpc.py checks a public endpoint, live, against a sample of
    the reads an observation and a direct action make of it: the pinned genesis, pinned
    state at finalized, latest and a numbered block, the fee quote and the receipt
    reads. It sends nothing. A (name, chain) pair is listed only after it passed every
    check in repeated full runs; a pass is a point-in-time result, and a transient
    refusal fails a run as it would fail a command.
  • ax recover --record takes one named transport, --public-rpc <name> or
    --env-file, and resolves the record through that endpoint of the record's chain
    instead of the endpoint its action ran on. A named public endpoint must show the
    pinned genesis and a recent head first. A record whose public endpoint is no longer
    listed for its chain is refused until a transport is named, so a pair that leaves
    the list strands no wallet claim.

Changed

  • The Aave V3 backtest model serves history under Pool revision 11 and 12 and keeps
    its identifiers (aave-v3-revision11-economic-indices-v1,
    aave-v3-revision11-prepared-reserves-v1 and the liquidation model
    immediate_underlying_v3_revision11): they name the accounting model, which
    revision 12 runs unchanged. A dataset prepared earlier stays valid, and a window
    may span a Pool's upgrade.
  • A direct action bids as an author's gas policy defaults on its chain: the observed
    block's base fee on Avalanche, 1.25 times the base fee on Arbitrum and Robinhood
    Chain, and a gas limit of at most 1,200,000 unless --max-gas-limit states another.
  • The agent skill (skills/almanak/SKILL.md) covers every direct action: lending with
    borrowing, repayment and collateral, swaps, and liquidity in a tick range or as
    Curve or Aerodrome LP tokens. It holds no list of chains: the agent reads direct_actions from
    almanak support before each action. It asks the user for the health floor, the
    slippage, the tick range and the payout of a Curve burn, and explains what each one
    does not protect against. Its public endpoint table names
    each chain's native asset, and its settings.json notes the markets, the liquidity
    positions and the tokens the wallet holds. It resolves with ax recover only a
    record of its own wallet, and asks before a signed transaction that is not from an
    action the user has just confirmed is sent again. tests/test_agent_skill.py holds
    the skill's command lines, the flags it names, and its command, selector, public
    endpoint, position field, health floor and result field tables to the parser, the
    declarations and the models. A refusal the skill names is a kind the SDK raises or
    part of a message it raises. The rules an agent must keep are checked only as text.
  • The agent skill reads almanak support filtered, by direct_actions and the
    lines of restrictions that name pools or markets, and treats an entry without
    direct_actions as serving nothing. It states the Curve limit (pools of the
    reviewed StableSwap NG, TwoCrypto NG and TriCrypto NG factories, no metapool),
    names a Curve coin by its CAIP-19 asset, and has rows for unsupported_pool,
    unsupported_revision and a refused event-history listing, which it does not
    retry through a public endpoint. It creates the wallet when a request it can
    serve first needs the agent's own address, never reads gateway-auth.token, and
    takes no address from its own examples. It reports rates from
    ax lending-reserve and the reason where there is none, computes prices with a
    tool, reports a health factor of 2^256 - 1 as no debt, copies a Uniswap V4 key
    whole, and asks for both limits of a tick-range open inside the price, since no
    read reports the ratio a range needs. It previews a supply, a swap or a deposit
    only once the wallet holds the funds, and gives a preview the time limit of an
    execution.

Removed

  • --public-rpc drpc no longer serves Avalanche. Its keyless tier intermittently
    refuses reads pinned to a block and the gas estimate a direct action makes at a block
    hash, and it failed qualification in repeated runs. Avalanche keeps publicnode as
    its one public endpoint. A record kept from an action that ran through drpc on
    Avalanche resolves with ax recover --record <record> --public-rpc publicnode.

Fixed

  • Aave V3 Pool revision 12 is admitted on all seven chains. On 2026-11-11 every Aave V3
    Pool the connector lists moved to Pool revision 12 (Aave v3.8), whose code the
    connector had not verified, so each read, check, run, fork at a later block and
    direct action stopped with deployment_changed: Aave V3 pool has an unverified revision. The connector admits each chain's revision 12 Pool implementation by code
    hash beside the revision 11 one, each on its own chain only, and refuses a Pool that
    reports another revision than the one its code was verified as. Reads, backtests,
    direct actions, plain-account deployments and Safe/Roles deployments created while
    the Pool runs revision 12 are served. Revision 12 adds a reentrancy guard to the
    Pool's entry points. Its function signatures, events and storage layout are those of
    revision 11, it links the same supply, borrow, liquidation and pool logic
    libraries, and the reserve tokens are unchanged, so calldata, receipt accounting,
    the health projection and the generated Safe/Roles grants are the same under either
    revision.
    A Safe/Roles deployment keeps the permission manifest of its creation,
    which records the code of each contract it covers. One created while the Pool ran
    revision 11 is refused on every plan, its repayments, withdrawals and teardown
    included, with manifest contract identities differ from the supported profile,
    although its installed grants are the ones revision 12 needs. A plain-account
    deployment retains no manifest and continues across the upgrade.
  • A signed step of ax swap on Aerodrome is sent although pool shares reached the
    wallet after the signature. The step is reconciled from its own receipt with the
    shares listed under accounting_issues, and they are never attributed to the
    deployment. Such a step was held back before its first send for as long as the
    wallet held the shares, which kept the record and the wallet's claim: a signed
    approval carries no deadline to release it by. A strategy's trading-only Aerodrome
    allocation, composed or not, sends its signed approval, revocation and exit swap
    the same way. Its signed entry swap is still held back while the fund holds the
    shares and is never sent past them; past its deadline it can only be released,
    which follows the removal of the shares. A fund that holds shares is still refused
    before anything is signed.
  • ax withdraw on Aave V4 refuses a reserve that backs the wallet's open debt on the
    Spoke. It was held back only by the Spoke's own limit of a health factor of 1,
    while the documentation said every withdrawal of collateral was refused. A
    withdrawal of collateral with no debt open works, and the documentation says so.
  • The --public-rpc help no longer says the endpoint is for reads and previews only:
    direct actions execute through it.
  • ax recover releases a signed step that was never mined and whose nonce another
    transaction of the wallet used, once that transaction is final: at or below the
    endpoint's finalized block and behind its head by the network's margin, which
    docs/operating.md lists. Such a record answered nonce_conflict on every
    ax recover and kept the wallet's claim for good, for every direct action and step.
    The result lists the step under released_consumed_nonce with the transaction that
    used the nonce and its block, and the command exits 1 because the step did not
    happen. While that transaction is not final the answer is still nonce_conflict.
    Polygon PoS and HyperEVM state no margin: nothing is released there, and using the
    nonce of a stuck step there leaves its record unresolvable. Strategy deployments are
    unchanged.