tx · GxrsQLWw4f86vBvLCwJ78nSqkwSRUjgmVToU1mDieNR4 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.04000000 Waves 2022.08.05 07:13 [2170690] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "GxrsQLWw4f86vBvLCwJ78nSqkwSRUjgmVToU1mDieNR4", "fee": 4000000, "feeAssetId": null, "timestamp": 1659672813428, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "4hbLXKtAbXTK3t9Rq7uYV16uhmhsWk4rr4AKAeoHsyEgW2AZ8P6HVJSm4fF3LGH2JVTjL66AFg5PU3wDzs4de97k" ], "script": "base64:AAIFAAAAAAAAAEMIAhIFCgMICAgSABIDCgEIEgQKAggBEgASAwoBARIFCgMIAQgSAwoBCBIGCgQBAQEBEgQKAgEBEgQKAgEIEgASABIAAAAAbAAAAAALcmV2aXNpb25OdW0CAAAAAAAAAAAGRVVMRVI4AAAAAAAQM8TWAAAAAAVNVUxUNgAAAAAAAA9CQAAAAAAGTVVMVFg2CQABNgAAAAEAAAAAAAAPQkAAAAAABU1VTFQ4AAAAAAAF9eEAAAAAAAZNVUxUWDgJAAE2AAAAAQAAAAAABfXhAAAAAAAGTVVMVDEyAAAAAOjUpRAAAAAAAAZNVUxUMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwAAAAAHV0FWRVNJRAkAAlkAAAABAgAAAAVXQVZFUwAAAAAPbk1ldHJpY0lkeFByaWNlAAAAAAAAAAAAAAAAABtuTWV0cmljSWR4VXNkbkxvY2tlZEJhbGFuY2UAAAAAAAAAAAEAAAAAHG5NZXRyaWNJZHhXYXZlc0xvY2tlZEJhbGFuY2UAAAAAAAAAAAIAAAAAEW5NZXRyaWNJZHhSZXNlcn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AAAAAl9fCQAAAgAAAAEFAAAACHJlc3REYXRhAAAAAH471/Q=", "chainId": 84, "height": 2170690, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CS9qcqGSxg3aH1JorLGCvb2FwKUGGZopvLskNnsuu2hR Next: 6LCCbsXjkVk4TZuHor6GDyPE5VaWs6mZBKgTof4tSxS Diff:
Old | New | Differences | |
---|---|---|---|
463 | 463 | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
464 | 464 | let priceSurf2Waves0 = fraction(br0, MULT6, price) | |
465 | 465 | let priceSurf2Waves1 = fraction(br1, MULT6, price) | |
466 | - | let gsnbtRestV2Data = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil)) | |
467 | - | let votingPower = asInt(gsnbtRestV2Data[19]) | |
468 | - | let votingPowerMax = asInt(gsnbtRestV2Data[21]) | |
469 | - | let votingPowerEta = asInt(gsnbtRestV2Data[23]) | |
470 | - | let gsnbtRestV2DataNEW = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
471 | - | let votingPowerNEW = asInt(gsnbtRestV2DataNEW[19]) | |
472 | - | let votingPowerMaxNEW = asInt(gsnbtRestV2DataNEW[21]) | |
473 | - | let votingPowerEtaNEW = asInt(gsnbtRestV2DataNEW[23]) | |
466 | + | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
467 | + | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
468 | + | let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22]) | |
469 | + | let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23]) | |
474 | 470 | let mergedVotingPowerEta = votingPowerEtaNEW | |
475 | 471 | let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax) | |
476 | 472 | let rest = asInt(surfResult[bFuncIdxRest]) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let revisionNum = "" | |
5 | 5 | ||
6 | 6 | let EULER8 = 271828182 | |
7 | 7 | ||
8 | 8 | let MULT6 = 1000000 | |
9 | 9 | ||
10 | 10 | let MULTX6 = toBigInt(1000000) | |
11 | 11 | ||
12 | 12 | let MULT8 = 100000000 | |
13 | 13 | ||
14 | 14 | let MULTX8 = toBigInt(100000000) | |
15 | 15 | ||
16 | 16 | let MULT12 = 1000000000000 | |
17 | 17 | ||
18 | 18 | let MULT18 = toBigInt(1000000000000000000) | |
19 | 19 | ||
20 | 20 | let SEP = "__" | |
21 | 21 | ||
22 | 22 | let WAVESID = fromBase58String("WAVES") | |
23 | 23 | ||
24 | 24 | let nMetricIdxPrice = 0 | |
25 | 25 | ||
26 | 26 | let nMetricIdxUsdnLockedBalance = 1 | |
27 | 27 | ||
28 | 28 | let nMetricIdxWavesLockedBalance = 2 | |
29 | 29 | ||
30 | 30 | let nMetricIdxReserve = 3 | |
31 | 31 | ||
32 | 32 | let nMetricIdxReserveInUsdn = 4 | |
33 | 33 | ||
34 | 34 | let nMetricIdxUsdnSupply = 5 | |
35 | 35 | ||
36 | 36 | let nMetricIdxSurplus = 6 | |
37 | 37 | ||
38 | 38 | let nMetricIdxSurplusPercent = 7 | |
39 | 39 | ||
40 | 40 | let nMetricIdxBR = 8 | |
41 | 41 | ||
42 | 42 | let nMetricIdxNsbtSupply = 9 | |
43 | 43 | ||
44 | 44 | let nMetricIdxMaxNsbtSupply = 10 | |
45 | 45 | ||
46 | 46 | let nMetricIdxSurfSupply = 11 | |
47 | 47 | ||
48 | 48 | let bFuncIdxSurf = 0 | |
49 | 49 | ||
50 | 50 | let bFuncIdxWaves = 1 | |
51 | 51 | ||
52 | 52 | let bFuncIdxUsdn = 2 | |
53 | 53 | ||
54 | 54 | let bFuncIdxReserveStart = 3 | |
55 | 55 | ||
56 | 56 | let bFuncIdxSupplyStart = 4 | |
57 | 57 | ||
58 | 58 | let bFuncIdxBRStart = 5 | |
59 | 59 | ||
60 | 60 | let bFuncIdxReserveEnd = 6 | |
61 | 61 | ||
62 | 62 | let bFuncIdxSupplyEnd = 7 | |
63 | 63 | ||
64 | 64 | let bFuncIdxBREnd = 8 | |
65 | 65 | ||
66 | 66 | let bFuncIdxRest = 9 | |
67 | 67 | ||
68 | 68 | let bFuncIdxWavesPrice = 10 | |
69 | 69 | ||
70 | 70 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyNsbtAssetId () = "bond_asset_id" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keySurfAssetId () = "surf_asset_id" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyBalanceLocked () = "balance_lock_" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyMinWavesSwapAmount () = "min_waves_swap_amount" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyWavesOutFeePart () = "wavesOut_swap_feePart" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keySwapAmountAParam () = "%s%s__config__swapAParam" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keySwapAmountBParam () = "%s%s__config__swapBParam" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyMathContract () = "%s__mathContract" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyBalanceWavesLockInterval () = "balance_waves_lock_interval" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyPrice () = "price" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func keyHalfLife () = "%s__halfLife" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func keyMinLockAmount () = "%s__minLockAmount" | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy" | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func keyMinNsbtSell () = "min_nsbt_sell" | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func convertNeutrinoToWaves (amount,price) = fraction(amount, MULT8, price) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func convertWavesToNeutrino (amount,price) = fraction(amount, price, MULT8) | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func asAnyList (val) = match val { | |
155 | 155 | case valAnyList: List[Any] => | |
156 | 156 | valAnyList | |
157 | 157 | case _ => | |
158 | 158 | throw("fail to cast into List[Any]") | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func asInt (val) = match val { | |
163 | 163 | case valInt: Int => | |
164 | 164 | valInt | |
165 | 165 | case _ => | |
166 | 166 | throw("fail to cast into Int") | |
167 | 167 | } | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func asString (val) = match val { | |
171 | 171 | case valStr: String => | |
172 | 172 | valStr | |
173 | 173 | case _ => | |
174 | 174 | throw("fail to cast into String") | |
175 | 175 | } | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func asTuple2Ints (val) = match val { | |
179 | 179 | case v: (Int, Int) => | |
180 | 180 | v | |
181 | 181 | case _ => | |
182 | 182 | throw("fail to cast into Tuple2 ints") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func asSwapParamsSTRUCT (val) = match val { | |
187 | 187 | case struct: (Int, Int, Int, Int, Int) => | |
188 | 188 | struct | |
189 | 189 | case _ => | |
190 | 190 | throw("fail to cast into Int") | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func toTimestamp (start) = if ((0 > start)) | |
195 | 195 | then -1 | |
196 | 196 | else match blockInfoByHeight(start) { | |
197 | 197 | case block: BlockInfo => | |
198 | 198 | block.timestamp | |
199 | 199 | case _ => | |
200 | 200 | -1 | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), MULT18, toBigInt(origScaleMult)) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), MULT18)) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | let IdxControlCfgNeutrinoDapp = 1 | |
211 | 211 | ||
212 | 212 | let IdxControlCfgAuctionDapp = 2 | |
213 | 213 | ||
214 | 214 | let IdxControlCfgRpdDapp = 3 | |
215 | 215 | ||
216 | 216 | let IdxControlCfgMathDapp = 4 | |
217 | 217 | ||
218 | 218 | let IdxControlCfgLiquidationDapp = 5 | |
219 | 219 | ||
220 | 220 | let IdxControlCfgRestDapp = 6 | |
221 | 221 | ||
222 | 222 | let IdxControlCfgNodeRegistryDapp = 7 | |
223 | 223 | ||
224 | 224 | let IdxControlCfgNsbtStakingDapp = 8 | |
225 | 225 | ||
226 | 226 | let IdxControlCfgMediatorDapp = 9 | |
227 | 227 | ||
228 | 228 | let IdxControlCfgSurfStakingDapp = 10 | |
229 | 229 | ||
230 | 230 | let IdxControlCfgGnsbtControllerDapp = 11 | |
231 | 231 | ||
232 | 232 | let IdxControlCfgRestV2Dapp = 12 | |
233 | 233 | ||
234 | 234 | func keyControlAddress () = "%s%s__config__controlAddress" | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyControlCfg () = "%s__controlConfig" | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func readControlCfgOrFail (control) = split(getStringOrFail(control, keyControlCfg()), SEP) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | func getContractAddressOrFail (controlCfg,idx) = valueOrErrorMessage(addressFromString(controlCfg[idx]), ("Control cfg doesn't contain address at index " + toString(idx))) | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | let controlContract = addressFromStringValue(valueOrElse(getString(this, keyControlAddress()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
247 | 247 | ||
248 | 248 | let controlCfg = readControlCfgOrFail(controlContract) | |
249 | 249 | ||
250 | 250 | let mathContract = getContractAddressOrFail(controlCfg, IdxControlCfgMathDapp) | |
251 | 251 | ||
252 | 252 | let neutrinoContract = getContractAddressOrFail(controlCfg, IdxControlCfgNeutrinoDapp) | |
253 | 253 | ||
254 | 254 | let auctionContract = getContractAddressOrFail(controlCfg, IdxControlCfgAuctionDapp) | |
255 | 255 | ||
256 | 256 | let liquidationContract = getContractAddressOrFail(controlCfg, IdxControlCfgLiquidationDapp) | |
257 | 257 | ||
258 | 258 | let rpdContract = getContractAddressOrFail(controlCfg, IdxControlCfgRpdDapp) | |
259 | 259 | ||
260 | 260 | let nsbtStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgNsbtStakingDapp) | |
261 | 261 | ||
262 | 262 | let surfStakingContract = getContractAddressOrFail(controlCfg, IdxControlCfgSurfStakingDapp) | |
263 | 263 | ||
264 | 264 | let gnsbtControllerContract = getContractAddressOrFail(controlCfg, IdxControlCfgGnsbtControllerDapp) | |
265 | 265 | ||
266 | 266 | let restV2Contract = getContractAddressOrFail(controlCfg, IdxControlCfgRestV2Dapp) | |
267 | 267 | ||
268 | 268 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
269 | 269 | ||
270 | 270 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
271 | 271 | ||
272 | 272 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyNsbtAssetId()) | |
273 | 273 | ||
274 | 274 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
275 | 275 | ||
276 | 276 | let surfAssetIdStr = getStringValue(auctionContract, keySurfAssetId()) | |
277 | 277 | ||
278 | 278 | let surfAssetId = fromBase58String(surfAssetIdStr) | |
279 | 279 | ||
280 | 280 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func minWavesForSurfBuy () = asInt(invoke(auctionContract, "minWavesAmountSurfBuySYSREADONLY", nil, nil)) | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func minUsdnForSurfBuy () = asInt(invoke(auctionContract, "minUsdnAmountSurfBuySYSREADONLY", nil, nil)) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func privateNsbtPriceREST () = { | |
293 | 293 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
294 | 294 | let nsbt2usdnPrice = asInt(prices[0]) | |
295 | 295 | let nsbt2wavesPrice = asInt(prices[1]) | |
296 | 296 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func getLockedOnRpd (addrStr,assetIdStr) = { | |
301 | 301 | let key = makeString(["rpd_balance", assetIdStr, addrStr], "_") | |
302 | 302 | valueOrElse(getInteger(rpdContract, key), 0) | |
303 | 303 | } | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | @Callable(i) | |
307 | 307 | func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
308 | 308 | then throw("not authorized") | |
309 | 309 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | 313 | @Callable(i) | |
314 | 314 | func neutrinoStatsREADONLY () = { | |
315 | 315 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
316 | 316 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
317 | 317 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
318 | 318 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
319 | 319 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
320 | 320 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
321 | 321 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
322 | 322 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
323 | 323 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
324 | 324 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
325 | 325 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
326 | 326 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
327 | 327 | let maxNsbtSupply = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
328 | 328 | let nsbt2usdnPrice = asInt(prices[0]) | |
329 | 329 | let nsbt2wavesPrice = asInt(prices[1]) | |
330 | 330 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
331 | 331 | let minNsbtsell = minNsbtForSell() | |
332 | 332 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
333 | 333 | let maxWaves2BuySurf = (fraction(neutrinoSupply, MULT8, currentPrice) - reservesInWaves) | |
334 | 334 | let maxUsdn2BuySurf = (neutrinoSupply - reservesInUsdn) | |
335 | 335 | let surfPriceInUsdn = BR | |
336 | 336 | let surfPriceInWaves = fraction(BR, MULT6, currentPrice) | |
337 | 337 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(maxNsbtSupply), toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(maxWaves2BuySurf), toString(maxUsdn2BuySurf), toString(surfPriceInUsdn), toString(surfPriceInWaves)], SEP)) | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | ||
342 | 342 | @Callable(i) | |
343 | 343 | func swapInfoREADONLY (userAddressStrOpt) = { | |
344 | 344 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
345 | 345 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
346 | 346 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
347 | 347 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
348 | 348 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
349 | 349 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
350 | 350 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
351 | 351 | let $t01146111625 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
352 | 352 | let swapLimitMaxUsdn = $t01146111625._1 | |
353 | 353 | let swapLimitSpentUsdn = $t01146111625._2 | |
354 | 354 | let blcks2LmtReset = $t01146111625._3 | |
355 | 355 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
356 | 356 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(currentPrice), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(usdnSwapDelayDuration), toString(wavesSwapDelayDuration), toString(blcks2LmtReset), toString(swapLimitMaxWaves), toString(swapLimitMaxUsdn), toString(swapLimitSpentUsdn)], SEP)) | |
357 | 357 | } | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | ||
361 | 361 | @Callable(i) | |
362 | 362 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
363 | 363 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
364 | 364 | let $t01263112814 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
365 | 365 | let limitMaxUsdn = $t01263112814._1 | |
366 | 366 | let limitSpent = $t01263112814._2 | |
367 | 367 | let blcks2LmtReset = $t01263112814._3 | |
368 | 368 | let gnsbtAmt = $t01263112814._4 | |
369 | 369 | let gnsbtAmtTotal = $t01263112814._5 | |
370 | 370 | let $t01281813026 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
371 | 371 | let limitMaxUsdnNEW = $t01281813026._1 | |
372 | 372 | let limitSpentNEW = $t01281813026._2 | |
373 | 373 | let blcks2LmtResetNEW = $t01281813026._3 | |
374 | 374 | let gnsbtAmtNEW = $t01281813026._4 | |
375 | 375 | let gnsbtAmtTotalNEW = $t01281813026._5 | |
376 | 376 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
377 | 377 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
378 | 378 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
379 | 379 | then fraction((gnsbtAmt * 100), MULT12, gnsbtAmtTotal) | |
380 | 380 | else 0 | |
381 | 381 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
382 | 382 | then fraction((gnsbtAmtNEW * 100), MULT12, gnsbtAmtTotalNEW) | |
383 | 383 | else 0 | |
384 | 384 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
385 | 385 | let nsbtAmt = gnsbtAmt | |
386 | 386 | let nsbtAmtNew = gnsbtAmtNEW | |
387 | 387 | let nsbtAmtStakedTotal = gnsbtAmtTotal | |
388 | 388 | let nsbtAmtStakedTotalNew = gnsbtAmtTotalNEW | |
389 | 389 | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
390 | 390 | let isEmptyNsbtBalance = if ((gnsbtAmt == 0)) | |
391 | 391 | then (gnsbtAmtNEW == 0) | |
392 | 392 | else false | |
393 | 393 | let startHeight = if (isEmptyNsbtBalance) | |
394 | 394 | then -1 | |
395 | 395 | else asInt(nsbtData[2]) | |
396 | 396 | let startTimestamp = toTimestamp(startHeight) | |
397 | 397 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
398 | 398 | let startHeightNew = if (isEmptyNsbtBalance) | |
399 | 399 | then -1 | |
400 | 400 | else asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
401 | 401 | let startTimestampNew = toTimestamp(startHeightNew) | |
402 | 402 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d%d%d%d%d%d%d", toString(gnsbtAmt), toString(gnsbtAmtNEW), toString(gnsbtShare), toString(gnsbtShareNEW), toString(limitMaxUsdn), toString(limitMaxWaves), toString(limitMaxUsdnNEW), toString(limitMaxWavesNEW), rewardInfo, toString(nsbtAmt), toString(nsbtAmtNew), toString(nsbtAmtStakedTotal), toString(nsbtAmtStakedTotalNew), toString(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP)) | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | ||
407 | 407 | @Callable(i) | |
408 | 408 | func neutrinoConfigREADONLY () = { | |
409 | 409 | let limitParamA = getIntegerValue(mathContract, keySwapAmountAParam()) | |
410 | 410 | let limitParamB = getIntegerValue(mathContract, keySwapAmountBParam()) | |
411 | 411 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
412 | 412 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
413 | 413 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
414 | 414 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
415 | 415 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
416 | 416 | let minNsbtsell = minNsbtForSell() | |
417 | 417 | let minNsbtLockAmt = getIntegerValue(nsbtStakingContract, keyMinLockAmount()) | |
418 | 418 | let halfLife = getIntegerValue(nsbtStakingContract, keyHalfLife()) | |
419 | 419 | let minWaves4SurfBuy = minWavesForSurfBuy() | |
420 | 420 | let minUsdn4SurfBuy = minUsdnForSurfBuy() | |
421 | 421 | let surfStakingCfg = asAnyList(invoke(surfStakingContract, "configSYSREADONLY", nil, nil)) | |
422 | 422 | let minSurfStakeAmt = asInt(surfStakingCfg[0]) | |
423 | 423 | let gnsbtFromSurfCoeff = asInt(surfStakingCfg[1]) | |
424 | 424 | let surfVotingPowerRestrictivePeriod = asInt(surfStakingCfg[2]) | |
425 | 425 | let brToStartSurfTransformation = asInt(surfStakingCfg[3]) | |
426 | 426 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(limitParamA), toString(limitParamB), toString(minWavesSwapAmt), toString(minUsdnSwapAmt), toString(waves2UsdnFee), toString(usdn2WavesFee), toString(minWaves4NsbtBuy), toString(minNsbtsell), toString(minNsbtLockAmt), toString(halfLife), toString(minWaves4SurfBuy), toString(minUsdn4SurfBuy), toString(minSurfStakeAmt), toString(gnsbtFromSurfCoeff), toString(surfVotingPowerRestrictivePeriod), toString(brToStartSurfTransformation)], SEP)) | |
427 | 427 | } | |
428 | 428 | ||
429 | 429 | ||
430 | 430 | ||
431 | 431 | @Callable(i) | |
432 | 432 | func buyNsbtREADONLY (wavesPay) = { | |
433 | 433 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
434 | 434 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
435 | 435 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
436 | 436 | else { | |
437 | 437 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
438 | 438 | if ((curveResult == curveResult)) | |
439 | 439 | then { | |
440 | 440 | let nsbtAmount = asInt(curveResult[0]) | |
441 | 441 | if ((0 >= nsbtAmount)) | |
442 | 442 | then throw("nsbtAmount <= 0") | |
443 | 443 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
444 | 444 | } | |
445 | 445 | else throw("Strict value is not equal to itself.") | |
446 | 446 | } | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(i) | |
452 | 452 | func buySurfREADONLY (userAddressStrOpt,amount,assetIdStr) = { | |
453 | 453 | let assetId = fromBase58String(assetIdStr) | |
454 | 454 | let surfResult = asAnyList(invoke(mathContract, "surfFunctionREADONLY", [amount, assetId], nil)) | |
455 | 455 | let surfAmount = asInt(surfResult[bFuncIdxSurf]) | |
456 | 456 | let gNsbtAmount = asInt(invoke(gnsbtControllerContract, "gnsbtFromSurfSYSREADONLY", [surfAmount], nil)) | |
457 | 457 | let limitOld = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil))._1 | |
458 | 458 | let limitNew = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, gNsbtAmount], nil))._1 | |
459 | 459 | let price = asInt(surfResult[bFuncIdxWavesPrice]) | |
460 | 460 | let additionalLimitUsdn = (limitNew - limitOld) | |
461 | 461 | let additionalLimitWaves = fraction(additionalLimitUsdn, MULT8, price) | |
462 | 462 | let br0 = asInt(surfResult[bFuncIdxBRStart]) | |
463 | 463 | let br1 = asInt(surfResult[bFuncIdxBREnd]) | |
464 | 464 | let priceSurf2Waves0 = fraction(br0, MULT6, price) | |
465 | 465 | let priceSurf2Waves1 = fraction(br1, MULT6, price) | |
466 | - | let gsnbtRestV2Data = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, 0], nil)) | |
467 | - | let votingPower = asInt(gsnbtRestV2Data[19]) | |
468 | - | let votingPowerMax = asInt(gsnbtRestV2Data[21]) | |
469 | - | let votingPowerEta = asInt(gsnbtRestV2Data[23]) | |
470 | - | let gsnbtRestV2DataNEW = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
471 | - | let votingPowerNEW = asInt(gsnbtRestV2DataNEW[19]) | |
472 | - | let votingPowerMaxNEW = asInt(gsnbtRestV2DataNEW[21]) | |
473 | - | let votingPowerEtaNEW = asInt(gsnbtRestV2DataNEW[23]) | |
466 | + | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStrOpt, 0, surfAmount], nil)) | |
467 | + | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
468 | + | let votingPowerMaxNEW = asInt(gsnbtRestV2DATA[22]) | |
469 | + | let votingPowerEtaNEW = asInt(gsnbtRestV2DATA[23]) | |
474 | 470 | let mergedVotingPowerEta = votingPowerEtaNEW | |
475 | 471 | let maxVotingPowerDiff = (votingPowerMaxNEW - votingPowerMax) | |
476 | 472 | let rest = asInt(surfResult[bFuncIdxRest]) | |
477 | 473 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d", toString(surfAmount), toString(gNsbtAmount), toString(additionalLimitUsdn), toString(additionalLimitWaves), toString(br0), toString(br1), toString(priceSurf2Waves0), toString(priceSurf2Waves1), toString(mergedVotingPowerEta), toString(maxVotingPowerDiff), toString(rest)], SEP)) | |
478 | 474 | } | |
479 | 475 | ||
480 | 476 | ||
481 | 477 | ||
482 | 478 | @Callable(i) | |
483 | 479 | func walletInfoREADONLY (userAddressStr) = { | |
484 | 480 | let addr = addressFromStringValue(userAddressStr) | |
485 | 481 | let balance = wavesBalance(addr) | |
486 | 482 | let usdnLocked = getLockedOnRpd(userAddressStr, neutrinoAssetIdString) | |
487 | 483 | let nsbtLockedOld = getLockedOnRpd(userAddressStr, nsbtAssetIdStr) | |
488 | 484 | let gnsbtData = asAnyList(invoke(gnsbtControllerContract, "gnsbtInfoSYSREADONLY", [userAddressStr, 0, 0], nil)) | |
489 | 485 | let nsbtData = asAnyList(gnsbtData[2]) | |
490 | 486 | let nsbtUser = asInt(nsbtData[0]) | |
491 | 487 | let nsbtTotal = asInt(nsbtData[1]) | |
492 | 488 | let gNsbtFromNsbtUser = asInt(nsbtData[2]) | |
493 | 489 | let gNsbtFromNsbtTotal = asInt(nsbtData[3]) | |
494 | 490 | let surfData = asAnyList(gnsbtData[3]) | |
495 | 491 | let surfUser = asInt(surfData[0]) | |
496 | 492 | let surfTotal = asInt(surfData[1]) | |
497 | 493 | let gNsbtFromSurfUser = asInt(surfData[2]) | |
498 | 494 | let gNsbtFromSurfTotal = asInt(surfData[3]) | |
499 | 495 | let availableUsdnToClaimFromSurf = 0 | |
500 | 496 | let alreadyClaimedUsdnFromSurf = 0 | |
501 | 497 | let gsnbtRestV2DATA = asAnyList(invoke(restV2Contract, "gnsbtInfoINTERNAL", [userAddressStr, 0, 0], nil)) | |
502 | 498 | let votingPower = asInt(gsnbtRestV2DATA[19]) | |
503 | 499 | let votingPowerMax = asInt(gsnbtRestV2DATA[21]) | |
504 | 500 | let votingPowerEta = asInt(gsnbtRestV2DATA[23]) | |
505 | 501 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d", toString(balance.regular), toString(balance.available), toString(balance.generating), toString(balance.effective), toString(height), toString(usdnLocked), toString(nsbtLockedOld), toString(nsbtUser), toString(gNsbtFromNsbtUser), toString(gNsbtFromSurfUser), toString(surfUser), toString(votingPower), toString(votingPowerMax), toString(votingPowerEta), toString(availableUsdnToClaimFromSurf), toString(alreadyClaimedUsdnFromSurf), toString(gNsbtFromNsbtTotal), toString(gNsbtFromSurfTotal)], SEP)) | |
506 | 502 | } | |
507 | 503 | ||
508 | 504 | ||
509 | 505 | ||
510 | 506 | @Callable(i) | |
511 | 507 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
512 | 508 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
513 | 509 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
514 | 510 | $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
515 | 511 | } | |
516 | 512 | ||
517 | 513 | ||
518 | 514 | ||
519 | 515 | @Callable(i) | |
520 | 516 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
521 | 517 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
522 | 518 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
523 | 519 | if ((a == a)) | |
524 | 520 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
525 | 521 | else throw("Strict value is not equal to itself.") | |
526 | 522 | } | |
527 | 523 | ||
528 | 524 | ||
529 | 525 | ||
530 | 526 | @Callable(i) | |
531 | 527 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
532 | 528 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
533 | 529 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
534 | 530 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
535 | 531 | if ((a == a)) | |
536 | 532 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
537 | 533 | else throw("Strict value is not equal to itself.") | |
538 | 534 | } | |
539 | 535 | ||
540 | 536 | ||
541 | 537 | ||
542 | 538 | @Callable(i) | |
543 | 539 | func neutrinoStateREST () = { | |
544 | 540 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
545 | 541 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
546 | 542 | let neutrinoLockedBalance = asInt(neutrinoMetrics[nMetricIdxUsdnLockedBalance]) | |
547 | 543 | let wavesLockedBalance = asInt(neutrinoMetrics[nMetricIdxWavesLockedBalance]) | |
548 | 544 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
549 | 545 | let reservesInUsdn = asInt(neutrinoMetrics[nMetricIdxReserveInUsdn]) | |
550 | 546 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
551 | 547 | let surplus = asInt(neutrinoMetrics[nMetricIdxSurplus]) | |
552 | 548 | let surplusPercent = asInt(neutrinoMetrics[nMetricIdxSurplusPercent]) | |
553 | 549 | let BR = asInt(neutrinoMetrics[nMetricIdxBR]) | |
554 | 550 | let nsbtSupply = asInt(neutrinoMetrics[nMetricIdxNsbtSupply]) | |
555 | 551 | let nsbtSupplyMax = asInt(neutrinoMetrics[nMetricIdxMaxNsbtSupply]) | |
556 | 552 | let surfSupply = asInt(neutrinoMetrics[nMetricIdxSurfSupply]) | |
557 | 553 | throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply), toString(nsbtSupplyMax), toString(surfSupply)], "__")) | |
558 | 554 | } | |
559 | 555 | ||
560 | 556 | ||
561 | 557 | ||
562 | 558 | @Callable(i) | |
563 | 559 | func nsbtPriceREST () = { | |
564 | 560 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
565 | 561 | let nsbt2usdnPrice = asInt(prices[0]) | |
566 | 562 | let nsbt2wavesPrice = asInt(prices[1]) | |
567 | 563 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
568 | 564 | throw(restData) | |
569 | 565 | } | |
570 | 566 | ||
571 | 567 | ||
572 | 568 | ||
573 | 569 | @Callable(i) | |
574 | 570 | func surfPriceREST () = { | |
575 | 571 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
576 | 572 | let currentPrice = asInt(neutrinoMetrics[nMetricIdxPrice]) | |
577 | 573 | let reservesInWaves = asInt(neutrinoMetrics[nMetricIdxReserve]) | |
578 | 574 | let neutrinoSupply = asInt(neutrinoMetrics[nMetricIdxUsdnSupply]) | |
579 | 575 | let surfPriceInUsdn = fraction(reservesInWaves, currentPrice, neutrinoSupply) | |
580 | 576 | let surfPriceInWaves = fraction(reservesInWaves, MULT8, neutrinoSupply) | |
581 | 577 | let restData = makeString(["startSurfPriceREST", toString(surfPriceInUsdn), toString(surfPriceInWaves), "endSurfPriceREST"], "__") | |
582 | 578 | throw(restData) | |
583 | 579 | } | |
584 | 580 | ||
585 | 581 |
github/deemru/w8io/026f985 72.27 ms ◑