Skip to content

v3.4.2

Latest

Choose a tag to compare

@lars0x lars0x released this 26 Nov 07:23
· 34 commits to main since this release
03f1244

Added

  • almanak ax bridge sends native ETH and delivers native ETH through Across, from
    a plain wallet to a plain recipient, when --asset and --destination-asset both
    name the native asset (eip155:<chain>/slip44:60) of two of Ethereum, Arbitrum,
    Base, OP Mainnet and Robinhood Chain. The deposit carries the amount as its own
    value, in one step with no approval. The wallet must hold the amount plus the
    transaction fee ceiling. A recipient that holds contract code on the destination
    chain is refused with recipient_is_contract, because the SpokePool would pay it
    the wrapped token; that check is the command's and not on-chain enforcement. The
    preview states the payout and that a refund is paid in the wrapped token on the
    source chain. A strategy, a Safe and a backtest refuse the route. No native
    bridge has been run on a fork or on mainnet: the route is declared on read-only
    mainnet known answers and offline tests.
  • almanak ax bridge-status reports what a fill of a wrapped native output paid:
    arrival.paid_as is native when the destination SpokePool unwrapped the amount
    in the fill transaction and wrapped_token when it transferred the token, with
    the evidence under arrival.measured_by. The evidence is the pool's outflow of
    exactly the fill's amount after the fill event; a fill with none, or with both
    forms, stops with an integrity cause. A refund of a wrapped native input names
    the token under refund.paid_in.
  • Every almanak ax read that pins a block states read_at, ax balance and the
    pool, reserve, market and discovery reads included, and it also holds the resolved
    block's number and timestamp and age_seconds, the command's clock less that
    timestamp. No extra read is made for it. ax bridge-status keeps its own
    read_at.
  • A direct action's preview states steps_note: how many transactions the request
    plans, in order by kind, as the sequence it sends when nothing is refused, and that only the first step's gas is quoted, because a
    later step cannot be simulated before the earlier one is mined. Aave V4, Aave V3
    and SparkLend now list steps as Across does, where the planned block decides
    every step; a full repayment and the other connectors list none and say that
    more can follow the first step. No gas is estimated for a later step.

Changed

  • A venue refusal of an amount as too low for its fees is the cause
    amount_too_low, for every Across route. It was quote_refused.
  • Every almanak ax read defaults to --block latest, the head, and
    ax bridge-status reads its outcome there too. --block finalized is stated to
    read only final blocks. A read at the old default reported a balance from before a
    transfer that had arrived, a quarter of an hour behind the head on a rollup. A
    block at the head can still be replaced, so an arrival or an unfilled transfer
    that ax bridge-status reports without --block finalized is not final. Its
    in_flight note mentions a fill in a later block only for a read at finalized.
  • The agent skill reads a balance or a position after an action or a bridge's
    arrival with --block latest, reports the step count of a preview, and says that
    the later steps' gas is not quoted up front.
  • A position read says which block it read and why. --help of every ax read states
    its default and that finalized can trail the head by minutes on a rollup;
    almanak markets --help states its own default, latest. ax lending-position,
    ax liquidity-position and ax perp-position report read_at, whose block is the
    selector that chose the block, so an empty position read at an old block can be told
    from an empty position. The refusal of a token ID a position manager does not hold
    names the block read (holds no NFT <token id> at block <number>), and a
    liquidity-position read at finalized adds how to read the head; a direct action's
    refusal names the block only. Each entry of a direct action's outcomes states the
    block its step was mined in. The accepted selectors are unchanged (#38).

Fixed

  • almanak ax lending-markets --connector aave_v4 counts a Spoke that reverts
    getReserveCount() in source.without_reserves whichever JSON-RPC code the node
    answers the revert with. Avalanche nodes answer a revert without data as -32000
    execution reverted, so every empty Spoke there was named in source.unreadable. A
    read the node refused or could not serve under the same code is still unreadable.
  • almanak ax perp-markets --connector gmx_v2 resolves the venue's Avalanche labels:
    BTC/USD, ETH/USD and AVAX/USD name the markets indexed by BTC.b, WETH.e and
    WAVAX, as BTC/USD and ETH/USD already named WBTC and WETH on Arbitrum. The
    [LONG-SHORT] collateral notation takes the same labels beside the on-chain symbols,
    for example AVAX/USD [AVAX-USDC]. Aliases are per chain, and a label that matches
    several markets is still refused with its candidates.
  • A direct ax action other than a bridge re-sends a transient read failure while it
    resolves its market and reads the wallet's position, each read within the budget an
    execution read has. A load-balanced endpoint that had not yet served the head
    (provider has not served the block) ended the action before planning. Nothing was
    signed, and no submission is ever re-sent. ax bridge and ax revoke-bridge resolve
    their route without this budget.