$UMBLYN
The treasury and buybacks. No holder discount is encoded.
These contracts do not mint $UMBLYN, and they do not read a holder's $UMBLYN balance. A fee discount and a board boost are not implemented.
Treasury
Treasury can hold the protocol share of fee shares. Its owner sets the factory once (setFactory reverts if it is called again) and can set the $UMBLYN token address.
Buyback
Treasury
function buyback(
address asset,
uint256 amountIn,
uint256 minUmblynOut,
address adapter,
bytes calldata data
) external returns (uint256 got);- Only the treasury owner can call it.
umblynmust be set, or the call reverts withUmblynNotSet.- The adapter must be on the factory allowlist.
- The received $UMBLYN must be at least
minUmblynOut. The tokens stay in the treasury.
recover lets the treasury owner send any token balance to an address. That includes fee shares and $UMBLYN. Treat the owner key as a custody key.