tx · AhBktLcpdegKJvSKaD9p57gWQWCkywVzsb7KvkhmJYtT

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02200000 Waves

2022.10.20 11:14 [2280469] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "AhBktLcpdegKJvSKaD9p57gWQWCkywVzsb7KvkhmJYtT", "fee": 2200000, "feeAssetId": null, "timestamp": 1666253778592, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "2PVKvV8TBgcYoHrhCiAy133EH9PGErYBqnxg48CR6uErntSc5C6tpS5498AHxiFLqk9oLJL98nFSh4RwMZ6PcSGg" ], "script": "base64:BgKYIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgMKAQgSACIGU0NBTEU4IgVNVUxUOCIHU0NBTEUxOCIGTVVMVDE4IgNTRVAiDlBPT0xXRUlHSFRNVUxUIgp6ZXJvQmlnSW50Ig5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY20iD2dldFN0cmluZ09yRmFpbCIDa2V5IhhnZXRTdHJpbmdCeUFkZHJlc3NPckZhaWwiB2FkZHJlc3MiDGdldEludE9yWmVybyIMZ2V0SW50T3JGYWlsIglhc0FueUxpc3QiA3ZhbCIHJG1hdGNoMCIKdmFsQW55THlzdCIFYXNJbnQiBnZhbEludCIIYXNTdHJpbmciBnZhbFN0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AgUBegIEVW5pdAgFAmRVD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJkVQlib2R5Qnl0ZXMJAJEDAggFAmRVBnByb29mcwAABQJkV7LUM/0=", "chainId": 84, "height": 2280469, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4K5KfuT173kPyiWKuPexjzSeGJxkweKrkLAPgb2PTt5t Next: BSFcf5jkbuRMNiQmxqXDjhRJaf52pAREUcMX2Cz2JKM9 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 managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
273273 case s: String =>
274274 fromBase58String(s)
275275 case _: Unit =>
276276 unit
277277 case _ =>
278278 throw("Match error")
279279 }
280280
281281
282282 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
283283 case s: String =>
284284 fromBase58String(s)
285285 case _: Unit =>
286286 unit
287287 case _ =>
288288 throw("Match error")
289289 }
290290
291291
292292 func mustManager (i) = {
293293 let pd = throw("Permission denied")
294294 match managerPublicKeyOrUnit() {
295295 case pk: ByteVector =>
296296 if ((i.callerPublicKey == pk))
297297 then true
298298 else pd
299299 case _: Unit =>
300300 if ((i.caller == this))
301301 then true
302302 else pd
303303 case _ =>
304304 throw("Match error")
305305 }
306306 }
307307
308308
309309 @Callable(i)
310310 func constructor (factoryAddress) = {
311311 let checkCaller = mustManager(i)
312312 if ((checkCaller == checkCaller))
313313 then [StringEntry(keyFactoryAddress(), factoryAddress)]
314314 else throw("Strict value is not equal to itself.")
315315 }
316316
317317
318318
319319 @Callable(i)
320320 func currentRewardRateREADONLY (lpAssetId) = {
321321 let rewardData = internalCurrentRewardRate(lpAssetId)
322322 let wxEmissionPerBlock = rewardData[0]
323323 let maxFactor = rewardData[1]
324324 let totalLpStaked = rewardData[2]
325325 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
326326 }
327327
328328
329329
330330 @Callable(i)
331331 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
332332 let rewardData = internalCurrentRewardRate(lpAssetId)
333333 let wxEmissionPerBlock = rewardData[0]
334334 let maxFactor = rewardData[1]
335335 let totalLpStaked = rewardData[2]
336336 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
337337 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
338338 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
339339 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
340340 let debug = userClaimInfo[7]
341341 let boostingPower = if ((boostRewardPart == 0))
342342 then (1 * MULT8)
343343 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
344344 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
345345 }
346346
347347
348348
349349 @Callable(i)
350350 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
351351 then $Tuple2(nil, resAcc)
352352 else {
353353 let deltaWxAmount = deltaWxAmountBulk[currentIter]
354354 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
355355 let deltaLpAmount = deltaLpAmountBulk[currentIter]
356356 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
357357 let info = {
358358 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
359359 if ($isInstanceOf(@, "String"))
360360 then @
361361 else throw(($getType(@) + " couldn't be cast to String"))
362362 }
363363 let res = (resAcc :+ info)
364364 let inv = {
365365 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
366366 if ($isInstanceOf(@, "List[Any]"))
367367 then @
368368 else throw(($getType(@) + " couldn't be cast to List[Any]"))
369369 }
370370 if ((inv == inv))
371371 then $Tuple2(nil, inv)
372372 else throw("Strict value is not equal to itself.")
373373 }
374374
375375
376376
377377 @Callable(i)
378378 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
379379 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
380380 $Tuple2(nil, res)
381381 }
382382
383383
384384
385385 @Callable(i)
386386 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
387387 let mathDapp = gwxRewardDapp
388388 let EMPTYSTR = "empty"
389389 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
390390 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
391391 then EMPTYSTR
392392 else lpAssetIdOpt
393393 let userAddressStr = if ((userAddressOpt == ""))
394394 then EMPTYSTR
395395 else userAddressOpt
396396 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
397397 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
398398 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
399399 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
400400 let lockEnd = (lockStart + lockDuration)
401401 let remainingDuration = max([(lockEnd - height), 0])
402402 let userAmountNew = (userAmount + deltaWxAmount)
403403 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
404404 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
405405 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
406406 let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
407407 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
408408 let k = asInt(gWxParamsResultList[0])
409409 let b = asInt(gWxParamsResultList[1])
410410 let period = toString(asInt(gWxParamsResultList[2]))
411411 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
412412 let totalCachedGwxKEY = keyTotalCachedGwx()
413413 let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
414414 let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
415415 let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0)
416416 let MULT3 = 1000
417417 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
418418 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
419419 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
420420 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
421421 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
422422 let stakedByUserNew = (stakedByUser + deltaLpAmount)
423423 let stakedTotalNew = (stakedTotal + deltaLpAmount)
424424 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
425425 then {
426426 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
427427 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
428428 }
429429 else 0
430430 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
431431 let wxPerLpX3 = if ((stakedTotalNew != 0))
432432 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
433433 else 0
434434 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
435435 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
436436 let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
437437 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
438438 let boostCoeff = if ((userWxPerBlockX3 == 0))
439439 then (1 * MULT8)
440440 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
441441 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP))
442442 }
443443
444444
445445
446446 @Callable(i)
447447 func wxEmissionStatsREADONLY () = {
448448 let ONEMULT = toString(MULT8)
449449 let ONE = "1"
450450 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
451451 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
452452 let passedBlocks = if ((emissionStartBlock > height))
453453 then 0
454454 else (height - emissionStartBlock)
455455 let teamEmDuration = (1440 * 365)
456456 let teamEmMax = (201000000 * MULT8)
457457 let teamEm = if ((passedBlocks > teamEmDuration))
458458 then teamEmMax
459459 else fraction(teamEmMax, passedBlocks, teamEmDuration)
460460 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
461461 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
462462 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
463463 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
464464 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
465465 }
466466
467467
468468
469469 @Callable(i)
470470 func poolStatsREADONLY (lpAsset) = {
471471 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
472472 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
473473 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
474474 let amtAssetId = asString(cfg[idxAmtAssetId])
475475 let priceAssetId = asString(cfg[idxPriceAssetId])
476476 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
477477 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
478478 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
479479 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
480480 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
481481 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
482482 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
483483 let pricesList = if ((poolLPBalance == 0))
484484 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
485485 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
486486 let curPrice = 0
487487 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
488488 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
489489 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
490490 let fee = getPoolFee(poolAddress)
491491 let poolOneTokenOperationsDisabled = {
492492 let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
493493 if ($isInstanceOf(@, "Boolean"))
494494 then @
495495 else throw(($getType(@) + " couldn't be cast to Boolean"))
496496 }
497497 $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(poolOneTokenOperationsDisabled)], SEP))
498498 }
499499
500500
501501
502502 @Callable(i)
503503 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
504504 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
505505 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
506506 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
507507 let amAssetIdStr = asString(cfg[idxAmtAssetId])
508508 let amAssetId = fromBase58String(amAssetIdStr)
509509 let prAssetIdStr = asString(cfg[idxPriceAssetId])
510510 let prAssetId = fromBase58String(prAssetIdStr)
511511 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
512512 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
513513 let poolStatus = asString(cfg[idxPoolStatus])
514514 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
515515 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
516516 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
517517 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
518518 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
519519 let curPriceX18 = if ((poolLPBalance == 0))
520520 then zeroBigInt
521521 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
522522 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
523523 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
524524 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
525525 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
526526 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
527527 let $t02227722630 = match res {
528528 case _ =>
529529 if (if (if ($isInstanceOf($match0._1, "Int"))
530530 then if ($isInstanceOf($match0._3, "Int"))
531531 then if ($isInstanceOf($match0._4, "Int"))
532532 then if ($isInstanceOf($match0._5, "Int"))
533533 then $isInstanceOf($match0._6, "Int")
534534 else false
535535 else false
536536 else false
537537 else false)
538538 then (size($match0) == 13)
539539 else false)
540540 then {
541541 let calcLpAmt = $match0._1
542542 let curPriceCalc = $match0._3
543543 let amBalance = $match0._4
544544 let prBalance = $match0._5
545545 let lpEmission = $match0._6
546546 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
547547 }
548548 else throw("Couldn't cast types")
549549 }
550550 let calcLpAmt = $t02227722630._1
551551 let curPriceCalc = $t02227722630._2
552552 let amBalance = $t02227722630._3
553553 let prBalance = $t02227722630._4
554554 let lpEmission = $t02227722630._5
555555 $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))
556556 }
557557
558558
559559
560560 @Callable(i)
561561 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
562562 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
563563 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
564564 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
565565 let amAssetIdStr = asString(cfg[idxAmtAssetId])
566566 let amAssetId = fromBase58String(amAssetIdStr)
567567 let prAssetIdStr = asString(cfg[idxPriceAssetId])
568568 let prAssetId = fromBase58String(prAssetIdStr)
569569 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
570570 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
571571 let poolStatus = asString(cfg[idxPoolStatus])
572572 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
573573 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
574574 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
575575 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
576576 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
577577 let curPriceX18 = if ((poolLPBalance == 0))
578578 then zeroBigInt
579579 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
580580 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
581581 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
582582 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
583583 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
584584 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
585585 let $t02520325556 = match res {
586586 case _ =>
587587 if (if (if ($isInstanceOf($match0._1, "Int"))
588588 then if ($isInstanceOf($match0._3, "Int"))
589589 then if ($isInstanceOf($match0._4, "Int"))
590590 then if ($isInstanceOf($match0._5, "Int"))
591591 then $isInstanceOf($match0._6, "Int")
592592 else false
593593 else false
594594 else false
595595 else false)
596596 then (size($match0) == 13)
597597 else false)
598598 then {
599599 let calcLpAmt = $match0._1
600600 let curPriceCalc = $match0._3
601601 let amBalance = $match0._4
602602 let prBalance = $match0._5
603603 let lpEmission = $match0._6
604604 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
605605 }
606606 else throw("Couldn't cast types")
607607 }
608608 let calcLpAmt = $t02520325556._1
609609 let curPriceCalc = $t02520325556._2
610610 let amBalance = $t02520325556._3
611611 let prBalance = $t02520325556._4
612612 let lpEmission = $t02520325556._5
613613 $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))
614614 }
615615
616616
617617
618618 @Callable(i)
619619 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
620620 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
621621 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
622622 let $t02625126668 = match res {
623623 case _ =>
624624 if (if (if ($isInstanceOf($match0._1, "Int"))
625625 then if ($isInstanceOf($match0._2, "Int"))
626626 then if ($isInstanceOf($match0._5, "Int"))
627627 then if ($isInstanceOf($match0._6, "Int"))
628628 then if ($isInstanceOf($match0._7, "Int"))
629629 then if ($isInstanceOf($match0._8, "String"))
630630 then $isInstanceOf($match0._9, "String")
631631 else false
632632 else false
633633 else false
634634 else false
635635 else false
636636 else false)
637637 then (size($match0) == 10)
638638 else false)
639639 then {
640640 let outAmAmt = $match0._1
641641 let outPrAmt = $match0._2
642642 let amBalance = $match0._5
643643 let prBalance = $match0._6
644644 let lpEmission = $match0._7
645645 let curPrice = $match0._8
646646 let poolStatus = $match0._9
647647 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
648648 }
649649 else throw("Couldn't cast types")
650650 }
651651 let outAmAmt = $t02625126668._1
652652 let outPrAmt = $t02625126668._2
653653 let amBalance = $t02625126668._3
654654 let prBalance = $t02625126668._4
655655 let lpEmission = $t02625126668._5
656656 let curPrice = $t02625126668._6
657657 let poolStatus = $t02625126668._7
658658 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
659659 }
660660
661661
662662
663663 @Callable(i)
664664 func gwxUserInfoREADONLY (userAddress) = {
665665 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
666666 let gwxAmount = asInt(gwxUserInfoLIST[0])
667667 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
668668 }
669669
670670
671671
672672 @Callable(i)
673673 func setManager (pendingManagerPublicKey) = {
674674 let checkCaller = mustManager(i)
675675 if ((checkCaller == checkCaller))
676676 then {
677677 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
678678 if ((checkManagerPublicKey == checkManagerPublicKey))
679679 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
680680 else throw("Strict value is not equal to itself.")
681681 }
682682 else throw("Strict value is not equal to itself.")
683683 }
684684
685685
686686
687687 @Callable(i)
688688 func confirmManager () = {
689689 let pm = pendingManagerPublicKeyOrUnit()
690690 let hasPM = if (isDefined(pm))
691691 then true
692692 else throw("No pending manager")
693693 if ((hasPM == hasPM))
694694 then {
695695 let checkPM = if ((i.callerPublicKey == value(pm)))
696696 then true
697697 else throw("You are not pending manager")
698698 if ((checkPM == checkPM))
699699 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
700700 else throw("Strict value is not equal to itself.")
701701 }
702702 else throw("Strict value is not equal to itself.")
703703 }
704704
705705
706706 @Verifier(tx)
707707 func verify () = {
708708 let targetPublicKey = match managerPublicKeyOrUnit() {
709709 case pk: ByteVector =>
710710 pk
711711 case _: Unit =>
712712 tx.senderPublicKey
713713 case _ =>
714714 throw("Match error")
715715 }
716716 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
717717 }
718718

github/deemru/w8io/169f3d6 
60.10 ms