CBChickenOut

Withdraws backing lusd from a pending bond

Description

When the bond is in the pending stage, user can chicken out and withdraw the whole LUSD amount in the bond, forfeiting the interest earned on the LUSD. In some specific cases (bad liquidations, hacks...) the whole amount of LUSD might not be able to be returned so there is a minLUSD parameter as well.

Action calls chickenBondManager.chickenOut(uint256 _bondID, uint256 _minLUSD);

Notes

If the user can withdraw full lusdAmount, set minLUSD == bond.lusdAmount to be gas optimal

Action ID

0x6b376b60

SDK Action

const cBChickenOutAction = new dfs.actions.chickenBonds.CBChickenOutAction(
    bondId,
    minLUSD,
    to
);

Action Type

STANDARD_ACTION

Input Parameters

Return Value

Events and Logs

Last updated

Was this helpful?