tx · 4K5KfuT173kPyiWKuPexjzSeGJxkweKrkLAPgb2PTt5t 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02900000 Waves 2022.10.18 16:11 [2277876] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "4K5KfuT173kPyiWKuPexjzSeGJxkweKrkLAPgb2PTt5t", "fee": 2900000, "feeAssetId": null, "timestamp": 1666098704694, "version": 1, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "39yhC9MF2PqirWwGn6wCfswjMfWaDNXSifN1vq4bkCiML5JSGg2feMD5VrME7YAiJAhiRLDDT55Cq3KcRXEXfqpr" ], "script": "base64:BgJUCAISAwoBCBIDCgEIEgQKAggIEgkKBwEREREYCBgSBwoFERERGAgSBwoFAQEBCAgSABIDCgEIEgQKAggBEgQKAggBEgQKAggBEgMKAQgSAwoBCBIAWwAGU0NBTEU4AAgABU1VTFQ4AIDC1y8AB1NDQUxFMTgAEgAGTVVMVDE4CQC2AgEAgICQu7rWrfANAANTRVACAl9fAA5QT09MV0VJR0hUTVVMVAUFTVVMVDgACnplcm9CaWdJbnQJALYCAQAAAA5pZHhQb29sQWRkcmVzcwABAA1pZHhQb29sU3RhdHVzAAIAEGlkeFBvb2xMUEFzc2V0SWQAAwANaWR4QW10QXNzZXRJZAAEAA9pZHhQcmljZUFzc2V0SWQABQAOaWR4QW10QXNzZXREY20ABgAQaWR4UHJpY2VBc3NldERjbQAHAA5pZHhJQW10QXNzZXRJZAAIABBpZHhJUHJpY2VBc3NldElkAAkADWlkeExQQXNzZXREY20ACgEPZ2V0U3RyaW5nT3JGYWlsAQNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzYWdlAgkAoggBBQNrZXkJAKwCAgkArAICAg9tYW5kYXRvcnkgdGhpcy4FA2tleQIPIGl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dWJsaWNLZXlPclVuaXQABAVoYXNQTQMJAQlpc0RlZmluZWQBBQJwbQYJAAIBAhJObyBwZW5kaW5nIG1hbmFnZXIDCQAAAgUFaGFzUE0FBWhhc1BNBAdjaGVja1BNAwkAAAIIBQFpD2NhbGxlclB1YmxpY0tleQkBBXZhbHVlAQUCcG0GCQACAQIbWW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAIFB2NoZWNrUE0FB2NoZWNrUE0JAMwIAgkBC1N0cmluZ0VudHJ5AgkBE2tleU1hbmFnZXJQdWJsaWNLZXkACQDYBAEJAQV2YWx1ZQEFAnBtCQDMCAIJAQtEZWxldGVFbnRyeQEJARprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleX1PFCY=", "chainId": 84, "height": 2277876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 89meXGEYJ19s5AcpFMiuXoKBff5PcAoUdFMDDkuNdpwz Next: AhBktLcpdegKJvSKaD9p57gWQWCkywVzsb7KvkhmJYtT Diff:
Old | New | Differences | |
---|---|---|---|
489 | 489 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
490 | 490 | let fee = getPoolFee(poolAddress) | |
491 | 491 | let poolOneTokenOperationsDisabled = { | |
492 | - | let @ = invoke(factoryDapp, " | |
492 | + | let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil) | |
493 | 493 | if ($isInstanceOf(@, "Boolean")) | |
494 | 494 | then @ | |
495 | 495 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
524 | 524 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
525 | 525 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
526 | 526 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
527 | - | let $ | |
527 | + | let $t02227722630 = match res { | |
528 | 528 | case _ => | |
529 | 529 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
530 | 530 | then if ($isInstanceOf($match0._3, "Int")) | |
547 | 547 | } | |
548 | 548 | else throw("Couldn't cast types") | |
549 | 549 | } | |
550 | - | let calcLpAmt = $ | |
551 | - | let curPriceCalc = $ | |
552 | - | let amBalance = $ | |
553 | - | let prBalance = $ | |
554 | - | let lpEmission = $ | |
550 | + | let calcLpAmt = $t02227722630._1 | |
551 | + | let curPriceCalc = $t02227722630._2 | |
552 | + | let amBalance = $t02227722630._3 | |
553 | + | let prBalance = $t02227722630._4 | |
554 | + | let lpEmission = $t02227722630._5 | |
555 | 555 | $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)) | |
556 | 556 | } | |
557 | 557 | ||
582 | 582 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
583 | 583 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
584 | 584 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
585 | - | let $ | |
585 | + | let $t02520325556 = match res { | |
586 | 586 | case _ => | |
587 | 587 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
588 | 588 | then if ($isInstanceOf($match0._3, "Int")) | |
605 | 605 | } | |
606 | 606 | else throw("Couldn't cast types") | |
607 | 607 | } | |
608 | - | let calcLpAmt = $ | |
609 | - | let curPriceCalc = $ | |
610 | - | let amBalance = $ | |
611 | - | let prBalance = $ | |
612 | - | let lpEmission = $ | |
608 | + | let calcLpAmt = $t02520325556._1 | |
609 | + | let curPriceCalc = $t02520325556._2 | |
610 | + | let amBalance = $t02520325556._3 | |
611 | + | let prBalance = $t02520325556._4 | |
612 | + | let lpEmission = $t02520325556._5 | |
613 | 613 | $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)) | |
614 | 614 | } | |
615 | 615 | ||
619 | 619 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
620 | 620 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
621 | 621 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
622 | - | let $ | |
622 | + | let $t02625126668 = match res { | |
623 | 623 | case _ => | |
624 | 624 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
625 | 625 | then if ($isInstanceOf($match0._2, "Int")) | |
648 | 648 | } | |
649 | 649 | else throw("Couldn't cast types") | |
650 | 650 | } | |
651 | - | let outAmAmt = $ | |
652 | - | let outPrAmt = $ | |
653 | - | let amBalance = $ | |
654 | - | let prBalance = $ | |
655 | - | let lpEmission = $ | |
656 | - | let curPrice = $ | |
657 | - | let poolStatus = $ | |
651 | + | let outAmAmt = $t02625126668._1 | |
652 | + | let outPrAmt = $t02625126668._2 | |
653 | + | let amBalance = $t02625126668._3 | |
654 | + | let prBalance = $t02625126668._4 | |
655 | + | let lpEmission = $t02625126668._5 | |
656 | + | let curPrice = $t02625126668._6 | |
657 | + | let poolStatus = $t02625126668._7 | |
658 | 658 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
659 | 659 | } | |
660 | 660 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SCALE8 = 8 | |
5 | 5 | ||
6 | 6 | let MULT8 = 100000000 | |
7 | 7 | ||
8 | 8 | let SCALE18 = 18 | |
9 | 9 | ||
10 | 10 | let MULT18 = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let SEP = "__" | |
13 | 13 | ||
14 | 14 | let POOLWEIGHTMULT = MULT8 | |
15 | 15 | ||
16 | 16 | let zeroBigInt = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let idxPoolAddress = 1 | |
19 | 19 | ||
20 | 20 | let idxPoolStatus = 2 | |
21 | 21 | ||
22 | 22 | let idxPoolLPAssetId = 3 | |
23 | 23 | ||
24 | 24 | let idxAmtAssetId = 4 | |
25 | 25 | ||
26 | 26 | let idxPriceAssetId = 5 | |
27 | 27 | ||
28 | 28 | let idxAmtAssetDcm = 6 | |
29 | 29 | ||
30 | 30 | let idxPriceAssetDcm = 7 | |
31 | 31 | ||
32 | 32 | let idxIAmtAssetId = 8 | |
33 | 33 | ||
34 | 34 | let idxIPriceAssetId = 9 | |
35 | 35 | ||
36 | 36 | let idxLPAssetDcm = 10 | |
37 | 37 | ||
38 | 38 | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func asAnyList (val) = match val { | |
51 | 51 | case valAnyLyst: List[Any] => | |
52 | 52 | valAnyLyst | |
53 | 53 | case _ => | |
54 | 54 | throw("fail to cast into List[Any]") | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func asInt (val) = match val { | |
59 | 59 | case valInt: Int => | |
60 | 60 | valInt | |
61 | 61 | case _ => | |
62 | 62 | throw("fail to cast into Int") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func asString (val) = match val { | |
67 | 67 | case valStr: String => | |
68 | 68 | valStr | |
69 | 69 | case _ => | |
70 | 70 | throw("fail to cast into String") | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyManagerPublicKey () = "%s__managerPublicKey" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | let IdxFactoryCfgStakingDapp = 1 | |
84 | 84 | ||
85 | 85 | let IdxFactoryCfgBoostingDapp = 2 | |
86 | 86 | ||
87 | 87 | let IdxFactoryCfgIdoDapp = 3 | |
88 | 88 | ||
89 | 89 | let IdxFactoryCfgTeamDapp = 4 | |
90 | 90 | ||
91 | 91 | let IdxFactoryCfgEmissionDapp = 5 | |
92 | 92 | ||
93 | 93 | let IdxFactoryCfgRestDapp = 6 | |
94 | 94 | ||
95 | 95 | let IdxFactoryCfgSlippageDapp = 7 | |
96 | 96 | ||
97 | 97 | let IdxFactoryCfgGwxRewardDapp = 8 | |
98 | 98 | ||
99 | 99 | func keyFactoryCfg () = "%s__factoryConfig" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyFactoryLpList () = "%s__lpTokensList" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress())) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func getBoostingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgBoostingDapp]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func getEmissionAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgEmissionDapp]) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func getStakingAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgStakingDapp]) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func getGwxRewardAddressOrFail (fCfg) = addressFromStringValue(fCfg[IdxFactoryCfgGwxRewardDapp]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyBoostCfg () = "%s__config" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func keyUserBoostEmissionLastINTEGRAL (userNum) = makeString(["%s%d__userBoostEmissionLastInt", userNum], SEP) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func keyUserMaxBoostINTEGRAL (userNum) = makeString(["%s%d__maxBoostInt", userNum], SEP) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func keyTotalMaxBoostINTEGRAL () = "%s%s__maxBoostInt__total" | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func keyUserBoostAvalaibleToClaimTotal (userNum) = makeString(["%s%d__userBoostAvaliableToClaimTotal", userNum], SEP) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func keyUserBoostClaimed (userNum) = makeString(["%s%d__userBoostClaimed", userNum], SEP) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func keyTotalCachedGwx () = "%s%s__gwxCached__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func keyClaimedByUser (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimed", userAddressStr, lpAssetIdStr], SEP) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func keyClaimedByUserMinReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedMinReward", userAddressStr, lpAssetIdStr], SEP) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func keyClaimedByUserBoostReward (lpAssetIdStr,userAddressStr) = makeString(["%s%s%s__claimedBoostReward", userAddressStr, lpAssetIdStr], SEP) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func readStaked (stakingDapp,key) = valueOrElse(getInteger(stakingDapp, key), 0) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func keyAddonAddr () = "%s__addonAddr" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func getPoolFee (poolAddress) = { | |
232 | 232 | let feeDefault = fraction(5, MULT8, 10000) | |
233 | 233 | let keyFee = "%s__fee" | |
234 | 234 | valueOrElse(getInteger(poolAddress, keyFee), feeDefault) | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | let factoryDapp = readFactoryAddressOrFail() | |
239 | 239 | ||
240 | 240 | let factoryCfg = readFactoryCfgOrFail(factoryDapp) | |
241 | 241 | ||
242 | 242 | let emissionDapp = getEmissionAddressOrFail(factoryCfg) | |
243 | 243 | ||
244 | 244 | let stakingDapp = getStakingAddressOrFail(factoryCfg) | |
245 | 245 | ||
246 | 246 | let gwxRewardDapp = getGwxRewardAddressOrFail(factoryCfg) | |
247 | 247 | ||
248 | 248 | let boostingDapp = getBoostingAddressOrFail(factoryCfg) | |
249 | 249 | ||
250 | 250 | func internalCurrentRewardRate (lpAssetId) = { | |
251 | 251 | let poolAddressStr = getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
252 | 252 | let poolWeightMult = MULT8 | |
253 | 253 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
254 | 254 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
255 | 255 | let wxEmissionPerBlockMax = getIntOrFail(emissionDapp, keyEmissionRatePerBlockMaxCurrent()) | |
256 | 256 | let boostMaxCoeff = 3 | |
257 | 257 | let poolWxEmissionPerBlock = (fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) / boostMaxCoeff) | |
258 | 258 | let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult) | |
259 | 259 | let maxFactor = (boostMaxCoeff * MULT8) | |
260 | 260 | let totalLpStaked = getIntOrZero(stakingDapp, keyStakedTotal(lpAssetId)) | |
261 | 261 | [poolWxEmissionPerBlock, maxFactor, totalLpStaked] | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func calcGwxAmountStartREADONLY (lockAmount,lockDuration,maxLockDuration) = { | |
266 | 266 | let coeffX8 = fraction(lockDuration, MULT8, maxLockDuration) | |
267 | 267 | let gWxAmountStart = fraction(lockAmount, coeffX8, MULT8) | |
268 | 268 | [gWxAmountStart] | |
269 | 269 | } | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) { | |
273 | 273 | case s: String => | |
274 | 274 | fromBase58String(s) | |
275 | 275 | case _: Unit => | |
276 | 276 | unit | |
277 | 277 | case _ => | |
278 | 278 | throw("Match error") | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) { | |
283 | 283 | case s: String => | |
284 | 284 | fromBase58String(s) | |
285 | 285 | case _: Unit => | |
286 | 286 | unit | |
287 | 287 | case _ => | |
288 | 288 | throw("Match error") | |
289 | 289 | } | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func mustManager (i) = { | |
293 | 293 | let pd = throw("Permission denied") | |
294 | 294 | match managerPublicKeyOrUnit() { | |
295 | 295 | case pk: ByteVector => | |
296 | 296 | if ((i.callerPublicKey == pk)) | |
297 | 297 | then true | |
298 | 298 | else pd | |
299 | 299 | case _: Unit => | |
300 | 300 | if ((i.caller == this)) | |
301 | 301 | then true | |
302 | 302 | else pd | |
303 | 303 | case _ => | |
304 | 304 | throw("Match error") | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func constructor (factoryAddress) = { | |
311 | 311 | let checkCaller = mustManager(i) | |
312 | 312 | if ((checkCaller == checkCaller)) | |
313 | 313 | then [StringEntry(keyFactoryAddress(), factoryAddress)] | |
314 | 314 | else throw("Strict value is not equal to itself.") | |
315 | 315 | } | |
316 | 316 | ||
317 | 317 | ||
318 | 318 | ||
319 | 319 | @Callable(i) | |
320 | 320 | func currentRewardRateREADONLY (lpAssetId) = { | |
321 | 321 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
322 | 322 | let wxEmissionPerBlock = rewardData[0] | |
323 | 323 | let maxFactor = rewardData[1] | |
324 | 324 | let totalLpStaked = rewardData[2] | |
325 | 325 | $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP)) | |
326 | 326 | } | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(i) | |
331 | 331 | func currentUserRewardRateREADONLY (lpAssetId,userAddress) = { | |
332 | 332 | let rewardData = internalCurrentRewardRate(lpAssetId) | |
333 | 333 | let wxEmissionPerBlock = rewardData[0] | |
334 | 334 | let maxFactor = rewardData[1] | |
335 | 335 | let totalLpStaked = rewardData[2] | |
336 | 336 | let lpStakedByUser = getIntOrZero(stakingDapp, keyStakedByUser(userAddress, lpAssetId)) | |
337 | 337 | let userClaimInfo = split(asString(invoke(stakingDapp, "claimWxREADONLY", [lpAssetId, userAddress], nil)), SEP) | |
338 | 338 | let minRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[5]), "couldn't parse minRewardPart") | |
339 | 339 | let boostRewardPart = valueOrErrorMessage(parseInt(userClaimInfo[6]), "couldn't parse boostRewardPart") | |
340 | 340 | let debug = userClaimInfo[7] | |
341 | 341 | let boostingPower = if ((boostRewardPart == 0)) | |
342 | 342 | then (1 * MULT8) | |
343 | 343 | else fraction((minRewardPart + boostRewardPart), MULT8, minRewardPart) | |
344 | 344 | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower), debug], SEP)) | |
345 | 345 | } | |
346 | 346 | ||
347 | 347 | ||
348 | 348 | ||
349 | 349 | @Callable(i) | |
350 | 350 | func calcBoostBulkInternalREADONLY (currentIter,deltaWxAmountBulk,deltaLockPeriodInBlocksBulk,deltaLpAmountBulk,lpAssetIdOptBulk,userAddressOpt,resAcc) = if ((currentIter == size(deltaWxAmountBulk))) | |
351 | 351 | then $Tuple2(nil, resAcc) | |
352 | 352 | else { | |
353 | 353 | let deltaWxAmount = deltaWxAmountBulk[currentIter] | |
354 | 354 | let deltaLockPeriodInBlocks = deltaLockPeriodInBlocksBulk[currentIter] | |
355 | 355 | let deltaLpAmount = deltaLpAmountBulk[currentIter] | |
356 | 356 | let lpAssetIdOpt = lpAssetIdOptBulk[currentIter] | |
357 | 357 | let info = { | |
358 | 358 | let @ = invoke(this, "calcBoostREADONLY", [deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt], nil) | |
359 | 359 | if ($isInstanceOf(@, "String")) | |
360 | 360 | then @ | |
361 | 361 | else throw(($getType(@) + " couldn't be cast to String")) | |
362 | 362 | } | |
363 | 363 | let res = (resAcc :+ info) | |
364 | 364 | let inv = { | |
365 | 365 | let @ = invoke(this, "calcBoostBulkInternalREADONLY", [(currentIter + 1), deltaWxAmountBulk, deltaLockPeriodInBlocksBulk, deltaLpAmountBulk, lpAssetIdOptBulk, userAddressOpt, res], nil) | |
366 | 366 | if ($isInstanceOf(@, "List[Any]")) | |
367 | 367 | then @ | |
368 | 368 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
369 | 369 | } | |
370 | 370 | if ((inv == inv)) | |
371 | 371 | then $Tuple2(nil, inv) | |
372 | 372 | else throw("Strict value is not equal to itself.") | |
373 | 373 | } | |
374 | 374 | ||
375 | 375 | ||
376 | 376 | ||
377 | 377 | @Callable(i) | |
378 | 378 | func calcBoostBulkREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
379 | 379 | let res = invoke(this, "calcBoostBulkInternalREADONLY", [0, deltaWxAmount, deltaLockPeriodInBlocks, deltaLpAmount, lpAssetIdOpt, userAddressOpt, nil], nil) | |
380 | 380 | $Tuple2(nil, res) | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(i) | |
386 | 386 | func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
387 | 387 | let mathDapp = gwxRewardDapp | |
388 | 388 | let EMPTYSTR = "empty" | |
389 | 389 | let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingDapp, keyBoostCfg()), SEP)[4]) | |
390 | 390 | let lpAssetIdStr = if ((lpAssetIdOpt == "")) | |
391 | 391 | then EMPTYSTR | |
392 | 392 | else lpAssetIdOpt | |
393 | 393 | let userAddressStr = if ((userAddressOpt == "")) | |
394 | 394 | then EMPTYSTR | |
395 | 395 | else userAddressOpt | |
396 | 396 | let userNumStr = valueOrElse(getString(boostingDapp, keyUser2NumMapping(userAddressOpt)), EMPTYSTR) | |
397 | 397 | let userAmount = valueOrElse(getInteger(boostingDapp, keyLockParamUserAmount(userNumStr)), 0) | |
398 | 398 | let lockStart = valueOrElse(getInteger(boostingDapp, keyLockParamStartBlock(userNumStr)), height) | |
399 | 399 | let lockDuration = valueOrElse(getInteger(boostingDapp, keyLockParamDuration(userNumStr)), 0) | |
400 | 400 | let lockEnd = (lockStart + lockDuration) | |
401 | 401 | let remainingDuration = max([(lockEnd - height), 0]) | |
402 | 402 | let userAmountNew = (userAmount + deltaWxAmount) | |
403 | 403 | let lockDurationNew = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
404 | 404 | let userCurrgWxAmount = asInt(asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddressStr], nil))[0]) | |
405 | 405 | let gWxAmountStartNew = calcGwxAmountStartREADONLY(userAmountNew, lockDurationNew, maxLockDurationInBlocks)[0] | |
406 | 406 | let gWxParamsResultList = asAnyList(invoke(mathDapp, "calcGwxParamsREADONLY", [gWxAmountStartNew, height, lockDurationNew], nil)) | |
407 | 407 | let gWxAmountDiff = (gWxAmountStartNew - userCurrgWxAmount) | |
408 | 408 | let k = asInt(gWxParamsResultList[0]) | |
409 | 409 | let b = asInt(gWxParamsResultList[1]) | |
410 | 410 | let period = toString(asInt(gWxParamsResultList[2])) | |
411 | 411 | let totalMaxBoostIntegralKEY = keyTotalMaxBoostINTEGRAL() | |
412 | 412 | let totalCachedGwxKEY = keyTotalCachedGwx() | |
413 | 413 | let userMaxBoostIntNew = ((gWxAmountStartNew * lockDurationNew) / 2) | |
414 | 414 | let totalMaxBoostInt = getIntOrZero(boostingDapp, totalMaxBoostIntegralKEY) | |
415 | 415 | let totalCachedGwx = valueOrElse(getInteger(boostingDapp, totalCachedGwxKEY), 0) | |
416 | 416 | let MULT3 = 1000 | |
417 | 417 | let wxEmissionPerBlockX3 = (getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) * MULT3) | |
418 | 418 | let stakedByUserKEY = keyStakedByUser(userAddressStr, lpAssetIdStr) | |
419 | 419 | let stakedTotalKEY = keyStakedTotal(lpAssetIdStr) | |
420 | 420 | let stakedByUser = readStaked(stakingDapp, stakedByUserKEY) | |
421 | 421 | let stakedTotal = readStaked(stakingDapp, stakedTotalKEY) | |
422 | 422 | let stakedByUserNew = (stakedByUser + deltaLpAmount) | |
423 | 423 | let stakedTotalNew = (stakedTotal + deltaLpAmount) | |
424 | 424 | let poolWeight = if ((lpAssetIdStr != EMPTYSTR)) | |
425 | 425 | then { | |
426 | 426 | let poolAddressStr = valueOrErrorMessage(getString(factoryDapp, keyFactoryLp2AssetsMapping(lpAssetIdStr)), ("unsupported lp asset " + lpAssetIdStr)) | |
427 | 427 | getIntegerValue(factoryDapp, keyFactoryPoolWeight(poolAddressStr)) | |
428 | 428 | } | |
429 | 429 | else 0 | |
430 | 430 | let poolWxEmissionPerBlockX3 = fraction(wxEmissionPerBlockX3, poolWeight, (POOLWEIGHTMULT * 3)) | |
431 | 431 | let wxPerLpX3 = if ((stakedTotalNew != 0)) | |
432 | 432 | then fraction(poolWxEmissionPerBlockX3, MULT8, stakedTotalNew) | |
433 | 433 | else 0 | |
434 | 434 | let userWxPerBlockX3 = fraction(wxPerLpX3, stakedByUserNew, MULT8) | |
435 | 435 | let boostEmissionPerBlockX3 = (poolWxEmissionPerBlockX3 * 2) | |
436 | 436 | let tmpUserBoostPerBlockX3 = fraction(gWxAmountStartNew, boostEmissionPerBlockX3, (totalCachedGwx + gWxAmountDiff)) | |
437 | 437 | let userBoostPerBlockX3 = min([tmpUserBoostPerBlockX3, (userWxPerBlockX3 * 2)]) | |
438 | 438 | let boostCoeff = if ((userWxPerBlockX3 == 0)) | |
439 | 439 | then (1 * MULT8) | |
440 | 440 | else fraction((userBoostPerBlockX3 + userWxPerBlockX3), MULT8, userWxPerBlockX3) | |
441 | 441 | $Tuple2(nil, makeString(["%d%d%s", toString(gWxAmountStartNew), toString(boostCoeff), "d"], SEP)) | |
442 | 442 | } | |
443 | 443 | ||
444 | 444 | ||
445 | 445 | ||
446 | 446 | @Callable(i) | |
447 | 447 | func wxEmissionStatsREADONLY () = { | |
448 | 448 | let ONEMULT = toString(MULT8) | |
449 | 449 | let ONE = "1" | |
450 | 450 | let wxEmissionPerBlock = getIntOrFail(emissionDapp, keyEmissionRatePerBlockCurrent()) | |
451 | 451 | let emissionStartBlock = getIntOrFail(emissionDapp, keyEmissionStartBlock()) | |
452 | 452 | let passedBlocks = if ((emissionStartBlock > height)) | |
453 | 453 | then 0 | |
454 | 454 | else (height - emissionStartBlock) | |
455 | 455 | let teamEmDuration = (1440 * 365) | |
456 | 456 | let teamEmMax = (201000000 * MULT8) | |
457 | 457 | let teamEm = if ((passedBlocks > teamEmDuration)) | |
458 | 458 | then teamEmMax | |
459 | 459 | else fraction(teamEmMax, passedBlocks, teamEmDuration) | |
460 | 460 | let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm) | |
461 | 461 | let totalWxLocked = getIntOrZero(boostingDapp, keyBoostingLockParamTotalAmount()) | |
462 | 462 | let locksDurationSumInBlocks = getIntOrZero(boostingDapp, keyBoostingStatsLocksDurationSumInBlocks()) | |
463 | 463 | let locksCount = getIntOrZero(boostingDapp, keyBoostingStatsLocksCount()) | |
464 | 464 | $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP)) | |
465 | 465 | } | |
466 | 466 | ||
467 | 467 | ||
468 | 468 | ||
469 | 469 | @Callable(i) | |
470 | 470 | func poolStatsREADONLY (lpAsset) = { | |
471 | 471 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
472 | 472 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
473 | 473 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
474 | 474 | let amtAssetId = asString(cfg[idxAmtAssetId]) | |
475 | 475 | let priceAssetId = asString(cfg[idxPriceAssetId]) | |
476 | 476 | let iAmtAssetId = asString(cfg[idxIAmtAssetId]) | |
477 | 477 | let iPriceAssetId = asString(cfg[idxIPriceAssetId]) | |
478 | 478 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
479 | 479 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
480 | 480 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
481 | 481 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil)) | |
482 | 482 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil)) | |
483 | 483 | let pricesList = if ((poolLPBalance == 0)) | |
484 | 484 | then [toString(zeroBigInt), toString(zeroBigInt), toString(zeroBigInt)] | |
485 | 485 | else asAnyList(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil)) | |
486 | 486 | let curPrice = 0 | |
487 | 487 | let lpAmtAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil)) | |
488 | 488 | let lpPriceAssetShare = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil)) | |
489 | 489 | let poolWeight = getIntegerValue(factoryDapp, keyFactoryPoolWeight(toString(poolAddress))) | |
490 | 490 | let fee = getPoolFee(poolAddress) | |
491 | 491 | let poolOneTokenOperationsDisabled = { | |
492 | - | let @ = invoke(factoryDapp, " | |
492 | + | let @ = invoke(factoryDapp, "isPoolOneTokenOperationsDisabledREADONLY", [toString(poolAddress)], nil) | |
493 | 493 | if ($isInstanceOf(@, "Boolean")) | |
494 | 494 | then @ | |
495 | 495 | else throw(($getType(@) + " couldn't be cast to Boolean")) | |
496 | 496 | } | |
497 | 497 | $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)) | |
498 | 498 | } | |
499 | 499 | ||
500 | 500 | ||
501 | 501 | ||
502 | 502 | @Callable(i) | |
503 | 503 | func poolEvaluatePutByAmountAssetREADONLY (lpAsset,inAmAssetAmt) = { | |
504 | 504 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
505 | 505 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
506 | 506 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
507 | 507 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
508 | 508 | let amAssetId = fromBase58String(amAssetIdStr) | |
509 | 509 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
510 | 510 | let prAssetId = fromBase58String(prAssetIdStr) | |
511 | 511 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
512 | 512 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
513 | 513 | let poolStatus = asString(cfg[idxPoolStatus]) | |
514 | 514 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
515 | 515 | let accAmtAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
516 | 516 | let accPriceAssetBalance = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
517 | 517 | let amtAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accAmtAssetBalance, amtAssetDcm], nil))) | |
518 | 518 | let priceAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [accPriceAssetBalance, priceAssetDcm], nil))) | |
519 | 519 | let curPriceX18 = if ((poolLPBalance == 0)) | |
520 | 520 | then zeroBigInt | |
521 | 521 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(priceAssetAmtX18), toString(amtAssetAmtX18)], nil))) | |
522 | 522 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
523 | 523 | let inAmAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inAmAssetAmt, amtAssetDcm], nil))) | |
524 | 524 | let inPrAssetAmtX18 = fraction(inAmAssetAmtX18, curPriceX18, MULT18) | |
525 | 525 | let inPrAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inPrAssetAmtX18), priceAssetDcm], nil)) | |
526 | 526 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
527 | - | let $ | |
527 | + | let $t02227722630 = match res { | |
528 | 528 | case _ => | |
529 | 529 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
530 | 530 | then if ($isInstanceOf($match0._3, "Int")) | |
531 | 531 | then if ($isInstanceOf($match0._4, "Int")) | |
532 | 532 | then if ($isInstanceOf($match0._5, "Int")) | |
533 | 533 | then $isInstanceOf($match0._6, "Int") | |
534 | 534 | else false | |
535 | 535 | else false | |
536 | 536 | else false | |
537 | 537 | else false) | |
538 | 538 | then (size($match0) == 13) | |
539 | 539 | else false) | |
540 | 540 | then { | |
541 | 541 | let calcLpAmt = $match0._1 | |
542 | 542 | let curPriceCalc = $match0._3 | |
543 | 543 | let amBalance = $match0._4 | |
544 | 544 | let prBalance = $match0._5 | |
545 | 545 | let lpEmission = $match0._6 | |
546 | 546 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
547 | 547 | } | |
548 | 548 | else throw("Couldn't cast types") | |
549 | 549 | } | |
550 | - | let calcLpAmt = $ | |
551 | - | let curPriceCalc = $ | |
552 | - | let amBalance = $ | |
553 | - | let prBalance = $ | |
554 | - | let lpEmission = $ | |
550 | + | let calcLpAmt = $t02227722630._1 | |
551 | + | let curPriceCalc = $t02227722630._2 | |
552 | + | let amBalance = $t02227722630._3 | |
553 | + | let prBalance = $t02227722630._4 | |
554 | + | let lpEmission = $t02227722630._5 | |
555 | 555 | $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)) | |
556 | 556 | } | |
557 | 557 | ||
558 | 558 | ||
559 | 559 | ||
560 | 560 | @Callable(i) | |
561 | 561 | func poolEvaluatePutByPriceAssetREADONLY (lpAsset,inPrAssetAmt) = { | |
562 | 562 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
563 | 563 | let cfg = asAnyList(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil)) | |
564 | 564 | let lpAssetId = fromBase58String(asString(cfg[idxPoolLPAssetId])) | |
565 | 565 | let amAssetIdStr = asString(cfg[idxAmtAssetId]) | |
566 | 566 | let amAssetId = fromBase58String(amAssetIdStr) | |
567 | 567 | let prAssetIdStr = asString(cfg[idxPriceAssetId]) | |
568 | 568 | let prAssetId = fromBase58String(prAssetIdStr) | |
569 | 569 | let amtAssetDcm = parseIntValue(asString(cfg[idxAmtAssetDcm])) | |
570 | 570 | let priceAssetDcm = parseIntValue(asString(cfg[idxPriceAssetDcm])) | |
571 | 571 | let poolStatus = asString(cfg[idxPoolStatus]) | |
572 | 572 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
573 | 573 | let amBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amAssetIdStr], nil)) | |
574 | 574 | let prBalanceRaw = asInt(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [prAssetIdStr], nil)) | |
575 | 575 | let amBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [amBalanceRaw, amtAssetDcm], nil))) | |
576 | 576 | let prBalanceRawX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [prBalanceRaw, priceAssetDcm], nil))) | |
577 | 577 | let curPriceX18 = if ((poolLPBalance == 0)) | |
578 | 578 | then zeroBigInt | |
579 | 579 | else parseBigIntValue(asString(invoke(poolAddress, "calcPriceBigIntWrapperREADONLY", [toString(prBalanceRawX18), toString(amBalanceRawX18)], nil))) | |
580 | 580 | let curPrice = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(curPriceX18), MULT8], nil)) | |
581 | 581 | let inPrAssetAmtX18 = parseBigIntValue(asString(invoke(poolAddress, "toX18WrapperREADONLY", [inPrAssetAmt, priceAssetDcm], nil))) | |
582 | 582 | let inAmAssetAmtX18 = fraction(inPrAssetAmtX18, MULT18, curPriceX18) | |
583 | 583 | let inAmAssetAmt = asInt(invoke(poolAddress, "fromX18WrapperREADONLY", [toString(inAmAssetAmtX18), amtAssetDcm], nil)) | |
584 | 584 | let res = invoke(poolAddress, "estimatePutOperationWrapperREADONLY", ["", 500000, inAmAssetAmt, amAssetId, inPrAssetAmt, prAssetId, "", true, false], nil) | |
585 | - | let $ | |
585 | + | let $t02520325556 = match res { | |
586 | 586 | case _ => | |
587 | 587 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
588 | 588 | then if ($isInstanceOf($match0._3, "Int")) | |
589 | 589 | then if ($isInstanceOf($match0._4, "Int")) | |
590 | 590 | then if ($isInstanceOf($match0._5, "Int")) | |
591 | 591 | then $isInstanceOf($match0._6, "Int") | |
592 | 592 | else false | |
593 | 593 | else false | |
594 | 594 | else false | |
595 | 595 | else false) | |
596 | 596 | then (size($match0) == 13) | |
597 | 597 | else false) | |
598 | 598 | then { | |
599 | 599 | let calcLpAmt = $match0._1 | |
600 | 600 | let curPriceCalc = $match0._3 | |
601 | 601 | let amBalance = $match0._4 | |
602 | 602 | let prBalance = $match0._5 | |
603 | 603 | let lpEmission = $match0._6 | |
604 | 604 | $Tuple5(calcLpAmt, curPriceCalc, amBalance, prBalance, lpEmission) | |
605 | 605 | } | |
606 | 606 | else throw("Couldn't cast types") | |
607 | 607 | } | |
608 | - | let calcLpAmt = $ | |
609 | - | let curPriceCalc = $ | |
610 | - | let amBalance = $ | |
611 | - | let prBalance = $ | |
612 | - | let lpEmission = $ | |
608 | + | let calcLpAmt = $t02520325556._1 | |
609 | + | let curPriceCalc = $t02520325556._2 | |
610 | + | let amBalance = $t02520325556._3 | |
611 | + | let prBalance = $t02520325556._4 | |
612 | + | let lpEmission = $t02520325556._5 | |
613 | 613 | $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)) | |
614 | 614 | } | |
615 | 615 | ||
616 | 616 | ||
617 | 617 | ||
618 | 618 | @Callable(i) | |
619 | 619 | func poolEvaluateGetREADONLY (paymentLpAssetId,paymentLpAmt) = { | |
620 | 620 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryDapp, keyFactoryLpAssetToPoolContractAddress(paymentLpAssetId))) | |
621 | 621 | let res = invoke(poolAddress, "estimateGetOperationWrapperREADONLY", ["", paymentLpAssetId, paymentLpAmt, toString(poolAddress)], nil) | |
622 | - | let $ | |
622 | + | let $t02625126668 = match res { | |
623 | 623 | case _ => | |
624 | 624 | if (if (if ($isInstanceOf($match0._1, "Int")) | |
625 | 625 | then if ($isInstanceOf($match0._2, "Int")) | |
626 | 626 | then if ($isInstanceOf($match0._5, "Int")) | |
627 | 627 | then if ($isInstanceOf($match0._6, "Int")) | |
628 | 628 | then if ($isInstanceOf($match0._7, "Int")) | |
629 | 629 | then if ($isInstanceOf($match0._8, "String")) | |
630 | 630 | then $isInstanceOf($match0._9, "String") | |
631 | 631 | else false | |
632 | 632 | else false | |
633 | 633 | else false | |
634 | 634 | else false | |
635 | 635 | else false | |
636 | 636 | else false) | |
637 | 637 | then (size($match0) == 10) | |
638 | 638 | else false) | |
639 | 639 | then { | |
640 | 640 | let outAmAmt = $match0._1 | |
641 | 641 | let outPrAmt = $match0._2 | |
642 | 642 | let amBalance = $match0._5 | |
643 | 643 | let prBalance = $match0._6 | |
644 | 644 | let lpEmission = $match0._7 | |
645 | 645 | let curPrice = $match0._8 | |
646 | 646 | let poolStatus = $match0._9 | |
647 | 647 | $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus) | |
648 | 648 | } | |
649 | 649 | else throw("Couldn't cast types") | |
650 | 650 | } | |
651 | - | let outAmAmt = $ | |
652 | - | let outPrAmt = $ | |
653 | - | let amBalance = $ | |
654 | - | let prBalance = $ | |
655 | - | let lpEmission = $ | |
656 | - | let curPrice = $ | |
657 | - | let poolStatus = $ | |
651 | + | let outAmAmt = $t02625126668._1 | |
652 | + | let outPrAmt = $t02625126668._2 | |
653 | + | let amBalance = $t02625126668._3 | |
654 | + | let prBalance = $t02625126668._4 | |
655 | + | let lpEmission = $t02625126668._5 | |
656 | + | let curPrice = $t02625126668._6 | |
657 | + | let poolStatus = $t02625126668._7 | |
658 | 658 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(outAmAmt), toString(outPrAmt), toString(amBalance), toString(prBalance), toString(lpEmission), curPrice, poolStatus], SEP)) | |
659 | 659 | } | |
660 | 660 | ||
661 | 661 | ||
662 | 662 | ||
663 | 663 | @Callable(i) | |
664 | 664 | func gwxUserInfoREADONLY (userAddress) = { | |
665 | 665 | let gwxUserInfoLIST = asAnyList(invoke(boostingDapp, "gwxUserInfoREADONLY", [userAddress], nil)) | |
666 | 666 | let gwxAmount = asInt(gwxUserInfoLIST[0]) | |
667 | 667 | $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP)) | |
668 | 668 | } | |
669 | 669 | ||
670 | 670 | ||
671 | 671 | ||
672 | 672 | @Callable(i) | |
673 | 673 | func setManager (pendingManagerPublicKey) = { | |
674 | 674 | let checkCaller = mustManager(i) | |
675 | 675 | if ((checkCaller == checkCaller)) | |
676 | 676 | then { | |
677 | 677 | let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey) | |
678 | 678 | if ((checkManagerPublicKey == checkManagerPublicKey)) | |
679 | 679 | then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)] | |
680 | 680 | else throw("Strict value is not equal to itself.") | |
681 | 681 | } | |
682 | 682 | else throw("Strict value is not equal to itself.") | |
683 | 683 | } | |
684 | 684 | ||
685 | 685 | ||
686 | 686 | ||
687 | 687 | @Callable(i) | |
688 | 688 | func confirmManager () = { | |
689 | 689 | let pm = pendingManagerPublicKeyOrUnit() | |
690 | 690 | let hasPM = if (isDefined(pm)) | |
691 | 691 | then true | |
692 | 692 | else throw("No pending manager") | |
693 | 693 | if ((hasPM == hasPM)) | |
694 | 694 | then { | |
695 | 695 | let checkPM = if ((i.callerPublicKey == value(pm))) | |
696 | 696 | then true | |
697 | 697 | else throw("You are not pending manager") | |
698 | 698 | if ((checkPM == checkPM)) | |
699 | 699 | then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())] | |
700 | 700 | else throw("Strict value is not equal to itself.") | |
701 | 701 | } | |
702 | 702 | else throw("Strict value is not equal to itself.") | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | @Verifier(tx) | |
707 | 707 | func verify () = { | |
708 | 708 | let targetPublicKey = match managerPublicKeyOrUnit() { | |
709 | 709 | case pk: ByteVector => | |
710 | 710 | pk | |
711 | 711 | case _: Unit => | |
712 | 712 | tx.senderPublicKey | |
713 | 713 | case _ => | |
714 | 714 | throw("Match error") | |
715 | 715 | } | |
716 | 716 | sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey) | |
717 | 717 | } | |
718 | 718 |
github/deemru/w8io/169f3d6 78.45 ms ◑