Open SC4RECOIN opened 9 months ago
pub enum UpdateConfigMode { UpdateLoanToValuePct = 1, UpdateMaxLiquidationBonusBps = 2, UpdateLiquidationThresholdPct = 3, }
gets converted to
export enum UpdateConfigMode { UpdateLoanToValuePct, UpdateMaxLiquidationBonusBps, UpdateLiquidationThresholdPct, }
which is 0 based
this can be fixed by updating the rust enum to start from 0 or solita can be updated to generate the appropriate enum values
export enum UpdateConfigMode { UpdateLoanToValuePct = 1, UpdateMaxLiquidationBonusBps, UpdateLiquidationThresholdPct, }
this is minor so feel free to close if not a priority
gets converted to
which is 0 based
this can be fixed by updating the rust enum to start from 0 or solita can be updated to generate the appropriate enum values
this is minor so feel free to close if not a priority