Skip to content

Commit

Permalink
resumption fee is not optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ridev6 committed Apr 17, 2024
1 parent 03a83f1 commit 2ee0d34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ride/voting_emission.ride
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ let maxDepthDefault = 10
let finalizationStageBalances = 0
let finalizationStageTotal = 1
let finalizationStageShares = 2
let resumptionFeeDefault = 5000_00000000

let keyEpochLength = ["%s", "epochLength"].makeString(separator)
let keyEpochLengthNew = ["%s%s", "epochLength__new"].makeString(separator)
Expand Down Expand Up @@ -882,7 +881,7 @@ func resume(amountAssetId: String, priceAssetId: String) = {

let resumptionFee = this.getInteger(
keyResumptionFee
).valueOrElse(resumptionFeeDefault)
).valueOrErrorMessage("invalid resumption fee")

strict checks = [
balanceIsOk || throwErr("insufficient balances"),
Expand Down

0 comments on commit 2ee0d34

Please sign in to comment.