Skip to content

Commit

Permalink
sponsored => merging renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed May 30, 2022
1 parent 99a8b47 commit ef04445
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ trait ReemissionContracts {
val correctCoinsIssued = EQ(reemissionRewardPerBlock, Minus(ExtractAmount(Self), ExtractAmount(reemissionOut)))

// when reemission contract box got merged with other boxes
val sponsored = {
val merging = {
val feeOut = secondOut
AND(
GT(ExtractAmount(reemissionOut), ExtractAmount(Self)),
Expand All @@ -110,7 +110,7 @@ trait ReemissionContracts {
correctNftId,
sameScriptRule,
OR(
sponsored,
merging,
AND(
heightCorrect,
correctMinerOutput,
Expand Down
4 changes: 2 additions & 2 deletions papers/emission.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ second one is to pay mining fee supposedly (its value can be 0.01 ERG at most)
val correctCoinsIssued = EQ(reemissionRewardPerBlock, Minus(ExtractAmount(Self), ExtractAmount(reemissionOut)))

// when reemission contract box got merged with other boxes
val sponsored = AND(
val merging = AND(
GT(ExtractAmount(reemissionOut), ExtractAmount(Self)),
LE(ExtractAmount(ByIndex(Outputs, IntConstant(1))), LongConstant(10000000)), // 0.01 ERG
EQ(SizeOf(Outputs), 2)
Expand All @@ -136,7 +136,7 @@ second one is to pay mining fee supposedly (its value can be 0.01 ERG at most)
correctNftId,
sameScriptRule,
OR(
sponsored,
merging,
AND(
heightCorrect,
correctMinerOutput,
Expand Down

2 comments on commit ef04445

@Krishna60690
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0xe48fa59eB52021a0f444A5bbDE1fBf22982271b6

@Krishna60690
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0xe48fa59eB52021a0f444A5bbDE1fBf22982271b6

Please sign in to comment.