tx · 76EkAryJFqp7KyskdJqxGePJqH9ho36gcSiXEjPZJBMh 3N5QAcgvpAGzTtSGT2iGZcy6DnRqaLMQLk6: -0.01000000 Waves 2021.11.24 18:37 [1805317] smart account 3N5QAcgvpAGzTtSGT2iGZcy6DnRqaLMQLk6 > SELF 0.00000000 Waves
{ "type": 13, "id": "76EkAryJFqp7KyskdJqxGePJqH9ho36gcSiXEjPZJBMh", "fee": 1000000, "feeAssetId": null, "timestamp": 1637768296937, "version": 1, "sender": "3N5QAcgvpAGzTtSGT2iGZcy6DnRqaLMQLk6", "senderPublicKey": "2F6Xr5hWciNeY5nz7JLvHqGLWVccgu2VNM9NRhoeghWN", "proofs": [ "3fPHDTZrVm8JW1a88tjfh84hyuniC6CN5JHnsrJyMEYdWqGGa6zTH6ot7M3m3MtJmui1xEheNoYMX2bLeFWQ7NvD" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIHCgUBAQEICBIAEgMKAQgSAwoBCAAAADwAAAAABlNDQUxFOAAAAAAAAAAACAAAAAAFTVVMVDgAAAAAAAX14QAAAAAAB1NDQUxFMTgAAAAAAAAAABIAAAAABk1VTFQxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAANaWR4UG9vbFN0YXR1cwAAAAAAAAAAAgAAAAAQaWR4UG9vbExQQXNzZXRJZAAAAAAAAAAAAwAAAAANaWR4QW10QXNzZXRJZAAAAAAAAAAABAAAAAAPaWR4UHJpY2VBc3NldElkAAAAAAAAAAAFAAAAAA5pZHhBbXRBc3NldERjbQAAAAAAAAAABgAAAAAQaWR4UHJpY2VBc3NldERjbQAAAAAAAAAABwAAAAAOaWR4SUFtdEFzc2V0SWQAAAAAAAAAAAgAAAAAEGlkeElQcmljZUFzc2V0SWQAAAAAAAAAAAkAAAAADWlkeExQQXNzZXREY20AAAAAAAAAAAoBAAAAD2dldFN0c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APZ3d4VXNlckluZm9MSVNUAwkAAAEAAAACCQAD/AAAAAQFAAAAEGJvb3N0aW5nQ29udHJhY3QCAAAAE2d3eFVzZXJJbmZvUkVBRE9OTFkJAARMAAAAAgUAAAALdXNlckFkZHJlc3MFAAAAA25pbAUAAAADbmlsAgAAAAlMaXN0W0FueV0JAAP8AAAABAUAAAAQYm9vc3RpbmdDb250cmFjdAIAAAATZ3d4VXNlckluZm9SRUFET05MWQkABEwAAAACBQAAAAt1c2VyQWRkcmVzcwUAAAADbmlsBQAAAANuaWwJAAACAAAAAQIAAAAeQ291bGRuJ3QgY2FzdCBBbnkgdG8gTGlzdFtBbnldBAAAAAlnd3hBbW91bnQDCQAAAQAAAAIJAAGRAAAAAgUAAAAPZ3d4VXNlckluZm9MSVNUAAAAAAAAAAAAAgAAAANJbnQJAAGRAAAAAgUAAAAPZ3d4VXNlckluZm9MSVNUAAAAAAAAAAAACQAAAgAAAAECAAAAGENvdWxkbid0IGNhc3QgQW55IHRvIEludAkABRQAAAACBQAAAANuaWwJAAS5AAAAAgkABEwAAAACAgAAAAIlZAkABEwAAAACCQABpAAAAAEFAAAACWd3eEFtb3VudAUAAAADbmlsBQAAAANTRVAAAAAAzIQNXQ==", "chainId": 84, "height": 1805317, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 742342fAXps3hg7zSGfKSEUE8477SVpDVpKyEimjSVWj Next: 3z7P1qc5ZcgTnHGa2MQyAA53Bf3qKSinMQMbJyNCXyJk Diff:
Old | New | Differences | |
---|---|---|---|
263 | 263 | let SCALE = 1000 | |
264 | 264 | let wxAmount = (lockedAmount + deltaWxAmount) | |
265 | 265 | let lockDurationBlocks = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
266 | + | let wxAmountStart = fraction(wxAmount, lockDurationBlocks, maxLockDurationInBlocks) | |
266 | 267 | let lockEndHeight = (height + lockDurationBlocks) | |
267 | - | let scale8ParamK = -(fraction( | |
268 | - | let scale8ParamB = (fraction( | |
268 | + | let scale8ParamK = -(fraction(wxAmountStart, SCALE, lockDurationBlocks)) | |
269 | + | let scale8ParamB = (fraction(wxAmountStart, SCALE, lockDurationBlocks) * lockEndHeight) | |
269 | 270 | let gWxAmount = (((scale8ParamK * height) + scale8ParamB) / SCALE) | |
270 | 271 | $Tuple2(nil, makeString(["%d%d", toString(gWxAmount), toString(boost)], SEP)) | |
271 | 272 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
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 idxPoolAddress = 1 | |
15 | 15 | ||
16 | 16 | let idxPoolStatus = 2 | |
17 | 17 | ||
18 | 18 | let idxPoolLPAssetId = 3 | |
19 | 19 | ||
20 | 20 | let idxAmtAssetId = 4 | |
21 | 21 | ||
22 | 22 | let idxPriceAssetId = 5 | |
23 | 23 | ||
24 | 24 | let idxAmtAssetDcm = 6 | |
25 | 25 | ||
26 | 26 | let idxPriceAssetDcm = 7 | |
27 | 27 | ||
28 | 28 | let idxIAmtAssetId = 8 | |
29 | 29 | ||
30 | 30 | let idxIPriceAssetId = 9 | |
31 | 31 | ||
32 | 32 | let idxLPAssetDcm = 10 | |
33 | 33 | ||
34 | 34 | func getStringOrFail (key) = valueOrErrorMessage(getString(key), (("mandatory this." + key) + " is not defined")) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func getStringByAddressOrFail (address,key) = valueOrErrorMessage(getString(address, key), (((("mandatory " + toString(address)) + ".") + key) + " is not defined")) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func getIntOrZero (address,key) = valueOrElse(getInteger(address, key), 0) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), (("mandatory this." + key) + " is not defined")) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func keyFactoryAddress () = "%s%s__config__factoryAddress" | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | let IdxFactoryCfgStakingDapp = 1 | |
50 | 50 | ||
51 | 51 | let IdxFactoryCfgBoostingDapp = 2 | |
52 | 52 | ||
53 | 53 | let IdxFactoryCfgIdoDapp = 3 | |
54 | 54 | ||
55 | 55 | let IdxFactoryCfgTeamDapp = 4 | |
56 | 56 | ||
57 | 57 | let IdxFactoryCfgEmissionDapp = 5 | |
58 | 58 | ||
59 | 59 | let IdxFactoryCfgRestDapp = 6 | |
60 | 60 | ||
61 | 61 | let IdxFactoryCfgSlippageDapp = 7 | |
62 | 62 | ||
63 | 63 | func keyFactoryCfg () = "%s__factoryConfig" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func keyFactoryLpList () = "%s__lpTokensList" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func keyFactoryLpAssetToPoolContractAddress (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func keyFactoryPoolWeight (contractAddress) = makeString(["%s%s", "poolWeight", contractAddress], SEP) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(keyFactoryAddress())) | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func readLpList () = split(valueOrElse(getString(readFactoryAddressOrFail(), keyFactoryLpList()), ""), SEP) | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func readFactoryCfgOrFail (factory) = split(getStringByAddressOrFail(factory, keyFactoryCfg()), SEP) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func getBoostingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgBoostingDapp]) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func getEmissionAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgEmissionDapp]) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func getStakingAddressOrFail (factoryCfg) = addressFromStringValue(factoryCfg[IdxFactoryCfgStakingDapp]) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func keyBoostCfg () = "%s__config" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func keyBoostingLockParamTotalAmount () = "%s%s__stats__activeTotalLocked" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func keyBoostingStatsLocksDurationSumInBlocks () = "%s%s__stats__locksDurationSumInBlocks" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func keyBoostingStatsLocksCount () = "%s%s__stats__locksCount" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func keyBoostingStatsUsersCount () = "%s%s__stats__activeUsersCount" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func keyUser2NumMapping (userAddress) = makeString(["%s%s%s__mapping__user2num", userAddress], SEP) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func keyNum2UserMapping (num) = makeString(["%s%s%s__mapping__num2user", num], SEP) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func keyLockParamUserAmount (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "amount"], SEP) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func keyLockParamStartBlock (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "start"], SEP) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func keyLockParamDuration (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "duration"], SEP) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func keyLockParamK (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "k"], SEP) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyLockParamB (userNum) = makeString(["%s%d%s__paramByUserNum", userNum, "b"], SEP) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyLockParamByPeriodK (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "k", period], SEP) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyLockParamByPeriodB (userNum,period) = makeString(["%s%d%s%d__paramByPeriod", userNum, "b", period], SEP) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyStakedByUser (userAddressStr,lpAssetIdStr) = makeString(["%s%s%s__staked", userAddressStr, lpAssetIdStr], SEP) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func keyStakedTotal (lpAssetIdStr) = ("%s%s%s__staked__total__" + lpAssetIdStr) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func keyEmissionRatePerBlockCurrent () = "%s%s__ratePerBlock__current" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyEmissionRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyEmissionStartBlock () = "%s%s__emission__startBlock" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyEmissionDurationInBlocks () = "%s%s__emission__duration" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func keyEmissionEndBlock () = "%s%s__emission__endBlock" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func internalCurrentRewardRate (factoryContract,stakingContract,emissionContract,lpAssetId) = { | |
160 | 160 | let poolAddressStr = getStringByAddressOrFail(factoryContract, keyFactoryLpAssetToPoolContractAddress(lpAssetId)) | |
161 | 161 | let poolWeightMult = MULT8 | |
162 | 162 | let poolWeight = getIntegerValue(factoryContract, keyFactoryPoolWeight(poolAddressStr)) | |
163 | 163 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
164 | 164 | let wxEmissionPerBlockMax = getIntOrFail(emissionContract, keyEmissionRatePerBlockMaxCurrent()) | |
165 | 165 | let poolWxEmissionPerBlock = fraction(wxEmissionPerBlock, poolWeight, poolWeightMult) | |
166 | 166 | let poolWxEmissionPerBlockMax = fraction(wxEmissionPerBlockMax, poolWeight, poolWeightMult) | |
167 | 167 | let maxFactor = (3 * MULT8) | |
168 | 168 | let totalLpStaked = getIntOrZero(stakingContract, keyStakedTotal(lpAssetId)) | |
169 | 169 | [poolWxEmissionPerBlock, maxFactor, totalLpStaked] | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | @Callable(i) | |
174 | 174 | func constructor (factoryAddress) = if ((i.caller != this)) | |
175 | 175 | then throw("not authorized") | |
176 | 176 | else [StringEntry(keyFactoryAddress(), factoryAddress)] | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(i) | |
181 | 181 | func currentRewardRateREADONLY (lpAssetId) = { | |
182 | 182 | let factoryContract = readFactoryAddressOrFail() | |
183 | 183 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
184 | 184 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
185 | 185 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
186 | 186 | let rewardData = internalCurrentRewardRate(factoryContract, stakingContract, emissionContract, lpAssetId) | |
187 | 187 | let wxEmissionPerBlock = rewardData[0] | |
188 | 188 | let maxFactor = rewardData[1] | |
189 | 189 | let totalLpStaked = rewardData[2] | |
190 | 190 | $Tuple2(nil, makeString(["%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked)], SEP)) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(i) | |
196 | 196 | func currentUserRewardRateREADONLY (lpAssetId,userAddress) = { | |
197 | 197 | let factoryContract = readFactoryAddressOrFail() | |
198 | 198 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
199 | 199 | let stakingContract = getStakingAddressOrFail(factoryCfg) | |
200 | 200 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
201 | 201 | let rewardData = internalCurrentRewardRate(factoryContract, stakingContract, emissionContract, lpAssetId) | |
202 | 202 | let wxEmissionPerBlock = rewardData[0] | |
203 | 203 | let maxFactor = rewardData[1] | |
204 | 204 | let totalLpStaked = rewardData[2] | |
205 | 205 | let lpStakedByUser = getIntOrZero(stakingContract, keyStakedByUser(userAddress, lpAssetId)) | |
206 | 206 | let boostingPower = (1 * MULT8) | |
207 | 207 | $Tuple2(nil, makeString(["%d%d%d%d%d", toString(wxEmissionPerBlock), toString(maxFactor), toString(totalLpStaked), toString(lpStakedByUser), toString(boostingPower)], SEP)) | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(i) | |
213 | 213 | func claimedRewardREADONLY (userAddress) = { | |
214 | 214 | let lpList = readLpList() | |
215 | 215 | let prefix = "%s%d%d%d%s" | |
216 | 216 | func claimedRewardByLpAggregator (resultStr,nextLp) = { | |
217 | 217 | let rand = ((toInt(fromBase58String(nextLp)) % 100000) + (toInt(toBytes(userAddress)) % 100000)) | |
218 | 218 | let absRand = if ((0 > rand)) | |
219 | 219 | then -(rand) | |
220 | 220 | else rand | |
221 | 221 | let val = (((absRand % 100) * MULT8) + (absRand * (MULT8 / 100000))) | |
222 | 222 | let minRewardClaimed = ((val / 6) * 2) | |
223 | 223 | let boostRewardClaimed = ((val / 6) * 3) | |
224 | 224 | let gFeeClaimed = (val / 6) | |
225 | 225 | makeString([(prefix + resultStr), nextLp, toString(minRewardClaimed), toString(boostRewardClaimed), toString(gFeeClaimed), "end"], SEP) | |
226 | 226 | } | |
227 | 227 | ||
228 | 228 | let result = { | |
229 | 229 | let $l = lpList | |
230 | 230 | let $s = size($l) | |
231 | 231 | let $acc0 = "%s" | |
232 | 232 | func 1 ($a,$i) = if (($i >= $s)) | |
233 | 233 | then $a | |
234 | 234 | else claimedRewardByLpAggregator($a, $l[$i]) | |
235 | 235 | ||
236 | 236 | func 2 ($a,$i) = if (($i >= $s)) | |
237 | 237 | then $a | |
238 | 238 | else throw("List size exceeds 10") | |
239 | 239 | ||
240 | 240 | 2(1(1(1(1(1(1(1(1(1(1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
241 | 241 | } | |
242 | 242 | $Tuple2(nil, ((result + SEP) + userAddress)) | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | ||
247 | 247 | @Callable(i) | |
248 | 248 | func calcBoostREADONLY (deltaWxAmount,deltaLockPeriodInBlocks,deltaLpAmount,lpAssetIdOpt,userAddressOpt) = { | |
249 | 249 | let factoryContract = readFactoryAddressOrFail() | |
250 | 250 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
251 | 251 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
252 | 252 | let EMPTYSTR = "empty" | |
253 | 253 | let maxLockDurationInBlocks = parseIntValue(split(getStringByAddressOrFail(boostingContract, keyBoostCfg()), SEP)[4]) | |
254 | 254 | let userNum = valueOrElse(getString(boostingContract, keyUser2NumMapping(userAddressOpt)), EMPTYSTR) | |
255 | 255 | let lockedAmount = valueOrElse(getInteger(boostingContract, keyLockParamUserAmount(userNum)), 0) | |
256 | 256 | let duration = valueOrElse(getInteger(boostingContract, keyLockParamDuration(userNum)), 0) | |
257 | 257 | let startBlock = valueOrElse(getInteger(boostingContract, keyLockParamStartBlock(userNum)), height) | |
258 | 258 | let endBlock = (startBlock + duration) | |
259 | 259 | let remainingDuration = max([(endBlock - height), 0]) | |
260 | 260 | let boost = if ((userAddressOpt != "")) | |
261 | 261 | then (3 * MULT8) | |
262 | 262 | else (1 * MULT8) | |
263 | 263 | let SCALE = 1000 | |
264 | 264 | let wxAmount = (lockedAmount + deltaWxAmount) | |
265 | 265 | let lockDurationBlocks = min([(remainingDuration + deltaLockPeriodInBlocks), maxLockDurationInBlocks]) | |
266 | + | let wxAmountStart = fraction(wxAmount, lockDurationBlocks, maxLockDurationInBlocks) | |
266 | 267 | let lockEndHeight = (height + lockDurationBlocks) | |
267 | - | let scale8ParamK = -(fraction( | |
268 | - | let scale8ParamB = (fraction( | |
268 | + | let scale8ParamK = -(fraction(wxAmountStart, SCALE, lockDurationBlocks)) | |
269 | + | let scale8ParamB = (fraction(wxAmountStart, SCALE, lockDurationBlocks) * lockEndHeight) | |
269 | 270 | let gWxAmount = (((scale8ParamK * height) + scale8ParamB) / SCALE) | |
270 | 271 | $Tuple2(nil, makeString(["%d%d", toString(gWxAmount), toString(boost)], SEP)) | |
271 | 272 | } | |
272 | 273 | ||
273 | 274 | ||
274 | 275 | ||
275 | 276 | @Callable(i) | |
276 | 277 | func wxEmissionStatsREADONLY () = { | |
277 | 278 | let ONEMULT = toString(MULT8) | |
278 | 279 | let ONE = "1" | |
279 | 280 | let factoryContract = readFactoryAddressOrFail() | |
280 | 281 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
281 | 282 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
282 | 283 | let emissionContract = getEmissionAddressOrFail(factoryCfg) | |
283 | 284 | let wxEmissionPerBlock = getIntOrFail(emissionContract, keyEmissionRatePerBlockCurrent()) | |
284 | 285 | let emissionStartBlock = getIntOrFail(emissionContract, keyEmissionStartBlock()) | |
285 | 286 | let passedBlocks = if ((emissionStartBlock > height)) | |
286 | 287 | then 0 | |
287 | 288 | else (height - emissionStartBlock) | |
288 | 289 | let teamEmDuration = (1440 * 365) | |
289 | 290 | let teamEmMax = (201000000 * MULT8) | |
290 | 291 | let teamEm = if ((passedBlocks > teamEmDuration)) | |
291 | 292 | then teamEmMax | |
292 | 293 | else fraction(teamEmMax, passedBlocks, teamEmDuration) | |
293 | 294 | let totalWxReleased = ((wxEmissionPerBlock * passedBlocks) + teamEm) | |
294 | 295 | let totalWxLocked = getIntOrZero(boostingContract, keyBoostingLockParamTotalAmount()) | |
295 | 296 | let locksDurationSumInBlocks = getIntOrZero(boostingContract, keyBoostingStatsLocksDurationSumInBlocks()) | |
296 | 297 | let locksCount = getIntOrZero(boostingContract, keyBoostingStatsLocksCount()) | |
297 | 298 | $Tuple2(nil, makeString(["%d%d%d%d", toString(totalWxReleased), toString(totalWxLocked), toString(locksDurationSumInBlocks), toString(locksCount)], SEP)) | |
298 | 299 | } | |
299 | 300 | ||
300 | 301 | ||
301 | 302 | ||
302 | 303 | @Callable(i) | |
303 | 304 | func lpStatsREADONLY (lpAsset) = { | |
304 | 305 | let factoryAddress = readFactoryAddressOrFail() | |
305 | 306 | let poolAddress = addressFromStringValue(getStringByAddressOrFail(factoryAddress, keyFactoryLpAssetToPoolContractAddress(lpAsset))) | |
306 | 307 | let cfg = if ($isInstanceOf(invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil), "List[Any]")) | |
307 | 308 | then invoke(poolAddress, "getPoolConfigWrapperREADONLY", nil, nil) | |
308 | 309 | else throw("Couldn't cast Any to List[Any]") | |
309 | 310 | let lpAssetId = fromBase58String(if ($isInstanceOf(cfg[idxPoolLPAssetId], "String")) | |
310 | 311 | then cfg[idxPoolLPAssetId] | |
311 | 312 | else throw("Couldn't cast Any to String")) | |
312 | 313 | let amtAssetId = if ($isInstanceOf(cfg[idxAmtAssetId], "String")) | |
313 | 314 | then cfg[idxAmtAssetId] | |
314 | 315 | else throw("Couldn't cast Any to String") | |
315 | 316 | let priceAssetId = if ($isInstanceOf(cfg[idxPriceAssetId], "String")) | |
316 | 317 | then cfg[idxPriceAssetId] | |
317 | 318 | else throw("Couldn't cast Any to String") | |
318 | 319 | let iAmtAssetId = if ($isInstanceOf(cfg[idxIAmtAssetId], "String")) | |
319 | 320 | then cfg[idxIAmtAssetId] | |
320 | 321 | else throw("Couldn't cast Any to String") | |
321 | 322 | let iPriceAssetId = if ($isInstanceOf(cfg[idxIPriceAssetId], "String")) | |
322 | 323 | then cfg[idxIPriceAssetId] | |
323 | 324 | else throw("Couldn't cast Any to String") | |
324 | 325 | let amtAssetDcm = parseIntValue(if ($isInstanceOf(cfg[idxAmtAssetDcm], "String")) | |
325 | 326 | then cfg[idxAmtAssetDcm] | |
326 | 327 | else throw("Couldn't cast Any to String")) | |
327 | 328 | let priceAssetDcm = parseIntValue(if ($isInstanceOf(cfg[idxPriceAssetDcm], "String")) | |
328 | 329 | then cfg[idxPriceAssetDcm] | |
329 | 330 | else throw("Couldn't cast Any to String")) | |
330 | 331 | let poolLPBalance = valueOrErrorMessage(assetInfo(lpAssetId), (("Asset " + toBase58String(lpAssetId)) + " doesn't exist")).quantity | |
331 | 332 | let accAmtAssetBalance = if ($isInstanceOf(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil), "Int")) | |
332 | 333 | then invoke(poolAddress, "getAccBalanceWrapperREADONLY", [amtAssetId], nil) | |
333 | 334 | else throw("Couldn't cast Any to Int") | |
334 | 335 | let accPriceAssetBalance = if ($isInstanceOf(invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil), "Int")) | |
335 | 336 | then invoke(poolAddress, "getAccBalanceWrapperREADONLY", [priceAssetId], nil) | |
336 | 337 | else throw("Couldn't cast Any to Int") | |
337 | 338 | let pricesList = if ($isInstanceOf(invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil), "List[Any]")) | |
338 | 339 | then invoke(poolAddress, "calcPricesWrapperREADONLY", [accAmtAssetBalance, accPriceAssetBalance, poolLPBalance], nil) | |
339 | 340 | else throw("Couldn't cast Any to List[Any]") | |
340 | 341 | let curPrice = 0 | |
341 | 342 | let lpAmtAssetShare = if ($isInstanceOf(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil), "Int")) | |
342 | 343 | then invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[1], MULT8], nil) | |
343 | 344 | else throw("Couldn't cast Any to Int") | |
344 | 345 | let lpPriceAssetShare = if ($isInstanceOf(invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil), "Int")) | |
345 | 346 | then invoke(poolAddress, "fromX18WrapperREADONLY", [pricesList[2], MULT8], nil) | |
346 | 347 | else throw("Couldn't cast Any to Int") | |
347 | 348 | let poolWeight = getIntegerValue(factoryAddress, keyFactoryPoolWeight(toString(poolAddress))) | |
348 | 349 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(accAmtAssetBalance), toString(accPriceAssetBalance), toString(poolLPBalance), toString(curPrice), toString(lpAmtAssetShare), toString(lpPriceAssetShare), toString(poolWeight)], SEP)) | |
349 | 350 | } | |
350 | 351 | ||
351 | 352 | ||
352 | 353 | ||
353 | 354 | @Callable(i) | |
354 | 355 | func gwxUserInfoREADONLY (userAddress) = { | |
355 | 356 | let factoryContract = readFactoryAddressOrFail() | |
356 | 357 | let factoryCfg = readFactoryCfgOrFail(factoryContract) | |
357 | 358 | let boostingContract = getBoostingAddressOrFail(factoryCfg) | |
358 | 359 | let gwxUserInfoLIST = if ($isInstanceOf(invoke(boostingContract, "gwxUserInfoREADONLY", [userAddress], nil), "List[Any]")) | |
359 | 360 | then invoke(boostingContract, "gwxUserInfoREADONLY", [userAddress], nil) | |
360 | 361 | else throw("Couldn't cast Any to List[Any]") | |
361 | 362 | let gwxAmount = if ($isInstanceOf(gwxUserInfoLIST[0], "Int")) | |
362 | 363 | then gwxUserInfoLIST[0] | |
363 | 364 | else throw("Couldn't cast Any to Int") | |
364 | 365 | $Tuple2(nil, makeString(["%d", toString(gwxAmount)], SEP)) | |
365 | 366 | } | |
366 | 367 | ||
367 | 368 |
github/deemru/w8io/169f3d6 58.29 ms ◑