tx · Gm1pYpHu5Wsovqg8f6Rofb5zvFQQwhBZhc6CF5eqDwJ4

3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH:  -0.00900000 Waves

2023.11.08 17:17 [2834482] smart account 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH > SELF 0.00000000 Waves

{ "type": 13, "id": "Gm1pYpHu5Wsovqg8f6Rofb5zvFQQwhBZhc6CF5eqDwJ4", "fee": 900000, "feeAssetId": null, "timestamp": 1699453026449, "version": 2, "chainId": 84, "sender": "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH", "senderPublicKey": "9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG", "proofs": [ "4XwmL8cNRTQvQM9n9F6Y2ABrWmtTRWFjx7PAzrSGAcE4TKSznUU7TrVSX5xG8pt9adVEBeqPNLFE9LaP9eQpGmsM" ], "script": "base64:BgIlCAISBAoCCAESAwoBCBIAEgMKAQgSABIDCgEIEgMKAQgSAwoBCAkAAmxpCQDMCAICATEJAMwIAgIBMgkAzAgCAgEzCQDMCAICATQJAMwIAgIBNQkAzAgCAgE2CQDMCAICATcJAMwIAgIBOAkAzAgCAgE5CQDMCAICAjEwCQDMCAICAjExCQDMCAICAjEyCQDMCAICAjEzCQDMCAICAjE0CQDMCAICAjE1CQDMCAICAjE2CQDMCAICAjE3CQDMCAICAjE4CQDMCAICAjE5CQDMCAICAjIwCQDMCAICAjIxCQDMCAICAjIyCQDMCAICAjIzCQDMCAICAjI0CQDMCAICAjI1CQDMCAICAjI2CQDMCAICAjI3CQDMCAICAjI4CQDMCAICAjI5CQDMCAICAjMwCQDMCAICAjMxCQDMCAICAjMyCQDMCAICAjMzCQDMCAICAjM0CQDMCAICAjM1CQDMCAICAjM2CQDMCAICAjM3CQDMCAICAjM4CQDMCAICAjM5CQDMCAICAjQwCQDMCAICAjQxCQDMCAICAjQyCQDMCAICAjQzCQDMCAICAjQ0CQDMCAICAjQ1CQDMCAICAjQ2CQ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JbmRleAAAAAIAAQQHbGVmdFN0cgkArwICBRBnZXRQb29sQm9vc3RpbmdzCQBlAgUHc2l6ZVN0cgkAZAIJAGUCBQdzaXplU3RyBQlmaW5kSW5kZXgFDG1vZGlmaWVyTGVmdAQIcmlnaHRTdHIJALICAgUQZ2V0UG9vbEJvb3N0aW5ncwkAZQIFB3NpemVTdHIJAGQCBQlmaW5kSW5kZXgFDW1vZGlmaWVyUmlnaHQEEG9wZW5Cb29zdGluZ3NJZHMJAKwCAgUHbGVmdFN0cgUIcmlnaHRTdHIJAMwIAgkBC1N0cmluZ0VudHJ5AgIRZ2V0RmluaXNoZWRQb29sSWQFEWdldEZpbmlzaGVkUG9vbElkCQDMCAIJAQtTdHJpbmdFbnRyeQICEGdldFBvb2xCb29zdGluZ3MFEGdldFBvb2xCb29zdGluZ3MJAMwIAgkBDEludGVnZXJFbnRyeQICCWZpbmRJbmRleAUJZmluZEluZGV4CQDMCAIJAQxJbnRlZ2VyRW50cnkCAgdzaXplU3RyBQdzaXplU3RyCQDMCAIJAQtTdHJpbmdFbnRyeQICC2xlZnQgc3RyaW5nBQdsZWZ0U3RyCQDMCAIJAQtTdHJpbmdFbnRyeQICDHJpZ2h0IHN0cmluZwUIcmlnaHRTdHIJAMwIAgkBC1N0cmluZ0VudHJ5AgIQb3BlbkJvb3N0aW5nc0lkcwUQb3BlbkJvb3N0aW5nc0lkcwkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgIJAKwCAgIFcG9vbF8FEWdldEZpbmlzaGVkUG9vbElkAgpfYm9vc3RpbmdzBRBvcGVuQm9vc3RpbmdzSWRzBQNuaWwA0X6dPg==", "height": 2834482, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2tnMxHbUKtcAaDsNtSNRSRKPmAZj21wuu57XHg4zqUC6 Next: Cf4zs8fS3VHjh5C5t8SNk8SQ2ujTKovFD6KjPpz9pxkF Diff:
OldNewDifferences
5858 let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft)))
5959 let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))
6060 let openBoostingsIds = (leftStr + rightStr)
61-[IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds)]
61+[IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), if ((finishHeight > height))
62+ then tryGetString((("pool_" + getFinishedPoolId) + "_boostings"))
63+ else openBoostingsIds)]
6264 }
6365 else nil
6466 }
204206 }
205207
206208
209+
210+@Callable(i)
211+func remove (boostingId) = {
212+ let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId"))
213+ let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings"))
214+ let sizeStr = size(getPoolBoostings)
215+ let findIndex = value(indexOf(getPoolBoostings, boostingId))
216+ let modifierLeft = if ((findIndex == 0))
217+ then 0
218+ else 1
219+ let modifierRight = if ((findIndex == 0))
220+ then 2
221+ else 1
222+ let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft)))
223+ let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))
224+ let openBoostingsIds = (leftStr + rightStr)
225+[StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), openBoostingsIds)]
226+ }
227+
228+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let li = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "50", "51", "52", "53", "55", "56"]
55
66 let hours = 1
77
88 let minutes = 10
99
1010 func tryGetInteger (key) = match getInteger(this, key) {
1111 case b: Int =>
1212 b
1313 case _ =>
1414 0
1515 }
1616
1717
1818 func tryGetString (key) = match getString(this, key) {
1919 case b: String =>
2020 b
2121 case _ =>
2222 ""
2323 }
2424
2525
2626 func getAssetString (assetId) = match assetId {
2727 case b: ByteVector =>
2828 toBase58String(b)
2929 case _ =>
3030 "WAVES"
3131 }
3232
3333
3434 func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES"))
3535 then unit
3636 else fromBase58String(assetIdStr)
3737
3838
3939 func payBoostingResult (boostingId) = {
4040 let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight"))
4141 let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight"))
4242 if (if ((lastHeight != 0))
4343 then (finishHeight > lastHeight)
4444 else false)
4545 then {
4646 let blockReward = (tryGetInteger((("boosting_" + boostingId) + "_totalAmount")) / ((tryGetInteger((("boosting_" + boostingId) + "_days")) * hours) * minutes))
4747 let toPay = fraction((min([finishHeight, height]) - lastHeight), blockReward, 1)
4848 let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId"))
4949 let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings"))
5050 let sizeStr = size(getPoolBoostings)
5151 let findIndex = value(indexOf(getPoolBoostings, boostingId))
5252 let modifierLeft = if ((findIndex == 0))
5353 then 0
5454 else 1
5555 let modifierRight = if ((findIndex == 0))
5656 then 2
5757 else 1
5858 let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft)))
5959 let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))
6060 let openBoostingsIds = (leftStr + rightStr)
61-[IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds)]
61+[IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), ScriptTransfer(addressFromStringValue(tryGetString((("boosting_" + boostingId) + "_poolId"))), toPay, getAssetBytes(tryGetString((("boosting_" + boostingId) + "_assetId")))), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), if ((finishHeight > height))
62+ then tryGetString((("pool_" + getFinishedPoolId) + "_boostings"))
63+ else openBoostingsIds)]
6264 }
6365 else nil
6466 }
6567
6668
6769 func endedBoostingIds (boostingId) = {
6870 let lastHeight = tryGetInteger((("boosting_" + boostingId) + "_lastHeight"))
6971 let finishHeight = tryGetInteger((("boosting_" + boostingId) + "_finishHeight"))
7072 if ((lastHeight >= finishHeight))
7173 then [StringEntry((("list ended " + toString(height)) + " boostingIds"), ((tryGetString((("list ended " + toString(height)) + " boostingIds")) + boostingId) + ","))]
7274 else [StringEntry((("list ongoing boosts " + toString(height)) + " boostingIds"), ((tryGetString((("list ongoing boosts " + toString(height)) + " boostingIds")) + boostingId) + ","))]
7375 }
7476
7577
7678 @Callable(i)
7779 func addBoosting (poolId,days) = if ((1 > days))
7880 then throw("amount of days has to be between 1 and 365")
7981 else if ((days > 365))
8082 then throw("amount of days has to be between 1 and 365")
8183 else if (false)
8284 then throw("under maintenance until further notice")
8385 else {
8486 let fullAmount = i.payments[0].amount
8587 if ((1440 > (fullAmount / days)))
8688 then throw((("boosting amount too small, minimum is " + toString((1440 * days))) + " of the smallest unit of payment asset"))
8789 else {
8890 let assetId = getAssetString(i.payments[0].assetId)
8991 if ((height == tryGetInteger("height")))
9092 then throw("wait 1 minute")
9193 else {
9294 let entry = if ((size(tryGetString((("pool_" + poolId) + "_boostings"))) > 11))
9395 then throw("max 5 boosts per pool")
9496 else invoke(this, "entryEnded", nil, nil)
9597 if ((entry == entry))
9698 then {
9799 let boostingId = if ((size((("list ongoing boosts " + toString(height)) + " boostingIds")) > 112))
98100 then throw("wait till other boosts are finished")
99101 else take(tryGetString((("list ended " + toString(height)) + " boostingIds")), 1)
100102 if ((addressFromString(poolId) == unit))
101103 then throw("incorrect pool address")
102104 else [IntegerEntry((("boosting_" + boostingId) + "_days"), days), IntegerEntry((("boosting_" + boostingId) + "_totalAmount"), fullAmount), IntegerEntry((("boosting_" + boostingId) + "_dailyAmount"), (fullAmount / days)), IntegerEntry((("boosting_" + boostingId) + "_startHeight"), height), IntegerEntry((("boosting_" + boostingId) + "_finishHeight"), (height + ((days * hours) * minutes))), IntegerEntry((("boosting_" + boostingId) + "_finishTimestamp"), (lastBlock.timestamp + ((((days * hours) * minutes) * 60) * 1000))), IntegerEntry((("boosting_" + boostingId) + "_lastHeight"), height), StringEntry((("boosting_" + boostingId) + "_assetId"), assetId), StringEntry((("boosting_" + boostingId) + "_owner"), toString(i.caller)), StringEntry((("boosting_" + boostingId) + "_poolId"), poolId), StringEntry((("pool_" + poolId) + "_boostings"), ((tryGetString((("pool_" + poolId) + "_boostings")) + boostingId) + ","))]
103105 }
104106 else throw("Strict value is not equal to itself.")
105107 }
106108 }
107109 }
108110
109111
110112
111113 @Callable(i)
112114 func payBoosting (boostingId) = payBoostingResult(boostingId)
113115
114116
115117
116118 @Callable(i)
117119 func payBoostings () = {
118120 func f (accum,next) = {
119121 let in = invoke(this, "payBoosting", [next], nil)
120122 if ((in == in))
121123 then in
122124 else throw("Strict value is not equal to itself.")
123125 }
124126
125127 let payments = {
126128 let $l = li
127129 let $s = size($l)
128130 let $acc0 = 0
129131 func $f0_1 ($a,$i) = if (($i >= $s))
130132 then $a
131133 else f($a, $l[$i])
132134
133135 func $f0_2 ($a,$i) = if (($i >= $s))
134136 then $a
135137 else throw("List size exceeds 56")
136138
137139 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56)
138140 }
139141 if ((payments == payments))
140142 then nil
141143 else throw("Strict value is not equal to itself.")
142144 }
143145
144146
145147
146148 @Callable(i)
147149 func endedBoostings (boostingId) = endedBoostingIds(boostingId)
148150
149151
150152
151153 @Callable(i)
152154 func entryEnded () = {
153155 func f (accum,next) = {
154156 let in = invoke(this, "endedBoostings", [next], nil)
155157 if ((in == in))
156158 then in
157159 else throw("Strict value is not equal to itself.")
158160 }
159161
160162 let end = {
161163 let $l = li
162164 let $s = size($l)
163165 let $acc0 = 0
164166 func $f0_1 ($a,$i) = if (($i >= $s))
165167 then $a
166168 else f($a, $l[$i])
167169
168170 func $f0_2 ($a,$i) = if (($i >= $s))
169171 then $a
170172 else throw("List size exceeds 56")
171173
172174 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56)
173175 }
174176 if ((end == end))
175177 then [IntegerEntry("height", height)]
176178 else throw("Strict value is not equal to itself.")
177179 }
178180
179181
180182
181183 @Callable(i)
182184 func deleteEntr (poolId) = [DeleteEntry((("pool_" + poolId) + "_boostings"))]
183185
184186
185187
186188 @Callable(i)
187189 func checkStr (boostingId) = {
188190 let getFinishedPoolId1 = tryGetString((("boosting_" + boostingId) + "_poolId"))
189191 let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId1) + "_boostings"))
190192 let sizeStr = size(getPoolBoostings)
191193 if ((indexOf(getPoolBoostings, boostingId) == unit))
192194 then nil
193195 else {
194196 let findIndex = value(indexOf(getPoolBoostings, boostingId))
195197 let modifierRight = if ((findIndex == 0))
196198 then 2
197199 else 1
198200 let modifierLeft = if ((findIndex == 0))
199201 then 0
200202 else 1
201203 let removeEndedBoostingID = (take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft))) + takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight))))
202204 [StringEntry("getFinishedPoolId", getFinishedPoolId1), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", take(getPoolBoostings, (sizeStr - (sizeStr - findIndex)))), StringEntry("right string", takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))), StringEntry((("pool_" + getFinishedPoolId1) + "_boostings"), removeEndedBoostingID)]
203205 }
204206 }
205207
206208
209+
210+@Callable(i)
211+func remove (boostingId) = {
212+ let getFinishedPoolId = tryGetString((("boosting_" + boostingId) + "_poolId"))
213+ let getPoolBoostings = tryGetString((("pool_" + getFinishedPoolId) + "_boostings"))
214+ let sizeStr = size(getPoolBoostings)
215+ let findIndex = value(indexOf(getPoolBoostings, boostingId))
216+ let modifierLeft = if ((findIndex == 0))
217+ then 0
218+ else 1
219+ let modifierRight = if ((findIndex == 0))
220+ then 2
221+ else 1
222+ let leftStr = take(getPoolBoostings, (sizeStr - ((sizeStr - findIndex) + modifierLeft)))
223+ let rightStr = takeRight(getPoolBoostings, (sizeStr - (findIndex + modifierRight)))
224+ let openBoostingsIds = (leftStr + rightStr)
225+[StringEntry("getFinishedPoolId", getFinishedPoolId), StringEntry("getPoolBoostings", getPoolBoostings), IntegerEntry("findIndex", findIndex), IntegerEntry("sizeStr", sizeStr), StringEntry("left string", leftStr), StringEntry("right string", rightStr), StringEntry("openBoostingsIds", openBoostingsIds), StringEntry((("pool_" + getFinishedPoolId) + "_boostings"), openBoostingsIds)]
226+ }
227+
228+

github/deemru/w8io/169f3d6 
50.98 ms