Skip to main content

BuyBack Contract Configuration

This guide provides the configuration parameters required to set up and deploy a Buyback Contract in the Defactor Engage platform.

Buyback Contract Configuration

Unlike other modules, Buyback Contracts in Engage do not rely on pre-defined plans. Instead, each contract operates autonomously based on its configuration.

The core function of a Buyback Contract is to receive USDC, periodically convert it into FACTR tokens via a swap on the open market, and then lock the purchased FACTR for one year. After the lock period, the tokens are distributed to a set of predefined vault addresses.

This mechanism supports Defactor’s circular token economy by reducing circulating supply and reinforcing long-term value through time-locked distribution:

BuyBack Configuration Parameters

ParameterTypeDescription
recovereraddressAddress authorized to recover stuck tokens from the contract.
buyFrequencyuintCooldown period between consecutive buybacks (in seconds).
vaultsaddress[]Array of vault addresses to distribute purchased FACTR tokens (typically 4).
maxLiquiditySlippageuint16Maximum allowed slippage (in basis points) during token swap.
uniswapRouteraddressUniswap v3 router address used to execute swaps.
factraddressFACTR token address to be bought back.
usdcaddressUSDC token address used to purchase FACTR.
wethaddressWETH token used as an intermediate route in the swap.
quoteraddressContract address to fetch swap quotes without executing them.

Example Configuration

buybackContract:
recoverer: "0x1234567890ABCDEF1234567890ABCDEF12345678" # Address allowed to recover stuck tokens
buyFrequency: 86400 # Buyback cooldown period (in seconds)
vaults: # Vault addresses to distribute purchased FACTR
- "0xABCDEF1234567890ABCDEF1234567890ABCDEF01"
- "0xABCDEF1234567890ABCDEF1234567890ABCDEF02"
- "0xABCDEF1234567890ABCDEF1234567890ABCDEF03"
- "0xABCDEF1234567890ABCDEF1234567890ABCDEF04"
maxLiquiditySlippage: 100 # 1% slippage (100 basis points)
uniswapRouter: "0xE592427A0AECE92DE3EDEE1F18E0157C05861564" # Uniswap V3 router
factrToken: "0xF4C5AF7E0A695E2B3832D203A9522A1D77B40F76" # FACTR token address
usdcToken: "0xA0B86991C6218B36C1D19D4A2E9EB0CE3606EB48" # USDC token address
wethToken: "0xC02AA39B223FE8D0A0E5C4F27EAD9083C756CC2" # WETH intermediary
quoter: "0xB27308F9F90D607463BB33EA1BEBB41C27CE5AB6" # Uniswap Quoter contract

Follow us:

Copyright © 2025 Defactor. All Rights Reserved