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