Skip to content

Commit

Permalink
Merge branch 'develop' into 11177
Browse files Browse the repository at this point in the history
  • Loading branch information
ze97286 authored Apr 23, 2024
2 parents 5056dd4 + 361dad3 commit 8aa2436
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/types/liquidation.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ func (l *LiquidationNode) IntoProto() *snapshot.Liquidation {
}

func PayloadLiquidationNodeFromProto(p *snapshot.Payload_Liquidation) *LiquidationNode {
// @NOTE this is here only for the protocol upgrade
if p.Liquidation.Config != nil && p.Liquidation.Config.DisposalSlippageRange == "" {
p.Liquidation.Config.DisposalSlippageRange = "0"
}
node, err := LiquidationSnapshotFromProto(p.Liquidation)
if err != nil {
// @TODO figure out what to do with this error
Expand Down

0 comments on commit 8aa2436

Please sign in to comment.