tx · HQCwaryKDzREuQdfdSCx6w7EfPVZ6BcYiBVtth7gPjKc

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02300000 Waves

2022.12.14 13:40 [2359871] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "HQCwaryKDzREuQdfdSCx6w7EfPVZ6BcYiBVtth7gPjKc", "fee": 2300000, "feeAssetId": null, "timestamp": 1671014508125, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "5JxfsgXKmHsiCh5WDRzjsjohFfwzxZSV1y4iRvaQfF99EMEKixAc9BEKBtwrjeFNfhGSRwcdWFNKnFqEw66yfGK8" ], "script": "base64:BgKCIggCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeX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F1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgJiQgEOY29uZmlybU1hbmFnZXIABAJkWQkBAmJ6AAQCZFoDCQEJaXNEZWZpbmVkAQUCZFkGCQACAQISTm8gcGVuZGluZyBtYW5hZ2VyAwkAAAIFAmRaBQJkWgQCZWEDCQAAAggFAmJCD2NhbGxlclB1YmxpY0tleQkBBXZhbHVlAQUCZFkGCQACAQIbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAIFAmVhBQJlYQkAzAgCCQELU3RyaW5nRW50cnkCCQEBRwAJANgEAQkBBXZhbHVlAQUCZFkJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAUgABQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAmViAQJlYwAEAmVkBAF6CQECYngAAwkAAQIFAXoCCkJ5dGVWZWN0b3IEAmJEBQF6BQJiRAMJAAECBQF6AgRVbml0CAUCZWIPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmViCWJvZHlCeXRlcwkAkQMCCAUCZWIGcHJvb2ZzAAAFAmVkfc+tRQ==", "chainId": 84, "height": 2359871, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GeGd3DXb4YPRPULT6HEFFnVW74wvsa7dtsPSmgj5eYko Next: 4qcUb4cif94S6Q9C96aTyU8vyZkLnxARP1hWzoCsrNiz Diff:
OldNewDifferences
518518 else throw(($getType(@) + " couldn't be cast to Boolean"))
519519 }
520520 let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
521- $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(inFee), toString(outFee), toString(poolOneTokenOperationsEnabled)], SEP))
521+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%s", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(inFee), toString(outFee), toString(poolOneTokenOperationsEnabled)], SEP))
522522 }
523523
524524
548548 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
549549 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
550550 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
551- let $t02283023183 = match res {
551+ let $t02283223185 = match res {
552552 case _ =>
553553 if (if (if ($isInstanceOf($match0._1, "Int"))
554554 then if ($isInstanceOf($match0._3, "Int"))
571571 }
572572 else throw("Couldn't cast types")
573573 }
574- let calcLpAmt = $t02283023183._1
575- let curPriceCalc = $t02283023183._2
576- let amBalance = $t02283023183._3
577- let prBalance = $t02283023183._4
578- let lpEmission = $t02283023183._5
574+ let calcLpAmt = $t02283223185._1
575+ let curPriceCalc = $t02283223185._2
576+ let amBalance = $t02283223185._3
577+ let prBalance = $t02283223185._4
578+ let lpEmission = $t02283223185._5
579579 $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))
580580 }
581581
606606 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
607607 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
608608 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
609- let $t02575626109 = match res {
609+ let $t02575826111 = match res {
610610 case _ =>
611611 if (if (if ($isInstanceOf($match0._1, "Int"))
612612 then if ($isInstanceOf($match0._3, "Int"))
629629 }
630630 else throw("Couldn't cast types")
631631 }
632- let calcLpAmt = $t02575626109._1
633- let curPriceCalc = $t02575626109._2
634- let amBalance = $t02575626109._3
635- let prBalance = $t02575626109._4
636- let lpEmission = $t02575626109._5
632+ let calcLpAmt = $t02575826111._1
633+ let curPriceCalc = $t02575826111._2
634+ let amBalance = $t02575826111._3
635+ let prBalance = $t02575826111._4
636+ let lpEmission = $t02575826111._5
637637 $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))
638638 }
639639
643643 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
644644 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
645645 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
646- let $t02680427221 = match res {
646+ let $t02680627223 = match res {
647647 case _ =>
648648 if (if (if ($isInstanceOf($match0._1, "Int"))
649649 then if ($isInstanceOf($match0._2, "Int"))
672672 }
673673 else throw("Couldn't cast types")
674674 }
675- let outAmAmt = $t02680427221._1
676- let outPrAmt = $t02680427221._2
677- let amBalance = $t02680427221._3
678- let prBalance = $t02680427221._4
679- let lpEmission = $t02680427221._5
680- let curPrice = $t02680427221._6
681- let poolStatus = $t02680427221._7
675+ let outAmAmt = $t02680627223._1
676+ let outPrAmt = $t02680627223._2
677+ let amBalance = $t02680627223._3
678+ let prBalance = $t02680627223._4
679+ let lpEmission = $t02680627223._5
680+ let curPrice = $t02680627223._6
681+ let poolStatus = $t02680627223._7
682682 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
683683 }
684684
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 let factoryDapp = readFactoryAddressOrFail()
232232
233233 let factoryCfg = readFactoryCfgOrFail(factoryDapp)
234234
235235 let emissionDapp = getEmissionAddressOrFail(factoryCfg)
236236
237237 let stakingDapp = getStakingAddressOrFail(factoryCfg)
238238
239239 let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg)
240240
241241 let boostingDapp = getBoostingAddressOrFail(factoryCfg)
242242
243243 func getPoolInFee (poolAddress) = {
244244 let @ = invoke(factoryDapp, "getInFeeREADONLY", [toString(poolAddress)], nil)
245245 if ($isInstanceOf(@, "Int"))
246246 then @
247247 else throw(($getType(@) + " couldn't be cast to Int"))
248248 }
249249
250250
251251 func getPoolOutFee (poolAddress) = {
252252 let @ = invoke(factoryDapp, "getOutFeeREADONLY", [toString(poolAddress)], nil)
253253 if ($isInstanceOf(@, "Int"))
254254 then @
255255 else throw(($getType(@) + " couldn't be cast to Int"))
256256 }
257257
258258
259259 func internalCurrentRewardRate (lpAssetId) = {
260260 let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId))
261261 let poolWeightMult = MULT8
262262 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
263263 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
264264 let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent())
265265 let boostMaxCoeff = 3
266266 let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff)
267267 let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult)
268268 let maxFactor = (boostMaxCoeff * MULT8)
269269 let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId))
270270 [poolWxEmissionPerBlock, maxFactor, totalLpStaked]
271271 }
272272
273273
274274 func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = {
275275 let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration)
276276 let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8)
277277 [gWxAmountStart]
278278 }
279279
280280
281281 func getKey (addr,key,type) = if ((type == "string"))
282282 then getStringValue(addr, key)
283283 else if ((type == "integer"))
284284 then toString(getIntegerValue(addr, key))
285285 else if ((type == "boolean"))
286286 then toString(getBooleanValue(addr, key))
287287 else throw("unknown type. expected string/integer/boolean")
288288
289289
290290 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
291291 case s: String =>
292292 fromBase58String(s)
293293 case _: Unit =>
294294 unit
295295 case _ =>
296296 throw("Match error")
297297 }
298298
299299
300300 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
301301 case s: String =>
302302 fromBase58String(s)
303303 case _: Unit =>
304304 unit
305305 case _ =>
306306 throw("Match error")
307307 }
308308
309309
310310 func mustManager (i) = {
311311 let pd = throw("Permission denied")
312312 match managerPublicKeyOrUnit() {
313313 case pk: ByteVector =>
314314 if ((i.callerPublicKey == pk))
315315 then true
316316 else pd
317317 case _: Unit =>
318318 if ((i.caller == this))
319319 then true
320320 else pd
321321 case _ =>
322322 throw("Match error")
323323 }
324324 }
325325
326326
327327 @Callable(i)
328328 func constructor (factoryAddress) = {
329329 let checkCaller = mustManager(i)
330330 if ((checkCaller == checkCaller))
331331 then [StringEntry(keyFactoryAddress(), factoryAddress)]
332332 else throw("Strict value is not equal to itself.")
333333 }
334334
335335
336336
337337 @Callable(i)
338338 func currentRewardRateREADONLY (lpAssetId) = {
339339 let rewardData = internalCurrentRewardRate(lpAssetId)
340340 let wxEmissionPerBlock = rewardData[0]
341341 let maxFactor = rewardData[1]
342342 let totalLpStaked = rewardData[2]
343343 $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP))
344344 }
345345
346346
347347
348348 @Callable(i)
349349 func currentUserRewardRateREADONLY (lpAssetId,userAddress) = {
350350 let rewardData = internalCurrentRewardRate(lpAssetId)
351351 let wxEmissionPerBlock = rewardData[0]
352352 let maxFactor = rewardData[1]
353353 let totalLpStaked = rewardData[2]
354354 let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId))
355355 let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP)
356356 let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart")
357357 let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart")
358358 let debug = userClaimInfo[7]
359359 let boostingPower = if ((boostRewardPart == 0))
360360 then (1 * MULT8)
361361 else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart)
362362 $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP))
363363 }
364364
365365
366366
367367 @Callable(i)
368368 func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk)))
369369 then $Tuple2(nil, resAcc)
370370 else {
371371 let deltaWxAmount = deltaWxAmountBulk[currentIter]
372372 let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter]
373373 let deltaLpAmount = deltaLpAmountBulk[currentIter]
374374 let lpAssetIdOpt = lpAssetIdOptBulk[currentIter]
375375 let info = {
376376 let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil)
377377 if ($isInstanceOf(@, "String"))
378378 then @
379379 else throw(($getType(@) + " couldn't be cast to String"))
380380 }
381381 let res = (resAcc :+ info)
382382 let inv = {
383383 let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil)
384384 if ($isInstanceOf(@, "List[Any]"))
385385 then @
386386 else throw(($getType(@) + " couldn't be cast to List[Any]"))
387387 }
388388 if ((inv == inv))
389389 then $Tuple2(nil, inv)
390390 else throw("Strict value is not equal to itself.")
391391 }
392392
393393
394394
395395 @Callable(i)
396396 func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
397397 let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil)
398398 $Tuple2(nil, res)
399399 }
400400
401401
402402
403403 @Callable(i)
404404 func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = {
405405 let mathDapp = gwxRewardDapp
406406 let EMPTYSTR = "empty"
407407 let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4])
408408 let lpAssetIdStr = if ((lpAssetIdOpt == ""))
409409 then EMPTYSTR
410410 else lpAssetIdOpt
411411 let userAddressStr = if ((userAddressOpt == ""))
412412 then EMPTYSTR
413413 else userAddressOpt
414414 let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR)
415415 let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0)
416416 let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height)
417417 let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0)
418418 let lockEnd = (lockStart + lockDuration)
419419 let remainingDuration = max([(lockEnd - height), 0])
420420 let userAmountNew = (userAmount + deltaWxAmount)
421421 let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks])
422422 let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0])
423423 let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0]
424424 let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil))
425425 let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount)
426426 let k = asInt(gWxParamsResultList[0])
427427 let b = asInt(gWxParamsResultList[1])
428428 let period = toString(asInt(gWxParamsResultList[2]))
429429 let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL()
430430 let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2)
431431 let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY)
432432 let totalCachedGwx = {
433433 let @ = invoke(boostingDapp, "getTotalCachedGwxREADONLY", nil, nil)
434434 if ($isInstanceOf(@, "Int"))
435435 then @
436436 else throw(($getType(@) + " couldn't be cast to Int"))
437437 }
438438 let MULT3 = 1000
439439 let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3)
440440 let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr)
441441 let stakedTotalKEY = keyStakedTotal(lpAssetIdStr)
442442 let stakedByUser = readStaked(stakingDapp, stakedByUserKEY)
443443 let stakedTotal = readStaked(stakingDapp, stakedTotalKEY)
444444 let stakedByUserNew = (stakedByUser + deltaLpAmount)
445445 let stakedTotalNew = (stakedTotal + deltaLpAmount)
446446 let poolWeight = if ((lpAssetIdStr != EMPTYSTR))
447447 then {
448448 let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr))
449449 getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr))
450450 }
451451 else 0
452452 let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3))
453453 let wxPerLpX3 = if ((stakedTotalNew != 0))
454454 then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew)
455455 else 0
456456 let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8)
457457 let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2)
458458 let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff))
459459 let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)])
460460 let boostCoeff = if ((userWxPerBlockX3 == 0))
461461 then (1 * MULT8)
462462 else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3)
463463 $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP))
464464 }
465465
466466
467467
468468 @Callable(i)
469469 func wxEmissionStatsREADONLY () = {
470470 let ONEMULT = toString(MULT8)
471471 let ONE = "1"
472472 let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent())
473473 let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock())
474474 let passedBlocks = if ((emissionStartBlock > height))
475475 then 0
476476 else (height - emissionStartBlock)
477477 let teamEmDuration = (1440 * 365)
478478 let teamEmMax = (201000000 * MULT8)
479479 let teamEm = if ((passedBlocks > teamEmDuration))
480480 then teamEmMax
481481 else fraction(teamEmMax, passedBlocks, teamEmDuration)
482482 let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm)
483483 let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount())
484484 let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks())
485485 let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount())
486486 $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP))
487487 }
488488
489489
490490
491491 @Callable(i)
492492 func poolStatsREADONLY (lpAsset) = {
493493 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
494494 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
495495 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
496496 let amtAssetId = asString(cfg[idxAmtAssetId])
497497 let priceAssetId = asString(cfg[idxPriceAssetId])
498498 let iAmtAssetId = asString(cfg[idxIAmtAssetId])
499499 let iPriceAssetId = asString(cfg[idxIPriceAssetId])
500500 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
501501 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
502502 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
503503 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil))
504504 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil))
505505 let pricesList = if ((poolLPBalance == 0))
506506 then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)]
507507 else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil))
508508 let curPrice = 0
509509 let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil))
510510 let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil))
511511 let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress)))
512512 let inFee = getPoolInFee(poolAddress)
513513 let outFee = getPoolOutFee(poolAddress)
514514 let poolOneTokenOperationsDisabled = {
515515 let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil)
516516 if ($isInstanceOf(@, "Boolean"))
517517 then @
518518 else throw(($getType(@) + " couldn't be cast to Boolean"))
519519 }
520520 let poolOneTokenOperationsEnabled = !(poolOneTokenOperationsDisabled)
521- $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(inFee), toString(outFee), toString(poolOneTokenOperationsEnabled)], SEP))
521+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%s", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight), toString(inFee), toString(outFee), toString(poolOneTokenOperationsEnabled)], SEP))
522522 }
523523
524524
525525
526526 @Callable(i)
527527 func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = {
528528 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
529529 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
530530 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
531531 let amAssetIdStr = asString(cfg[idxAmtAssetId])
532532 let amAssetId = fromBase58String(amAssetIdStr)
533533 let prAssetIdStr = asString(cfg[idxPriceAssetId])
534534 let prAssetId = fromBase58String(prAssetIdStr)
535535 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
536536 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
537537 let poolStatus = asString(cfg[idxPoolStatus])
538538 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
539539 let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
540540 let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
541541 let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil)))
542542 let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil)))
543543 let curPriceX18 = if ((poolLPBalance == 0))
544544 then zeroBigInt
545545 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil)))
546546 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
547547 let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil)))
548548 let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18)
549549 let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil))
550550 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
551- let $t02283023183 = match res {
551+ let $t02283223185 = match res {
552552 case _ =>
553553 if (if (if ($isInstanceOf($match0._1, "Int"))
554554 then if ($isInstanceOf($match0._3, "Int"))
555555 then if ($isInstanceOf($match0._4, "Int"))
556556 then if ($isInstanceOf($match0._5, "Int"))
557557 then $isInstanceOf($match0._6, "Int")
558558 else false
559559 else false
560560 else false
561561 else false)
562562 then (size($match0) == 13)
563563 else false)
564564 then {
565565 let calcLpAmt = $match0._1
566566 let curPriceCalc = $match0._3
567567 let amBalance = $match0._4
568568 let prBalance = $match0._5
569569 let lpEmission = $match0._6
570570 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
571571 }
572572 else throw("Couldn't cast types")
573573 }
574- let calcLpAmt = $t02283023183._1
575- let curPriceCalc = $t02283023183._2
576- let amBalance = $t02283023183._3
577- let prBalance = $t02283023183._4
578- let lpEmission = $t02283023183._5
574+ let calcLpAmt = $t02283223185._1
575+ let curPriceCalc = $t02283223185._2
576+ let amBalance = $t02283223185._3
577+ let prBalance = $t02283223185._4
578+ let lpEmission = $t02283223185._5
579579 $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))
580580 }
581581
582582
583583
584584 @Callable(i)
585585 func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = {
586586 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset)))
587587 let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil))
588588 let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId]))
589589 let amAssetIdStr = asString(cfg[idxAmtAssetId])
590590 let amAssetId = fromBase58String(amAssetIdStr)
591591 let prAssetIdStr = asString(cfg[idxPriceAssetId])
592592 let prAssetId = fromBase58String(prAssetIdStr)
593593 let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm]))
594594 let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm]))
595595 let poolStatus = asString(cfg[idxPoolStatus])
596596 let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity
597597 let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil))
598598 let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil))
599599 let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil)))
600600 let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil)))
601601 let curPriceX18 = if ((poolLPBalance == 0))
602602 then zeroBigInt
603603 else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil)))
604604 let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil))
605605 let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil)))
606606 let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18)
607607 let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil))
608608 let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil)
609- let $t02575626109 = match res {
609+ let $t02575826111 = match res {
610610 case _ =>
611611 if (if (if ($isInstanceOf($match0._1, "Int"))
612612 then if ($isInstanceOf($match0._3, "Int"))
613613 then if ($isInstanceOf($match0._4, "Int"))
614614 then if ($isInstanceOf($match0._5, "Int"))
615615 then $isInstanceOf($match0._6, "Int")
616616 else false
617617 else false
618618 else false
619619 else false)
620620 then (size($match0) == 13)
621621 else false)
622622 then {
623623 let calcLpAmt = $match0._1
624624 let curPriceCalc = $match0._3
625625 let amBalance = $match0._4
626626 let prBalance = $match0._5
627627 let lpEmission = $match0._6
628628 $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission)
629629 }
630630 else throw("Couldn't cast types")
631631 }
632- let calcLpAmt = $t02575626109._1
633- let curPriceCalc = $t02575626109._2
634- let amBalance = $t02575626109._3
635- let prBalance = $t02575626109._4
636- let lpEmission = $t02575626109._5
632+ let calcLpAmt = $t02575826111._1
633+ let curPriceCalc = $t02575826111._2
634+ let amBalance = $t02575826111._3
635+ let prBalance = $t02575826111._4
636+ let lpEmission = $t02575826111._5
637637 $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))
638638 }
639639
640640
641641
642642 @Callable(i)
643643 func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = {
644644 let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId)))
645645 let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil)
646- let $t02680427221 = match res {
646+ let $t02680627223 = match res {
647647 case _ =>
648648 if (if (if ($isInstanceOf($match0._1, "Int"))
649649 then if ($isInstanceOf($match0._2, "Int"))
650650 then if ($isInstanceOf($match0._5, "Int"))
651651 then if ($isInstanceOf($match0._6, "Int"))
652652 then if ($isInstanceOf($match0._7, "Int"))
653653 then if ($isInstanceOf($match0._8, "String"))
654654 then $isInstanceOf($match0._9, "String")
655655 else false
656656 else false
657657 else false
658658 else false
659659 else false
660660 else false)
661661 then (size($match0) == 10)
662662 else false)
663663 then {
664664 let outAmAmt = $match0._1
665665 let outPrAmt = $match0._2
666666 let amBalance = $match0._5
667667 let prBalance = $match0._6
668668 let lpEmission = $match0._7
669669 let curPrice = $match0._8
670670 let poolStatus = $match0._9
671671 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
672672 }
673673 else throw("Couldn't cast types")
674674 }
675- let outAmAmt = $t02680427221._1
676- let outPrAmt = $t02680427221._2
677- let amBalance = $t02680427221._3
678- let prBalance = $t02680427221._4
679- let lpEmission = $t02680427221._5
680- let curPrice = $t02680427221._6
681- let poolStatus = $t02680427221._7
675+ let outAmAmt = $t02680627223._1
676+ let outPrAmt = $t02680627223._2
677+ let amBalance = $t02680627223._3
678+ let prBalance = $t02680627223._4
679+ let lpEmission = $t02680627223._5
680+ let curPrice = $t02680627223._6
681+ let poolStatus = $t02680627223._7
682682 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP))
683683 }
684684
685685
686686
687687 @Callable(i)
688688 func gwxUserInfoREADONLY (userAddress) = {
689689 let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil))
690690 let gwxAmount = asInt(gwxUserInfoLIST[0])
691691 $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP))
692692 }
693693
694694
695695
696696 @Callable(i)
697697 func unstakeAndGetOneTknV2 (poolAddress,unstakeAmount,outAssetId,minOutAmount) = {
698698 let inv = invoke(addressFromStringValue(poolAddress), "unstakeAndGetOneTknV2", [unstakeAmount, outAssetId, minOutAmount], nil)
699699 if ((inv == inv))
700700 then $Tuple2(nil, unit)
701701 else throw("Strict value is not equal to itself.")
702702 }
703703
704704
705705
706706 @Callable(i)
707707 func getKeysBulkInternal (currentIter,keys,resAcc) = if ((currentIter == size(keys)))
708708 then $Tuple2(nil, resAcc)
709709 else {
710710 let k = split(keys[currentIter], "++")
711711 let addr = addressFromStringValue(k[0])
712712 let key = k[1]
713713 let type = k[2]
714714 let val = getKey(addr, key, type)
715715 let res = (resAcc :+ val)
716716 let inv = invoke(this, "getKeysBulkInternal", [(currentIter + 1), keys, res], nil)
717717 if ((inv == inv))
718718 then $Tuple2(nil, inv)
719719 else throw("Strict value is not equal to itself.")
720720 }
721721
722722
723723
724724 @Callable(i)
725725 func getKeysBulk (keys) = {
726726 let res = invoke(this, "getKeysBulkInternal", [0, keys, nil], nil)
727727 $Tuple2(nil, res)
728728 }
729729
730730
731731
732732 @Callable(i)
733733 func setManager (pendingManagerPublicKey) = {
734734 let checkCaller = mustManager(i)
735735 if ((checkCaller == checkCaller))
736736 then {
737737 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
738738 if ((checkManagerPublicKey == checkManagerPublicKey))
739739 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
740740 else throw("Strict value is not equal to itself.")
741741 }
742742 else throw("Strict value is not equal to itself.")
743743 }
744744
745745
746746
747747 @Callable(i)
748748 func confirmManager () = {
749749 let pm = pendingManagerPublicKeyOrUnit()
750750 let hasPM = if (isDefined(pm))
751751 then true
752752 else throw("No pending manager")
753753 if ((hasPM == hasPM))
754754 then {
755755 let checkPM = if ((i.callerPublicKey == value(pm)))
756756 then true
757757 else throw("You are not pending manager")
758758 if ((checkPM == checkPM))
759759 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
760760 else throw("Strict value is not equal to itself.")
761761 }
762762 else throw("Strict value is not equal to itself.")
763763 }
764764
765765
766766 @Verifier(tx)
767767 func verify () = {
768768 let targetPublicKey = match managerPublicKeyOrUnit() {
769769 case pk: ByteVector =>
770770 pk
771771 case _: Unit =>
772772 tx.senderPublicKey
773773 case _ =>
774774 throw("Match error")
775775 }
776776 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
777777 }
778778

github/deemru/w8io/026f985 
82.88 ms