tx · byMgEgVgA9fYon6j6k1Ng6jpKzxHiZaWwApyQj4pgFv

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02300000 Waves

2022.11.01 20:26 [2298342] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "byMgEgVgA9fYon6j6k1Ng6jpKzxHiZaWwApyQj4pgFv", "fee": 2300000, "feeAssetId": null, "timestamp": 1667323520640, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "24rATVneoBXHE1RiH6cuMk62fcqebhhoj6VkZzvS3MCyR5DPzJV3Wa3nymmzq6o6XRAAYEb67fniBfXbJS1Xy4hi" ], "script": "base64:BgLdIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgUKAwEYGBIDCgEYEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludCII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ZXJyb3IJAPQDAwgFAmRaCWJvZHlCeXRlcwkAkQMCCAUCZFoGcHJvb2ZzAAAFAmVi1oxiwQ==", "chainId": 84, "height": 2298342, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9kbK3i5iYv2ChHy4JC7uMn3G3M9MqE1BivRBH9CtpXWF Next: BPuXPPbwKY25ygtVHUECy3c3MpvVYZsAy2BcUvzL5eyy Diff:
OldNewDifferences
683683 func getKeysBulkInternal (currentIter,keys,resAcc) = if ((currentIter == size(keys)))
684684 then $Tuple2(nil, resAcc)
685685 else {
686- let key = split(keys[currentIter], "++")
687- let val = getKey(addressFromStringValue(key[0]), key[1], key[2])
686+ let k = split(keys[currentIter], "++")
687+ let addr = addressFromStringValue(k[0])
688+ let key = k[1]
689+ let type = k[2]
690+ let val = getKey(addr, key, type)
688691 let res = (resAcc :+ val)
689692 let inv = invoke(this, "getKeysBulkInternal", [(currentIter + 1), keys, res], nil)
690693 if ((inv == inv))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SCALE8 = 8
55
66 let MULT8 = 100000000
77
88 let SCALE18 = 18
99
1010 let MULT18 = toBigInt(1000000000000000000)
1111
1212 let SEP = "__"
1313
1414 let POOLWEIGHTMULT = MULT8
1515
1616 let zeroBigInt = toBigInt(0)
1717
1818 let idxPoolAddress = 1
1919
2020 let idxPoolStatus = 2
2121
2222 let idxPoolLPAssetId = 3
2323
2424 let idxAmtAssetId = 4
2525
2626 let idxPriceAssetId = 5
2727
2828 let idxAmtAssetDcm = 6
2929
3030 let idxPriceAssetDcm = 7
3131
3232 let idxIAmtAssetId = 8
3333
3434 let idxIPriceAssetId = 9
3535
3636 let idxLPAssetDcm = 10
3737
3838 func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined"))
3939
4040
4141 func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined"))
4242
4343
4444 func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0)
4545
4646
4747 func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined"))
4848
4949
5050 func asAnyList (val) = match val {
5151 case valAnyLyst: List[Any] =>
5252 valAnyLyst
5353 case _ =>
5454 throw("fail to cast into List[Any]")
5555 }
5656
5757
5858 func asInt (val) = match val {
5959 case valInt: Int =>
6060 valInt
6161 case _ =>
6262 throw("fail to cast into Int")
6363 }
6464
6565
6666 func asString (val) = match val {
6767 case valStr: String =>
6868 valStr
6969 case _ =>
7070 throw("fail to cast into String")
7171 }
7272
7373
7474 func keyFactoryAddress () = "%s%s__config__factoryAddress"
7575
7676
7777 func keyManagerPublicKey () = "%s__managerPublicKey"
7878
7979
8080 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
8181
8282
8383 let IdxFactoryCfgStakingDapp = 1
8484
8585 let IdxFactoryCfgBoostingDapp = 2
8686
8787 let IdxFactoryCfgIdoDapp = 3
8888
8989 let IdxFactoryCfgTeamDapp = 4
9090
9191 let IdxFactoryCfgEmissionDapp = 5
9292
9393 let IdxFactoryCfgRestDapp = 6
9494
9595 let IdxFactoryCfgSlippageDapp = 7
9696
9797 let IdxFactoryCfgGwxRewardDapp = 8
9898
9999 func keyFactoryCfg () = "%s__factoryConfig"
100100
101101
102102 func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
103103
104104
105105 func keyFactoryLpList () = "%s__lpTokensList"
106106
107107
108108 func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
109109
110110
111111 func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP)
112112
113113
114114 func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress()))
115115
116116
117117 func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP)
118118
119119
120120 func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP)
121121
122122
123123 func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp])
124124
125125
126126 func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp])
127127
128128
129129 func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp])
130130
131131
132132 func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp])
133133
134134
135135 func keyBoostCfg () = "%s__config"
136136
137137
138138 func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked"
139139
140140
141141 func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks"
142142
143143
144144 func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount"
145145
146146
147147 func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount"
148148
149149
150150 func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP)
151151
152152
153153 func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP)
154154
155155
156156 func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP)
157157
158158
159159 func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP)
160160
161161
162162 func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP)
163163
164164
165165 func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP)
166166
167167
168168 func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP)
169169
170170
171171 func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP)
172172
173173
174174 func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP)
175175
176176
177177 func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP)
178178
179179
180180 func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP)
181181
182182
183183 func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total"
184184
185185
186186 func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP)
187187
188188
189189 func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP)
190190
191191
192192 func keyTotalCachedGwx () = "%s%s__gwxCached__total"
193193
194194
195195 func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP)
196196
197197
198198 func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr)
199199
200200
201201 func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP)
202202
203203
204204 func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP)
205205
206206
207207 func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP)
208208
209209
210210 func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0)
211211
212212
213213 func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
214214
215215
216216 func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
217217
218218
219219 func keyEmissionStartBlock () = "%s%s__emission__startBlock"
220220
221221
222222 func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
223223
224224
225225 func keyEmissionEndBlock () = "%s%s__emission__endBlock"
226226
227227
228228 func keyAddonAddr () = "%s__addonAddr"
229229
230230
231231 func getPoolFee (poolAddress) = {
232232 let feeDefault = fraction(5, MULT8, 10000)
233233 let keyFee = "%s__fee"
234234 valueOrElse(getInteger(poolAddress, keyFee), feeDefault)
235235 }
236236
237237
238238 let factoryDapp = readFactoryAddressOrFail()
239239
240240 let factoryCfg = readFactoryCfgOrFail(factoryDapp)
241241
242242 let emissionDapp = getEmissionAddressOrFail(factoryCfg)
243243
244244 let stakingDapp = getStakingAddressOrFail(factoryCfg)
245245
246246 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
247247
248248 let boostingDapp = getBoostingAddressOrFail(factoryCfg)
249249
250250 func internalCurrentRewardRate (lpAssetId) = {
251251 let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
252252 let poolWeightMult = MULT8
253253 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
254254 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
255255 let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
256256 let boostMaxCoeff = 3
257257 let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
258258 let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
259259 let maxFactor = (boostMaxCoeff * MULT8)
260260 let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
261261 [poolWxEmissionPerBlock, maxFactor, totalLpStaked]
262262 }
263263
264264
265265 func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
266266 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
267267 let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
268268 [gWxAmountStart]
269269 }
270270
271271
272272 func getKey (addr,key,type) = if ((type == "string"))
273273 then getStringValue(addr, key)
274274 else if ((type == "integer"))
275275 then toString(getIntegerValue(addr, key))
276276 else if ((type == "boolean"))
277277 then toString(getBooleanValue(addr, key))
278278 else throw("unknown type. expected string/integer/boolean")
279279
280280
281281 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
282282 case s: String =>
283283 fromBase58String(s)
284284 case _: Unit =>
285285 unit
286286 case _ =>
287287 throw("Match error")
288288 }
289289
290290
291291 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
292292 case s: String =>
293293 fromBase58String(s)
294294 case _: Unit =>
295295 unit
296296 case _ =>
297297 throw("Match error")
298298 }
299299
300300
301301 func mustManager (i) = {
302302 let pd = throw("Permission denied")
303303 match managerPublicKeyOrUnit() {
304304 case pk: ByteVector =>
305305 if ((i.callerPublicKey == pk))
306306 then true
307307 else pd
308308 case _: Unit =>
309309 if ((i.caller == this))
310310 then true
311311 else pd
312312 case _ =>
313313 throw("Match error")
314314 }
315315 }
316316
317317
318318 @Callable(i)
319319 func constructor (factoryAddress) = {
320320 let checkCaller = mustManager(i)
321321 if ((checkCaller == checkCaller))
322322 then [StringEntry(keyFactoryAddress(), factoryAddress)]
323323 else throw("Strict value is not equal to itself.")
324324 }
325325
326326
327327
328328 @Callable(i)
329329 func currentRewardRateREADONLY (lpAssetId) = {
330330 let rewardData = internalCurrentRewardRate(lpAssetId)
331331 let wxEmissionPerBlock = rewardData[0]
332332 let maxFactor = rewardData[1]
333333 let totalLpStaked = rewardData[2]
334334 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
335335 }
336336
337337
338338
339339 @Callable(i)
340340 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
341341 let rewardData = internalCurrentRewardRate(lpAssetId)
342342 let wxEmissionPerBlock = rewardData[0]
343343 let maxFactor = rewardData[1]
344344 let totalLpStaked = rewardData[2]
345345 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
346346 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
347347 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
348348 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
349349 let debug = userClaimInfo[7]
350350 let boostingPower = if ((boostRewardPart == 0))
351351 then (1 * MULT8)
352352 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
353353 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
354354 }
355355
356356
357357
358358 @Callable(i)
359359 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
360360 then $Tuple2(nil, resAcc)
361361 else {
362362 let deltaWxAmount = deltaWxAmountBulk[currentIter]
363363 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
364364 let deltaLpAmount = deltaLpAmountBulk[currentIter]
365365 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
366366 let info = {
367367 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
368368 if ($isInstanceOf(@, "String"))
369369 then @
370370 else throw(($getType(@) + " couldn't be cast to String"))
371371 }
372372 let res = (resAcc :+ info)
373373 let inv = {
374374 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
375375 if ($isInstanceOf(@, "List[Any]"))
376376 then @
377377 else throw(($getType(@) + " couldn't be cast to List[Any]"))
378378 }
379379 if ((inv == inv))
380380 then $Tuple2(nil, inv)
381381 else throw("Strict value is not equal to itself.")
382382 }
383383
384384
385385
386386 @Callable(i)
387387 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
388388 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
389389 $Tuple2(nil, res)
390390 }
391391
392392
393393
394394 @Callable(i)
395395 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
396396 let mathDapp = gwxRewardDapp
397397 let EMPTYSTR = "empty"
398398 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
399399 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
400400 then EMPTYSTR
401401 else lpAssetIdOpt
402402 let userAddressStr = if ((userAddressOpt == ""))
403403 then EMPTYSTR
404404 else userAddressOpt
405405 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
406406 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
407407 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
408408 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
409409 let lockEnd = (lockStart + lockDuration)
410410 let remainingDuration = max([(lockEnd - height), 0])
411411 let userAmountNew = (userAmount + deltaWxAmount)
412412 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
413413 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
414414 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
415415 let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
416416 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
417417 let k = asInt(gWxParamsResultList[0])
418418 let b = asInt(gWxParamsResultList[1])
419419 let period = toString(asInt(gWxParamsResultList[2]))
420420 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
421421 let totalCachedGwxKEY = keyTotalCachedGwx()
422422 let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
423423 let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
424424 let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
425425 let MULT3 = 1000
426426 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
427427 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
428428 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
429429 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
430430 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
431431 let stakedByUserNew = (stakedByUser + deltaLpAmount)
432432 let stakedTotalNew = (stakedTotal + deltaLpAmount)
433433 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
434434 then {
435435 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
436436 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
437437 }
438438 else 0
439439 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
440440 let wxPerLpX3 = if ((stakedTotalNew != 0))
441441 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
442442 else 0
443443 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
444444 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
445445 let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
446446 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
447447 let boostCoeff = if ((userWxPerBlockX3 == 0))
448448 then (1 * MULT8)
449449 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
450450 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP))
451451 }
452452
453453
454454
455455 @Callable(i)
456456 func wxEmissionStatsREADONLY () = {
457457 let ONEMULT = toString(MULT8)
458458 let ONE = "1"
459459 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
460460 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
461461 let passedBlocks = if ((emissionStartBlock > height))
462462 then 0
463463 else (height - emissionStartBlock)
464464 let teamEmDuration = (1440 * 365)
465465 let teamEmMax = (201000000 * MULT8)
466466 let teamEm = if ((passedBlocks > teamEmDuration))
467467 then teamEmMax
468468 else fraction(teamEmMax, passedBlocks, teamEmDuration)
469469 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
470470 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
471471 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
472472 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
473473 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
474474 }
475475
476476
477477
478478 @Callable(i)
479479 func poolStatsREADONLY (lpAsset) = {
480480 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
481481 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
482482 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
483483 let amtAssetId = asString(cfg[idxAmtAssetId])
484484 let priceAssetId = asString(cfg[idxPriceAssetId])
485485 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
486486 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
487487 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
488488 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
489489 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
490490 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
491491 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
492492 let pricesList = if ((poolLPBalance == 0))
493493 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
494494 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
495495 let curPrice = 0
496496 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
497497 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
498498 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
499499 let fee = getPoolFee(poolAddress)
500500 let poolOneTokenOperationsDisabled = {
501501 let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
502502 if ($isInstanceOf(@, "Boolean"))
503503 then @
504504 else throw(($getType(@) + " couldn't be cast to Boolean"))
505505 }
506506 let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
507507 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(fee), toString(poolOneTokenOperationsEnabled)], SEP))
508508 }
509509
510510
511511
512512 @Callable(i)
513513 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
514514 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
515515 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
516516 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
517517 let amAssetIdStr = asString(cfg[idxAmtAssetId])
518518 let amAssetId = fromBase58String(amAssetIdStr)
519519 let prAssetIdStr = asString(cfg[idxPriceAssetId])
520520 let prAssetId = fromBase58String(prAssetIdStr)
521521 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
522522 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
523523 let poolStatus = asString(cfg[idxPoolStatus])
524524 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
525525 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
526526 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
527527 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
528528 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
529529 let curPriceX18 = if ((poolLPBalance == 0))
530530 then zeroBigInt
531531 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
532532 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
533533 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
534534 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
535535 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
536536 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
537537 let $t02269923052 = match res {
538538 case _ =>
539539 if (if (if ($isInstanceOf($match0._1, "Int"))
540540 then if ($isInstanceOf($match0._3, "Int"))
541541 then if ($isInstanceOf($match0._4, "Int"))
542542 then if ($isInstanceOf($match0._5, "Int"))
543543 then $isInstanceOf($match0._6, "Int")
544544 else false
545545 else false
546546 else false
547547 else false)
548548 then (size($match0) == 13)
549549 else false)
550550 then {
551551 let calcLpAmt = $match0._1
552552 let curPriceCalc = $match0._3
553553 let amBalance = $match0._4
554554 let prBalance = $match0._5
555555 let lpEmission = $match0._6
556556 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
557557 }
558558 else throw("Couldn't cast types")
559559 }
560560 let calcLpAmt = $t02269923052._1
561561 let curPriceCalc = $t02269923052._2
562562 let amBalance = $t02269923052._3
563563 let prBalance = $t02269923052._4
564564 let lpEmission = $t02269923052._5
565565 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
566566 }
567567
568568
569569
570570 @Callable(i)
571571 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
572572 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
573573 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
574574 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
575575 let amAssetIdStr = asString(cfg[idxAmtAssetId])
576576 let amAssetId = fromBase58String(amAssetIdStr)
577577 let prAssetIdStr = asString(cfg[idxPriceAssetId])
578578 let prAssetId = fromBase58String(prAssetIdStr)
579579 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
580580 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
581581 let poolStatus = asString(cfg[idxPoolStatus])
582582 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
583583 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
584584 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
585585 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
586586 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
587587 let curPriceX18 = if ((poolLPBalance == 0))
588588 then zeroBigInt
589589 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
590590 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
591591 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
592592 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
593593 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
594594 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
595595 let $t02562525978 = match res {
596596 case _ =>
597597 if (if (if ($isInstanceOf($match0._1, "Int"))
598598 then if ($isInstanceOf($match0._3, "Int"))
599599 then if ($isInstanceOf($match0._4, "Int"))
600600 then if ($isInstanceOf($match0._5, "Int"))
601601 then $isInstanceOf($match0._6, "Int")
602602 else false
603603 else false
604604 else false
605605 else false)
606606 then (size($match0) == 13)
607607 else false)
608608 then {
609609 let calcLpAmt = $match0._1
610610 let curPriceCalc = $match0._3
611611 let amBalance = $match0._4
612612 let prBalance = $match0._5
613613 let lpEmission = $match0._6
614614 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
615615 }
616616 else throw("Couldn't cast types")
617617 }
618618 let calcLpAmt = $t02562525978._1
619619 let curPriceCalc = $t02562525978._2
620620 let amBalance = $t02562525978._3
621621 let prBalance = $t02562525978._4
622622 let lpEmission = $t02562525978._5
623623 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(calcLpAmt), toString(curPrice), toString(amBalance), toString(prBalance), toString(lpEmission), poolStatus, toString(inAmAssetAmt), toString(inPrAssetAmt)], SEP))
624624 }
625625
626626
627627
628628 @Callable(i)
629629 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
630630 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
631631 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
632632 let $t02667327090 = match res {
633633 case _ =>
634634 if (if (if ($isInstanceOf($match0._1, "Int"))
635635 then if ($isInstanceOf($match0._2, "Int"))
636636 then if ($isInstanceOf($match0._5, "Int"))
637637 then if ($isInstanceOf($match0._6, "Int"))
638638 then if ($isInstanceOf($match0._7, "Int"))
639639 then if ($isInstanceOf($match0._8, "String"))
640640 then $isInstanceOf($match0._9, "String")
641641 else false
642642 else false
643643 else false
644644 else false
645645 else false
646646 else false)
647647 then (size($match0) == 10)
648648 else false)
649649 then {
650650 let outAmAmt = $match0._1
651651 let outPrAmt = $match0._2
652652 let amBalance = $match0._5
653653 let prBalance = $match0._6
654654 let lpEmission = $match0._7
655655 let curPrice = $match0._8
656656 let poolStatus = $match0._9
657657 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
658658 }
659659 else throw("Couldn't cast types")
660660 }
661661 let outAmAmt = $t02667327090._1
662662 let outPrAmt = $t02667327090._2
663663 let amBalance = $t02667327090._3
664664 let prBalance = $t02667327090._4
665665 let lpEmission = $t02667327090._5
666666 let curPrice = $t02667327090._6
667667 let poolStatus = $t02667327090._7
668668 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
669669 }
670670
671671
672672
673673 @Callable(i)
674674 func gwxUserInfoREADONLY (userAddress) = {
675675 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
676676 let gwxAmount = asInt(gwxUserInfoLIST[0])
677677 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
678678 }
679679
680680
681681
682682 @Callable(i)
683683 func getKeysBulkInternal (currentIter,keys,resAcc) = if ((currentIter == size(keys)))
684684 then $Tuple2(nil, resAcc)
685685 else {
686- let key = split(keys[currentIter], "++")
687- let val = getKey(addressFromStringValue(key[0]), key[1], key[2])
686+ let k = split(keys[currentIter], "++")
687+ let addr = addressFromStringValue(k[0])
688+ let key = k[1]
689+ let type = k[2]
690+ let val = getKey(addr, key, type)
688691 let res = (resAcc :+ val)
689692 let inv = invoke(this, "getKeysBulkInternal", [(currentIter + 1), keys, res], nil)
690693 if ((inv == inv))
691694 then $Tuple2(nil, inv)
692695 else throw("Strict value is not equal to itself.")
693696 }
694697
695698
696699
697700 @Callable(i)
698701 func getKeysBulk (keys) = {
699702 let res = invoke(this, "getKeysBulkInternal", [0, keys, nil], nil)
700703 $Tuple2(nil, res)
701704 }
702705
703706
704707
705708 @Callable(i)
706709 func setManager (pendingManagerPublicKey) = {
707710 let checkCaller = mustManager(i)
708711 if ((checkCaller == checkCaller))
709712 then {
710713 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
711714 if ((checkManagerPublicKey == checkManagerPublicKey))
712715 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
713716 else throw("Strict value is not equal to itself.")
714717 }
715718 else throw("Strict value is not equal to itself.")
716719 }
717720
718721
719722
720723 @Callable(i)
721724 func confirmManager () = {
722725 let pm = pendingManagerPublicKeyOrUnit()
723726 let hasPM = if (isDefined(pm))
724727 then true
725728 else throw("No pending manager")
726729 if ((hasPM == hasPM))
727730 then {
728731 let checkPM = if ((i.callerPublicKey == value(pm)))
729732 then true
730733 else throw("You are not pending manager")
731734 if ((checkPM == checkPM))
732735 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
733736 else throw("Strict value is not equal to itself.")
734737 }
735738 else throw("Strict value is not equal to itself.")
736739 }
737740
738741
739742 @Verifier(tx)
740743 func verify () = {
741744 let targetPublicKey = match managerPublicKeyOrUnit() {
742745 case pk: ByteVector =>
743746 pk
744747 case _: Unit =>
745748 tx.senderPublicKey
746749 case _ =>
747750 throw("Match error")
748751 }
749752 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
750753 }
751754

github/deemru/w8io/026f985 
73.33 ms