Deposit
Before distributing rewards to the Operators, its essential to deposit Rewards funds in the AVS Treasury contracts.
Othentic CLI enables depositing rewards into the AVS treasury. It supports both ERC-20 tokens and native ETH, ensuring an automated approval check before initiating the deposit process.
Read More
You can choose one of these options:
1. Using CLI
Prerequisites
Access to AVS governance multisig owner
L1/L2 chain name where rewards are configured. Find the corresponding values for the Supported chains here.
Run the following command:
othentic-cli network rewards deposit --l1-chain <chain> --amount <amount>
Use --browser-sign
flag for the browser wallets support like SAFE Multisig.
Follow these steps when prompted:
2. Using Contracts
You can directly deposit rewards into the L1/L2 AVS Treasury using contract methods.
Get Reward Token Address
Retrieve the Reward Token address, set during the AVS contracts deployment.
Approve Token Transfer (ERC20)
In case the Rewards token is ERC20, approve the token transfer to the AVS Treasury contract.
const approveTx = await rewardTokenSmartContract.approve(
avsTreasuryContractAddress,
amount
);
Deposit Rewards
Execute depositNative or depositERC20 on the AVS Treasury contract, with the desired amount.
const depositTx = await avsTreasuryContract.depositERC20(senderAddress, amount);
// For ETH deposits
const depositTx = await avsTreasuryContract.depositNative({ value: amount })

Once the transaction is confirmed, the deposit is complete.
Last updated