Auto Repay

Auto repay is Metronome’s version of unlooping a position, enabling users to repay with ease. If a user wants to unloop their position, they can input the number of collateral assets they intend to use for repayment (the corresponding dollar value is displayed). Upon doig so, users will be shown their anticipated collateral ratio after repayment, as well as an approximation of how many synths will be bought back for the repayment process. Once users confirm by clicking the "Repay" button, a transaction will be executed and then confirmed in the users wallet with the newly updated position displayed.


  1. User navigates to the Metronome Smart Farming platform.

  2. User selects vaUSDC as their preferred collateral.

  3. The user's vaUSDC position is looped according to the users preference.

  4. When the user decides to unloop (auto repay) their position, the user will retains their vaUSDC tokens within the Metronome platform.

Additionally, if a user deposits naked collateral (i.e. USDC) for use in Smart Farming, the contract will deposit the user's USDC into Vesper, generating vaUSDC. Upon unlooping, this can easily be converted back to the original USDC position via the Vesper pools on Metronome, or by visiting the Vesper app.

The smart contract manages the following steps:

  1. Exchanges the user’s collateral for the necessary synth amount.

  2. Uses the exchanged synth to repay the users outstanding assets.

  3. Cancels the transaction if the exchanged synth amount exceeds the user’s total outstanding amount.

  4. Confirms the user’s account is healthy after the swap.

Note: Any user that has generated synthetic assets can use the auto repay functionality.

You can perform Auto Repay by doing the following:

1. Navigate to the Metronome application.

2. Hover over your chosen synth asset and click “Repay”.

  1. Next, select how you would like to repay, in this case, we will be using “Auto Repay”.

  1. Here you will be able to see your outstanding position, choose your collateral, and set your slippage tolerance.

  1. Once you are comfortable, hit “Repay” and confirm the transaction.

  2. Now you will be able to see your updated stats and health factor on the dashboard.

Last updated