tx · BBJCr3LuhhHqaUJXLTdi4nMYhLEzyjLBTtjz2s1apvC7 3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj: -0.01000000 Waves 2021.11.17 13:03 [1794890] smart account 3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj > SELF 0.00000000 Waves
{ "type": 13, "id": "BBJCr3LuhhHqaUJXLTdi4nMYhLEzyjLBTtjz2s1apvC7", "fee": 1000000, "feeAssetId": null, "timestamp": 1637143433531, "version": 1, "sender": "3N74cvawpTtuuCbAasBo7oMJYrohgZYFCTj", "senderPublicKey": "BgnyKECwUvFW1ThWpgKbmHMmJXJRgg5K56jKHZwVMbXL", "proofs": [ "426D7Yhe53qgoBWsQYLPuiVA8rt2c9YxxbkRNb9KKcjmjvb9vfNdckGc9DwTKEC9pLCvhEkcLHKKGdz7iezR1RHo" ], "script": "base64:AAIFAAAAAAAAACkIAhIHCgUCAQEBARIAEgASBwoFAgEBAQESABIFCgMBAQESBgoECAgIAQAAACQAAAAAC3JldmlzaW9uTnVtAgAAAAAAAAAAA1NFUAIAAAACX18AAAAACE1BWERFUFRIAAAAAAAAAAARAAAAAAlVU0VSREVQVEgAAAAAAAAAABoAAAAABVNDQUxFAAAAAAAAAAPoAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkCAAAAAAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCIAAAABBQAAAANrZXkJAAEsAAAAAgkAASwAAAACAgAAAA9tYW5kYXRvcnkgdGhpcy4FAAAAA2tleQIAAAAPIGlzIG5vdCBkZWZpbmVk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mF0aW9uQmxvY2tzBAAAAAxzY2FsZThQYXJhbUIJAABoAAAAAgkAAGsAAAADBQAAAAh3eEFtb3VudAUAAAAFU0NBTEUFAAAAEmxvY2tEdXJhdGlvbkJsb2NrcwUAAAANbG9ja0VuZEhlaWdodAkABRQAAAACBQAAAANuaWwJAARMAAAAAgUAAAAMc2NhbGU4UGFyYW1LCQAETAAAAAIFAAAADHNjYWxlOFBhcmFtQgkABEwAAAACCQEAAAAKbmV4dFBlcmlvZAAAAAAFAAAAA25pbAAAAAFpAQAAAAtjb25zdHJ1Y3RvcgAAAAQAAAAMd3hBc3NldElkU3RyAAAAGm1hdGNoZXJQYWNlbWFrZXJBZGRyZXNzU3RyAAAAGmJvb3N0aW5nQ29udHJhY3RBZGRyZXNzU3RyAAAACG1heERlcHRoAwkBAAAAAiE9AAAAAgUAAAAEdGhpcwgFAAAAAWkAAAAGY2FsbGVyCQAAAgAAAAECAAAADm5vdCBhdXRob3JpemVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAlrZXlDb25maWcAAAAACQEAAAAMZm9ybWF0Q29uZmlnAAAABAUAAAAMd3hBc3NldElkU3RyBQAAABptYXRjaGVyUGFjZW1ha2VyQWRkcmVzc1N0cgUAAAAaYm9vc3RpbmdDb250cmFjdEFkZHJlc3NTdHIFAAAACG1heERlcHRoBQAAAANuaWwAAAAAYNe8yQ==", "chainId": 84, "height": 1794890, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: FsB89Pp8n6eSv2e2e2TKbPvR7MhkiF46SfS7yh7Tycor Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let revisionNum = "" | |
5 | + | ||
6 | + | let SEP = "__" | |
7 | + | ||
8 | + | let MAXDEPTH = 17 | |
9 | + | ||
10 | + | let USERDEPTH = 26 | |
11 | + | ||
12 | + | let SCALE = 1000 | |
13 | + | ||
14 | + | func getNumberByKey (key) = valueOrElse(getInteger(this, key), 0) | |
15 | + | ||
16 | + | ||
17 | + | func getStringByKey (key) = valueOrElse(getString(this, key), "") | |
18 | + | ||
19 | + | ||
20 | + | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
21 | + | ||
22 | + | ||
23 | + | let IdxCfgAssetId = 1 | |
24 | + | ||
25 | + | let IdxCfgPacemakerAddress = 2 | |
26 | + | ||
27 | + | let IdxCfgBoostingContract = 3 | |
28 | + | ||
29 | + | let IdxCfgMaxDepth = 4 | |
30 | + | ||
31 | + | func keyConfig () = "%s__config" | |
32 | + | ||
33 | + | ||
34 | + | func readConfigArrayOrFail () = split(getStringOrFail(keyConfig()), SEP) | |
35 | + | ||
36 | + | ||
37 | + | func formatConfig (wxAssetIdStr,matcherPacemakerAddressStr,boostingContractAddressStr,maxDepth) = makeString(["%s%s%s%d", wxAssetIdStr, matcherPacemakerAddressStr, boostingContractAddressStr, toString(maxDepth)], SEP) | |
38 | + | ||
39 | + | ||
40 | + | func keyUsersCount () = "%s__nextUserNum" | |
41 | + | ||
42 | + | ||
43 | + | func keyNextProcessedUser () = "%s__nextProcessedUser" | |
44 | + | ||
45 | + | ||
46 | + | func keyLatestPeriod () = "%s__latestPeriod" | |
47 | + | ||
48 | + | ||
49 | + | func keyNextPeriod () = "%s__nextPeriod" | |
50 | + | ||
51 | + | ||
52 | + | func keyNextProcessedPeriod () = "%s__nextProcessedPeriod" | |
53 | + | ||
54 | + | ||
55 | + | func keyNextUnlaimedPeriodOfUser (userIndex) = makeString(["%s%d__nextClaimedPeriod", toString(userIndex)], SEP) | |
56 | + | ||
57 | + | ||
58 | + | func keyLastProcessedPeriodOfUser (userIndex) = makeString(["%s%d__lastProcessedPeriod", toString(userIndex)], SEP) | |
59 | + | ||
60 | + | ||
61 | + | func keyHeightForPeriod (period) = makeString(["%s%d__startHeightForPeriod", toString(period)], SEP) | |
62 | + | ||
63 | + | ||
64 | + | func keyTotalAmountForPeriod (period) = makeString(["%s%d__totalAmountForPeriod", toString(period)], SEP) | |
65 | + | ||
66 | + | ||
67 | + | func keyTotalWeightForPeriod (period) = makeString(["%s%d__totalWeightForPeriod", toString(period)], SEP) | |
68 | + | ||
69 | + | ||
70 | + | func keyUserKValueForPeriod (period,userIndex) = makeString(["%s%d%s%d__paramByPeriod", toString(userIndex), "k", toString(period)], SEP) | |
71 | + | ||
72 | + | ||
73 | + | func keyUserBValueForPeriod (period,userIndex) = makeString(["%s%d%s%d__paramByPeriod", toString(userIndex), "b", toString(period)], SEP) | |
74 | + | ||
75 | + | ||
76 | + | func HistoryEntry (type,user,amount,currentPeriod,latestPeriod,i) = { | |
77 | + | let historyKEY = makeString(["%s%s%s%s__history", type, user, toBase58String(i.transactionId)], SEP) | |
78 | + | let historyDATA = makeString(["%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(amount), toString(currentPeriod), toString(latestPeriod)], SEP) | |
79 | + | StringEntry(historyKEY, historyDATA) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | func calcUserWeight (boostingContractAddress,heightForPeriod,period,userIndex) = { | |
84 | + | let kLast = keyLastProcessedPeriodOfUser(userIndex) | |
85 | + | let kKey = keyUserKValueForPeriod(period, userIndex) | |
86 | + | let kRaw = getInteger(boostingContractAddress, kKey) | |
87 | + | if (isDefined(kRaw)) | |
88 | + | then { | |
89 | + | let k = value(kRaw) | |
90 | + | let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(period, userIndex))) | |
91 | + | let w = ((k * heightForPeriod) + b) | |
92 | + | if ((w > 0)) | |
93 | + | then $Tuple2((w / SCALE), [IntegerEntry(kLast, period)]) | |
94 | + | else $Tuple2(0, nil) | |
95 | + | } | |
96 | + | else { | |
97 | + | let p = getInteger(this, kLast) | |
98 | + | if (isDefined(p)) | |
99 | + | then { | |
100 | + | let pv = value(p) | |
101 | + | let k = value(getInteger(boostingContractAddress, keyUserKValueForPeriod(pv, userIndex))) | |
102 | + | let b = value(getInteger(boostingContractAddress, keyUserBValueForPeriod(pv, userIndex))) | |
103 | + | let w = ((k * heightForPeriod) + b) | |
104 | + | if ((w > 0)) | |
105 | + | then $Tuple2((w / SCALE), nil) | |
106 | + | else $Tuple2(0, nil) | |
107 | + | } | |
108 | + | else $Tuple2(0, nil) | |
109 | + | } | |
110 | + | } | |
111 | + | ||
112 | + | ||
113 | + | func getUserIndexByAddress (boostingContractAddressStr,userAddress) = { | |
114 | + | let key = makeString(["%s%s%s", "mapping", "user2num", userAddress], SEP) | |
115 | + | parseIntValue(valueOrErrorMessage(getString(Address(fromBase58String(boostingContractAddressStr)), key), ((("User address " + userAddress) + " is not found in boosting contract data, key=") + key))) | |
116 | + | } | |
117 | + | ||
118 | + | ||
119 | + | func nextPeriod () = getNumberByKey(keyNextPeriod()) | |
120 | + | ||
121 | + | ||
122 | + | func invokeProcess (boostingContract,period,user,depth,weight) = { | |
123 | + | let result = invoke(this, "processNextBatch", [boostingContract, period, user, depth, weight], nil) | |
124 | + | if ((result == result)) | |
125 | + | then match result { | |
126 | + | case r: (Int, Int, Int) => | |
127 | + | r | |
128 | + | case _ => | |
129 | + | throw("Incorrect invoke result") | |
130 | + | } | |
131 | + | else throw("Strict value is not equal to itself.") | |
132 | + | } | |
133 | + | ||
134 | + | ||
135 | + | func checkLastPartOfPeriod (boostingContract,currentPeriod,latestPeriod,depth,totalWeightKey,weight) = if ((latestPeriod >= (currentPeriod + 1))) | |
136 | + | then invokeProcess(boostingContract, (currentPeriod + 1), 0, (depth - 1), 0) | |
137 | + | else $Tuple3((currentPeriod + 1), 0, 0) | |
138 | + | ||
139 | + | ||
140 | + | func processNextBatchInternal (boostingContract,currentPeriod,currentUser,depth,totalWeight) = { | |
141 | + | let boostingContractAddress = Address(boostingContract) | |
142 | + | let latestPeriod = getNumberByKey(keyLatestPeriod()) | |
143 | + | let usersCount = valueOrElse(getInteger(boostingContractAddress, keyUsersCount()), 0) | |
144 | + | let totalWeightKey = keyTotalWeightForPeriod(currentPeriod) | |
145 | + | let heightForPeriod = getNumberByKey(keyHeightForPeriod(currentPeriod)) | |
146 | + | if (if ((depth > 0)) | |
147 | + | then (latestPeriod >= currentPeriod) | |
148 | + | else false) | |
149 | + | then { | |
150 | + | let t0 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, currentUser) | |
151 | + | let weight0 = (totalWeight + t0._1) | |
152 | + | if ((usersCount > (currentUser + 1))) | |
153 | + | then { | |
154 | + | let t1 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 1)) | |
155 | + | let weight1 = (weight0 + t1._1) | |
156 | + | if ((usersCount > (currentUser + 2))) | |
157 | + | then { | |
158 | + | let t2 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 2)) | |
159 | + | let weight2 = (weight1 + t2._1) | |
160 | + | if ((usersCount > (currentUser + 3))) | |
161 | + | then { | |
162 | + | let t3 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 3)) | |
163 | + | let weight3 = (weight2 + t3._1) | |
164 | + | if ((usersCount > (currentUser + 4))) | |
165 | + | then { | |
166 | + | let t4 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 4)) | |
167 | + | let weight4 = (weight3 + t4._1) | |
168 | + | if ((usersCount > (currentUser + 5))) | |
169 | + | then { | |
170 | + | let t5 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, (currentUser + 5)) | |
171 | + | let weight5 = (weight4 + t5._1) | |
172 | + | if ((usersCount > (currentUser + 6))) | |
173 | + | then { | |
174 | + | let r5 = invokeProcess(boostingContract, currentPeriod, (currentUser + 6), (depth - 1), weight5) | |
175 | + | $Tuple4((((((t0._2 ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2) ++ t5._2), r5._1, r5._2, r5._3) | |
176 | + | } | |
177 | + | else { | |
178 | + | let r5 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight5) | |
179 | + | $Tuple4((((((([IntegerEntry(totalWeightKey, weight5)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2) ++ t5._2), r5._1, r5._2, r5._3) | |
180 | + | } | |
181 | + | } | |
182 | + | else { | |
183 | + | let r4 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight4) | |
184 | + | $Tuple4(((((([IntegerEntry(totalWeightKey, weight4)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2) ++ t4._2), r4._1, r4._2, r4._3) | |
185 | + | } | |
186 | + | } | |
187 | + | else { | |
188 | + | let r3 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight3) | |
189 | + | $Tuple4((((([IntegerEntry(totalWeightKey, weight3)] ++ t0._2) ++ t1._2) ++ t2._2) ++ t3._2), r3._1, r3._2, r3._3) | |
190 | + | } | |
191 | + | } | |
192 | + | else { | |
193 | + | let r2 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight2) | |
194 | + | $Tuple4(((([IntegerEntry(totalWeightKey, weight2)] ++ t0._2) ++ t1._2) ++ t2._2), r2._1, r2._2, r2._3) | |
195 | + | } | |
196 | + | } | |
197 | + | else { | |
198 | + | let r1 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight1) | |
199 | + | $Tuple4((([IntegerEntry(totalWeightKey, weight1)] ++ t0._2) ++ t1._2), r1._1, r1._2, r1._3) | |
200 | + | } | |
201 | + | } | |
202 | + | else { | |
203 | + | let r0 = checkLastPartOfPeriod(boostingContract, currentPeriod, latestPeriod, depth, totalWeightKey, weight0) | |
204 | + | $Tuple4(([IntegerEntry(totalWeightKey, weight0)] ++ t0._2), r0._1, r0._2, r0._3) | |
205 | + | } | |
206 | + | } | |
207 | + | else if ((currentUser == 0)) | |
208 | + | then $Tuple4(nil, currentPeriod, 0, 0) | |
209 | + | else $Tuple4([IntegerEntry(totalWeightKey, totalWeight)], currentPeriod, currentUser, 0) | |
210 | + | } | |
211 | + | ||
212 | + | ||
213 | + | func invokeClaim (boostingContract,period,user,depth,total) = { | |
214 | + | let result = invoke(this, "claimNextBatch", [boostingContract, period, user, depth, total], nil) | |
215 | + | if ((result == result)) | |
216 | + | then match result { | |
217 | + | case r: (Int, Int) => | |
218 | + | r | |
219 | + | case _ => | |
220 | + | throw("Incorrect invoke result") | |
221 | + | } | |
222 | + | else throw("Strict value is not equal to itself.") | |
223 | + | } | |
224 | + | ||
225 | + | ||
226 | + | func claimInternal (boostingContract,currentPeriod,currentUser,depth,userAccumulated) = { | |
227 | + | let boostingContractAddress = Address(boostingContract) | |
228 | + | let latestPeriod = getNumberByKey(keyNextProcessedPeriod()) | |
229 | + | let totalWeight = getNumberByKey(keyTotalWeightForPeriod(currentPeriod)) | |
230 | + | let heightForPeriod = getNumberByKey(keyHeightForPeriod(currentPeriod)) | |
231 | + | let $t01069910811 = calcUserWeight(boostingContractAddress, heightForPeriod, currentPeriod, currentUser) | |
232 | + | let userWeight = $t01069910811._1 | |
233 | + | let ignored = $t01069910811._2 | |
234 | + | let userAmountForPeriod = fraction(getNumberByKey(keyTotalAmountForPeriod(currentPeriod)), userWeight, totalWeight) | |
235 | + | if (if ((0 >= depth)) | |
236 | + | then true | |
237 | + | else ((currentPeriod + 1) >= latestPeriod)) | |
238 | + | then $Tuple2((currentPeriod + 1), (userAccumulated + userAmountForPeriod)) | |
239 | + | else invokeClaim(boostingContract, (currentPeriod + 1), currentUser, (depth - 1), (userAccumulated + userAmountForPeriod)) | |
240 | + | } | |
241 | + | ||
242 | + | ||
243 | + | @Callable(i) | |
244 | + | func processNextBatch (boostingContract,currentPeriod,currentUser,depth,totalWeight) = if ((i.caller != this)) | |
245 | + | then throw("Should be called by this script only") | |
246 | + | else { | |
247 | + | let tpl = processNextBatchInternal(boostingContract, currentPeriod, currentUser, depth, totalWeight) | |
248 | + | $Tuple2(tpl._1, $Tuple3(tpl._2, tpl._3, tpl._4)) | |
249 | + | } | |
250 | + | ||
251 | + | ||
252 | + | ||
253 | + | @Callable(i) | |
254 | + | func processPendingPeriodsAndUsers () = { | |
255 | + | let currentPeriod = getNumberByKey(keyNextProcessedPeriod()) | |
256 | + | if ((currentPeriod > getNumberByKey(keyLatestPeriod()))) | |
257 | + | then throw("Nothing to process") | |
258 | + | else { | |
259 | + | let cfgArray = readConfigArrayOrFail() | |
260 | + | let depth = parseIntValue(cfgArray[IdxCfgMaxDepth]) | |
261 | + | if ((depth > MAXDEPTH)) | |
262 | + | then throw("Depth exceeds MAXDEPTH") | |
263 | + | else { | |
264 | + | let boostingContract = fromBase58String(cfgArray[IdxCfgBoostingContract]) | |
265 | + | let currentUser = getNumberByKey(keyNextProcessedUser()) | |
266 | + | let totalWeight = getNumberByKey(keyTotalWeightForPeriod(currentPeriod)) | |
267 | + | let r = processNextBatchInternal(boostingContract, currentPeriod, currentUser, depth, totalWeight) | |
268 | + | ((r._1 :+ IntegerEntry(keyNextProcessedPeriod(), r._2)) :+ IntegerEntry(keyNextProcessedUser(), r._3)) | |
269 | + | } | |
270 | + | } | |
271 | + | } | |
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | @Callable(i) | |
276 | + | func deposit () = { | |
277 | + | let cfgArray = readConfigArrayOrFail() | |
278 | + | if ((i.caller != Address(fromBase58String(cfgArray[IdxCfgPacemakerAddress])))) | |
279 | + | then throw("Wrong caller address") | |
280 | + | else { | |
281 | + | let assetId = value(value(i.payments[0]).assetId) | |
282 | + | if ((assetId != fromBase58String(cfgArray[IdxCfgAssetId]))) | |
283 | + | then throw("Wrong payment asset") | |
284 | + | else { | |
285 | + | let period = nextPeriod() | |
286 | + | [IntegerEntry(keyLatestPeriod(), period), IntegerEntry(keyHeightForPeriod(period), height), IntegerEntry(keyTotalAmountForPeriod(period), value(i.payments[0]).amount), IntegerEntry(keyNextPeriod(), (period + 1))] | |
287 | + | } | |
288 | + | } | |
289 | + | } | |
290 | + | ||
291 | + | ||
292 | + | ||
293 | + | @Callable(i) | |
294 | + | func claimNextBatch (boostingContract,currentPeriod,currentUser,depth,totalWeight) = if ((i.caller != this)) | |
295 | + | then throw("Should be called by this script only") | |
296 | + | else { | |
297 | + | let periodAndTotal = claimInternal(boostingContract, currentPeriod, currentUser, depth, totalWeight) | |
298 | + | $Tuple2(nil, periodAndTotal) | |
299 | + | } | |
300 | + | ||
301 | + | ||
302 | + | ||
303 | + | @Callable(i) | |
304 | + | func claimReward () = { | |
305 | + | let cfgArray = readConfigArrayOrFail() | |
306 | + | let address = toString(i.caller) | |
307 | + | let userIdx = getUserIndexByAddress(cfgArray[IdxCfgBoostingContract], address) | |
308 | + | let currentPeriod = getNumberByKey(keyNextUnlaimedPeriodOfUser(userIdx)) | |
309 | + | let latestPeriod = getNumberByKey(keyNextProcessedPeriod()) | |
310 | + | if ((currentPeriod >= latestPeriod)) | |
311 | + | then throw("Nothing to claim") | |
312 | + | else { | |
313 | + | let boostingContract = fromBase58String(cfgArray[IdxCfgBoostingContract]) | |
314 | + | let $t01456214654 = claimInternal(boostingContract, currentPeriod, userIdx, USERDEPTH, 0) | |
315 | + | let period = $t01456214654._1 | |
316 | + | let amount = $t01456214654._2 | |
317 | + | $Tuple2([IntegerEntry(keyNextUnlaimedPeriodOfUser(userIdx), period), ScriptTransfer(i.caller, amount, fromBase58String(cfgArray[IdxCfgAssetId])), HistoryEntry("claim", address, amount, period, latestPeriod, i)], amount) | |
318 | + | } | |
319 | + | } | |
320 | + | ||
321 | + | ||
322 | + | ||
323 | + | @Callable(i) | |
324 | + | func calcGwxParamsREADONLY (wxAmount,lockStartHeight,lockDurationBlocks) = { | |
325 | + | let lockEndHeight = (lockStartHeight + lockDurationBlocks) | |
326 | + | let scale8ParamK = -(fraction(wxAmount, SCALE, lockDurationBlocks)) | |
327 | + | let scale8ParamB = (fraction(wxAmount, SCALE, lockDurationBlocks) * lockEndHeight) | |
328 | + | $Tuple2(nil, [scale8ParamK, scale8ParamB, nextPeriod()]) | |
329 | + | } | |
330 | + | ||
331 | + | ||
332 | + | ||
333 | + | @Callable(i) | |
334 | + | func constructor (wxAssetIdStr,matcherPacemakerAddressStr,boostingContractAddressStr,maxDepth) = if ((this != i.caller)) | |
335 | + | then throw("not authorized") | |
336 | + | else [StringEntry(keyConfig(), formatConfig(wxAssetIdStr, matcherPacemakerAddressStr, boostingContractAddressStr, maxDepth))] | |
337 | + | ||
338 | + |
github/deemru/w8io/026f985 23.41 ms ◑