Skip to content

1.10.0: $PRIVO buyback & burn

Choose a tag to compare

@privoexchange privoexchange released this 28 Nov 16:18
· 3 commits to main since this release

$PRIVO buyback & burn

Fees paid to the PRIVO fee Safe (0xCc051cf47547386bA147FDDfcBCFE00E791C1418, 2 of 3) are used to buy back $PRIVO and send it to the burn address 0x000000000000000000000000000000000000dEaD. The policy covers all of them: spot swaps, the Block desk, limit and TWAP fills and PRIVO AI Pro.

A buyback is one Safe transaction through MultiSendCallOnly 1.4.1, and it either completes in full or does nothing:

  1. The Safe's USDG goes to the Uniswap Universal Router.
  2. The router buys $PRIVO on its Pons pool through ETH, with no PRIVO fee, and sends it straight to the burn address. If the output is below the minimum, the whole transaction reverts.
  3. Any $PRIVO the Safe already holds goes to the burn address in the same batch.

No approval is left behind and nothing returns to the Safe.

In this release

  • src/privo-burn.js (new, exported as privoperps/burn): builds the batch, decodes it, and rebuilds it from its parameters so a second owner can check it byte for byte before signing.
  • src/privo-swap.js: quote(..., { fee: false }) and buyToRoute(), a buy that sweeps to any recipient with a minimum and a deadline.
  • test/sim/burn-test.mjs: simulates a 2-of-3 Safe buyback on mainnet state with eth_simulateV1, follows every token to the burn address, and checks that a minimum set too high reverts.
  • test/sim/feed-test.mjs: pool prices survive a rate-limited GeckoTerminal batch (from 1.9.3).

Public totals

Fees received and every buyback are read from chain and shown at https://privoexchange.com/token and GET https://privoexchange.com/api/v1/burn.

Tests send no transactions. Run them with node test/sim/burn-test.mjs.