tx · Dkk7CTymsFSUhYzPxZirVwDntWaSjdqxrZpuPPHp1w4c 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.01400000 Waves 2022.04.25 19:25 [2024258] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "Dkk7CTymsFSUhYzPxZirVwDntWaSjdqxrZpuPPHp1w4c", "fee": 1400000, "feeAssetId": null, "timestamp": 1650903964572, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "3xbcYQxHGgY8BW1qK8NquetxjNKKjzvSiRPt66y4KUaQC8ESN29qvgMJjnhpA7CwkrLoJeDvhgwsLWKqKjCSFH69" ], "script": "base64:AAIFAAAAAAAAADMIAhIFCgMICAgSABIDCgEIEgQKAggBEgMKAQESBgoEAQEBARIECgIBARIECgIBCBIAEgAAAAA9AAAAAAtyZXZpc2lvbk51bQIAAAAoNTQ4ZjkyNjQyNmE2OWYwN2E4ODZhNWQ4YWIyNjc1MzAyN2UxNjdhMAAAAAAIUFJJQ0VMRVQAAAAAAAAPQkAAAAAACU1VTFRTQ0FMRQAAAAAAAAAACAAAAAALRVVMRVJOVU1CRVIAAAAAABAzxNYAAAAABnNjYWxlNgAAAAAAAA9CQAAAAAAMc2NhbGU2QmlnSW50CQABNgAAAAEAAAAAAAAPQkAAAAAABnNjYWxlOAAAAAAABfXhAAAAAAAMc2NhbGU4QmlnSW50CQABNgAAAAEAAAAAAAX14QAAAAAAB3NjYWxlMTIAAAAA6NSlEAAAAAAAB3NjYWxlMTgJAAE2AAAAAQAN4Lazp2QAAAAAAAADU0VQAgAAAAJfXwEAAAASa2V5TmV1dHJpbm9BZGRyZXNzAAAAAAIAAAAdJXMlc19fY29uZmlnX19uZXV0cmlub0FkZHJlc3MBAAAAEmtleU5ldXRyaW5vQXN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JFQURPTkxZCQAETAAAAAIAAAAAAAAAAAAFAAAAA25pbAUAAAADbmlsBAAAAA5uc2J0MnVzZG5QcmljZQkBAAAABWFzSW50AAAAAQkAAZEAAAACBQAAAAZwcmljZXMAAAAAAAAAAAAEAAAAD25zYnQyd2F2ZXNQcmljZQkBAAAABWFzSW50AAAAAQkAAZEAAAACBQAAAAZwcmljZXMAAAAAAAAAAAEEAAAACHJlc3REYXRhCQAEuQAAAAIJAARMAAAAAgIAAAASc3RhcnROc2J0UHJpY2VSRVNUCQAETAAAAAIJAAGkAAAAAQUAAAAObnNidDJ1c2RuUHJpY2UJAARMAAAAAgkAAaQAAAABBQAAAA9uc2J0MndhdmVzUHJpY2UJAARMAAAAAgIAAAAQZW5kTnNidFByaWNlUkVTVAUAAAADbmlsAgAAAAJfXwkAAAIAAAABBQAAAAhyZXN0RGF0YQAAAADOIygn", "chainId": 84, "height": 2024258, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E66tzGmhKHuC8HUwDk4F31Scikhxs4cqURidJ4vCK1fg Next: DLVfKrSSsvNN6qUGmdJXYwtFzk3b1sg6TfC5qz5sVBmS Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
4 | + | let revisionNum = "548f926426a69f07a886a5d8ab26753027e167a0" | |
5 | 5 | ||
6 | 6 | let PRICELET = 1000000 | |
7 | 7 | ||
233 | 233 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
234 | 234 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
235 | 235 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
236 | - | let $ | |
237 | - | let swapLimitMaxUsdn = $ | |
238 | - | let swapLimitSpentUsdn = $ | |
239 | - | let blcks2LmtReset = $ | |
236 | + | let $t083728536 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
237 | + | let swapLimitMaxUsdn = $t083728536._1 | |
238 | + | let swapLimitSpentUsdn = $t083728536._2 | |
239 | + | let blcks2LmtReset = $t083728536._3 | |
240 | 240 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
241 | 241 | $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)) | |
242 | 242 | } | |
246 | 246 | @Callable(i) | |
247 | 247 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
248 | 248 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
249 | - | let $ | |
250 | - | let limitMaxUsdn = $ | |
251 | - | let limitSpent = $ | |
252 | - | let blcks2LmtReset = $ | |
253 | - | let gnsbtAmt = $ | |
254 | - | let gnsbtAmtTotal = $ | |
255 | - | let $ | |
256 | - | let limitMaxUsdnNEW = $ | |
257 | - | let limitSpentNEW = $ | |
258 | - | let blcks2LmtResetNEW = $ | |
259 | - | let gnsbtAmtNEW = $ | |
260 | - | let gnsbtAmtTotalNEW = $ | |
249 | + | let $t095429725 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
250 | + | let limitMaxUsdn = $t095429725._1 | |
251 | + | let limitSpent = $t095429725._2 | |
252 | + | let blcks2LmtReset = $t095429725._3 | |
253 | + | let gnsbtAmt = $t095429725._4 | |
254 | + | let gnsbtAmtTotal = $t095429725._5 | |
255 | + | let $t097299937 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
256 | + | let limitMaxUsdnNEW = $t097299937._1 | |
257 | + | let limitSpentNEW = $t097299937._2 | |
258 | + | let blcks2LmtResetNEW = $t097299937._3 | |
259 | + | let gnsbtAmtNEW = $t097299937._4 | |
260 | + | let gnsbtAmtTotalNEW = $t097299937._5 | |
261 | 261 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
262 | 262 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
263 | 263 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let revisionNum = "" | |
4 | + | let revisionNum = "548f926426a69f07a886a5d8ab26753027e167a0" | |
5 | 5 | ||
6 | 6 | let PRICELET = 1000000 | |
7 | 7 | ||
8 | 8 | let MULTSCALE = 8 | |
9 | 9 | ||
10 | 10 | let EULERNUMBER = 271828182 | |
11 | 11 | ||
12 | 12 | let scale6 = 1000000 | |
13 | 13 | ||
14 | 14 | let scale6BigInt = toBigInt(1000000) | |
15 | 15 | ||
16 | 16 | let scale8 = 100000000 | |
17 | 17 | ||
18 | 18 | let scale8BigInt = toBigInt(100000000) | |
19 | 19 | ||
20 | 20 | let scale12 = 1000000000000 | |
21 | 21 | ||
22 | 22 | let scale18 = toBigInt(1000000000000000000) | |
23 | 23 | ||
24 | 24 | let SEP = "__" | |
25 | 25 | ||
26 | 26 | func keyNeutrinoAddress () = "%s%s__config__neutrinoAddress" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func keyNeutrinoAssetId () = "neutrino_asset_id" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func keyLiquidationContractAddress () = "liquidation_contract" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func keyRPDContract () = "rpd_contract" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func keyAuctionContract () = "auction_contract" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func keyContolContract () = "control_contract" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func keyBondAssetId () = "bond_asset_id" | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func keyBalanceLocked () = "balance_lock_" | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func keyWavesLockedBalance () = (keyBalanceLocked() + "waves") | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func keyNeutrinoLockedBalance () = (keyBalanceLocked() + "neutrino") | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func keyMinWavesSwapAmount () = "min_waves_swap_amount" | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func keyMinNeutrinoSwapAmount () = "min_neutrino_swap_amount" | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func keyWavesOutFeePart () = "wavesOut_swap_feePart" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func keyNeutrinoOutFeePart () = "neutrinoOut_swap_feePart" | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func keyNsbtLockContract () = "%s__nsbtLockContract" | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func keyMathContract () = "%s__mathContract" | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func keyBalanceWavesLockInterval () = "balance_waves_lock_interval" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func keyBalanceNeutrinoLockInterval () = "balance_neutrino_lock_interval" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func keyPrice () = "price" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyLockParamStartBlock (userAddress) = makeString(["%s%s%s", "paramByUser", userAddress, "start"], SEP) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func keyHalfLife () = "%s__halfLife" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func keyMinLockAmount () = "%s__minLockAmount" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func keyMinWavesForNsbtBuy () = "min_waves_nsbt_buy" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func keyMinNsbtSell () = "min_nsbt_sell" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getIntOrFail (address,key) = valueOrErrorMessage(getInteger(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getBoolOrFail (address,key) = valueOrErrorMessage(getBoolean(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func convertNeutrinoToWaves (amount,price) = fraction(fraction(amount, PRICELET, price), scale8, scale6) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func convertWavesToNeutrino (amount,price) = fraction(fraction(amount, price, PRICELET), scale6, scale8) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func asAnyList (val) = match val { | |
114 | 114 | case valAnyList: List[Any] => | |
115 | 115 | valAnyList | |
116 | 116 | case _ => | |
117 | 117 | throw("fail to cast into List[Any]") | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func asInt (val) = match val { | |
122 | 122 | case valInt: Int => | |
123 | 123 | valInt | |
124 | 124 | case _ => | |
125 | 125 | throw("fail to cast into Int") | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func asString (val) = match val { | |
130 | 130 | case valStr: String => | |
131 | 131 | valStr | |
132 | 132 | case _ => | |
133 | 133 | throw("fail to cast into String") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func asTuple2Ints (val) = match val { | |
138 | 138 | case v: (Int, Int) => | |
139 | 139 | v | |
140 | 140 | case _ => | |
141 | 141 | throw("fail to cast into Tuple2 ints") | |
142 | 142 | } | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func asSwapParamsSTRUCT (val) = match val { | |
146 | 146 | case struct: (Int, Int, Int, Int, Int) => | |
147 | 147 | struct | |
148 | 148 | case _ => | |
149 | 149 | throw("fail to cast into Int") | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | let neutrinoContract = addressFromStringValue(getStringOrFail(this, keyNeutrinoAddress())) | |
160 | 160 | ||
161 | 161 | let controlContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyContolContract())) | |
162 | 162 | ||
163 | 163 | let auctionContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyAuctionContract())) | |
164 | 164 | ||
165 | 165 | let liquidationContract = getStringOrFail(neutrinoContract, keyLiquidationContractAddress()) | |
166 | 166 | ||
167 | 167 | let rpdContract = getStringOrFail(neutrinoContract, keyRPDContract()) | |
168 | 168 | ||
169 | 169 | let mathContract = addressFromStringValue(getStringOrFail(this, keyMathContract())) | |
170 | 170 | ||
171 | 171 | let nsbtStakingContract = addressFromStringValue(getStringOrFail(this, keyNsbtLockContract())) | |
172 | 172 | ||
173 | 173 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
174 | 174 | ||
175 | 175 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
176 | 176 | ||
177 | 177 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyBondAssetId()) | |
178 | 178 | ||
179 | 179 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
180 | 180 | ||
181 | 181 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func privateNsbtPriceREST () = { | |
188 | 188 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
189 | 189 | let nsbt2usdnPrice = asInt(prices[0]) | |
190 | 190 | let nsbt2wavesPrice = asInt(prices[1]) | |
191 | 191 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | @Callable(i) | |
196 | 196 | func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
197 | 197 | then throw("not authorized") | |
198 | 198 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | ||
202 | 202 | @Callable(i) | |
203 | 203 | func neutrinoStatsREADONLY () = { | |
204 | 204 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
205 | 205 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
206 | 206 | let currentPrice = asInt(neutrinoMetrics[0]) | |
207 | 207 | let neutrinoLockedBalance = asInt(neutrinoMetrics[1]) | |
208 | 208 | let wavesLockedBalance = asInt(neutrinoMetrics[2]) | |
209 | 209 | let reservesInWaves = asInt(neutrinoMetrics[3]) | |
210 | 210 | let reservesInUsdn = asInt(neutrinoMetrics[4]) | |
211 | 211 | let neutrinoSupply = asInt(neutrinoMetrics[5]) | |
212 | 212 | let surplus = asInt(neutrinoMetrics[6]) | |
213 | 213 | let surplusPercent = asInt(neutrinoMetrics[7]) | |
214 | 214 | let BR = asInt(neutrinoMetrics[8]) | |
215 | 215 | let nsbtSupply = asInt(neutrinoMetrics[9]) | |
216 | 216 | let maxNsbtSupply = asInt(neutrinoMetrics[10]) | |
217 | 217 | let nsbt2usdnPrice = asInt(prices[0]) | |
218 | 218 | let nsbt2wavesPrice = asInt(prices[1]) | |
219 | 219 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
220 | 220 | let minNsbtsell = minNsbtForSell() | |
221 | 221 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
222 | 222 | $Tuple2(nil, makeString(["%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)], SEP)) | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | ||
227 | 227 | @Callable(i) | |
228 | 228 | func swapInfoREADONLY (userAddressStrOpt) = { | |
229 | 229 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
230 | 230 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
231 | 231 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
232 | 232 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
233 | 233 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
234 | 234 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
235 | 235 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
236 | - | let $ | |
237 | - | let swapLimitMaxUsdn = $ | |
238 | - | let swapLimitSpentUsdn = $ | |
239 | - | let blcks2LmtReset = $ | |
236 | + | let $t083728536 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
237 | + | let swapLimitMaxUsdn = $t083728536._1 | |
238 | + | let swapLimitSpentUsdn = $t083728536._2 | |
239 | + | let blcks2LmtReset = $t083728536._3 | |
240 | 240 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
241 | 241 | $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)) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | ||
246 | 246 | @Callable(i) | |
247 | 247 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
248 | 248 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
249 | - | let $ | |
250 | - | let limitMaxUsdn = $ | |
251 | - | let limitSpent = $ | |
252 | - | let blcks2LmtReset = $ | |
253 | - | let gnsbtAmt = $ | |
254 | - | let gnsbtAmtTotal = $ | |
255 | - | let $ | |
256 | - | let limitMaxUsdnNEW = $ | |
257 | - | let limitSpentNEW = $ | |
258 | - | let blcks2LmtResetNEW = $ | |
259 | - | let gnsbtAmtNEW = $ | |
260 | - | let gnsbtAmtTotalNEW = $ | |
249 | + | let $t095429725 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
250 | + | let limitMaxUsdn = $t095429725._1 | |
251 | + | let limitSpent = $t095429725._2 | |
252 | + | let blcks2LmtReset = $t095429725._3 | |
253 | + | let gnsbtAmt = $t095429725._4 | |
254 | + | let gnsbtAmtTotal = $t095429725._5 | |
255 | + | let $t097299937 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
256 | + | let limitMaxUsdnNEW = $t097299937._1 | |
257 | + | let limitSpentNEW = $t097299937._2 | |
258 | + | let blcks2LmtResetNEW = $t097299937._3 | |
259 | + | let gnsbtAmtNEW = $t097299937._4 | |
260 | + | let gnsbtAmtTotalNEW = $t097299937._5 | |
261 | 261 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
262 | 262 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
263 | 263 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
264 | 264 | then fraction((gnsbtAmt * 100), scale12, gnsbtAmtTotal) | |
265 | 265 | else 0 | |
266 | 266 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
267 | 267 | then fraction((gnsbtAmtNEW * 100), scale12, gnsbtAmtTotalNEW) | |
268 | 268 | else 0 | |
269 | 269 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
270 | 270 | let nsbtAmt = gnsbtAmt | |
271 | 271 | let nsbtAmtNew = gnsbtAmtNEW | |
272 | 272 | let nsbtAmtStakedTotal = gnsbtAmtTotal | |
273 | 273 | let nsbtAmtStakedTotalNew = gnsbtAmtTotalNEW | |
274 | 274 | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%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)], SEP)) | |
275 | 275 | } | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | ||
279 | 279 | @Callable(i) | |
280 | 280 | func buyNsbtREADONLY (wavesPay) = { | |
281 | 281 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
282 | 282 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
283 | 283 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
284 | 284 | else { | |
285 | 285 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
286 | 286 | if ((curveResult == curveResult)) | |
287 | 287 | then { | |
288 | 288 | let nsbtAmount = asInt(curveResult[0]) | |
289 | 289 | if ((0 >= nsbtAmount)) | |
290 | 290 | then throw("nsbtAmount <= 0") | |
291 | 291 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
292 | 292 | } | |
293 | 293 | else throw("Strict value is not equal to itself.") | |
294 | 294 | } | |
295 | 295 | } | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | ||
299 | 299 | @Callable(i) | |
300 | 300 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
301 | 301 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
302 | 302 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
303 | 303 | if ((h == h)) | |
304 | 304 | then $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
305 | 305 | else throw("Strict value is not equal to itself.") | |
306 | 306 | } | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | ||
310 | 310 | @Callable(i) | |
311 | 311 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
312 | 312 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
313 | 313 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
314 | 314 | if ((a == a)) | |
315 | 315 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
316 | 316 | else throw("Strict value is not equal to itself.") | |
317 | 317 | } | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(i) | |
322 | 322 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
323 | 323 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
324 | 324 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
325 | 325 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
326 | 326 | if ((a == a)) | |
327 | 327 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
328 | 328 | else throw("Strict value is not equal to itself.") | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | ||
333 | 333 | @Callable(i) | |
334 | 334 | func neutrinoStateREST () = { | |
335 | 335 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
336 | 336 | let currentPrice = asInt(neutrinoMetrics[0]) | |
337 | 337 | let neutrinoLockedBalance = asInt(neutrinoMetrics[1]) | |
338 | 338 | let wavesLockedBalance = asInt(neutrinoMetrics[2]) | |
339 | 339 | let reservesInWaves = asInt(neutrinoMetrics[3]) | |
340 | 340 | let reservesInUsdn = asInt(neutrinoMetrics[4]) | |
341 | 341 | let neutrinoSupply = asInt(neutrinoMetrics[5]) | |
342 | 342 | let surplus = asInt(neutrinoMetrics[6]) | |
343 | 343 | let surplusPercent = asInt(neutrinoMetrics[7]) | |
344 | 344 | let BR = asInt(neutrinoMetrics[8]) | |
345 | 345 | let nsbtSupply = asInt(neutrinoMetrics[9]) | |
346 | 346 | throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__")) | |
347 | 347 | } | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(i) | |
352 | 352 | func nsbtPriceREST () = { | |
353 | 353 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
354 | 354 | let nsbt2usdnPrice = asInt(prices[0]) | |
355 | 355 | let nsbt2wavesPrice = asInt(prices[1]) | |
356 | 356 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
357 | 357 | throw(restData) | |
358 | 358 | } | |
359 | 359 | ||
360 | 360 |
github/deemru/w8io/026f985 80.61 ms ◑