tx · 64YFeL8a4dNBFQduqZvEJcvYNHgZDriFcJJL9oxGxbHz 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi: -0.01600000 Waves 2022.05.25 10:16 [2066891] smart account 3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi > SELF 0.00000000 Waves
{ "type": 13, "id": "64YFeL8a4dNBFQduqZvEJcvYNHgZDriFcJJL9oxGxbHz", "fee": 1600000, "feeAssetId": null, "timestamp": 1653463057156, "version": 1, "sender": "3Mxd5o7PwH76ZkN8zG4xwDLubEnbkaihKzi", "senderPublicKey": "BwVRZtTzoCigEsffCvQ9uo7WvkoBNNGVjX4nat5X5zyQ", "proofs": [ "4dedqmBADttX8LR66FC64CXHyE15W6UaqGuZWFXUgx7BV4oLm34xEutP1ecBR1FV8wuPaUjmiSyviKJky1vg27m4" ], "script": "base64:AAIFAAAAAAAAADMIAhIFCgMICAgSABIDCgEIEgQKAggBEgMKAQESBgoEAQEBARIECgIBARIECgIBCBIAEgAAAAA+AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAhQUklDRUxFVAAAAAAAAA9CQAAAAAAJTVVMVFNDQUxFAAAAAAAAAAAIAAAAAAtFVUxFUk5VTUJFUgAAAAAAEDPE1gAAAAAGc2NhbGU2AAAAAAAAD0JAAAAAAAxzY2FsZTZCaWdJbnQJAAE2AAAAAQAAAAAAAA9CQAAAAAAGc2NhbGU4AAAAAAAF9eEAAAAAAAxzY2FsZThCaWdJbnQJAAE2AAAAAQAAAAAABfXhAAAAAAAHc2NhbGUxMgAAAADo1KUQAAAAAAAHc2NhbGUxOAkAATYAAAABAA3gtrOnZAAAAAAAAANTRVACAAAAAl9fAQAAABJrZXlOZXV0cmlub0FkZHJlc3MAAAAAAgAAAB0lcyVzX19jb25maWdfX25ldXRyaW5vQWRkcmVzcwEAAAASa2V5TmV1dHJpbm9Bc3NldElkAAAAAAIAAAARbmV1dHJpbm9fYXNzZXRfaWQBAAAAHWtleUxpcXVpZGF0aW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zUHJpY2UJAQAAAAVhc0ludAAAAAEJAAGRAAAAAgUAAAAGcHJpY2VzAAAAAAAAAAABBAAAAAhyZXN0RGF0YQkABLkAAAACCQAETAAAAAICAAAAEnN0YXJ0TnNidFByaWNlUkVTVAkABEwAAAACCQABpAAAAAEFAAAADm5zYnQydXNkblByaWNlCQAETAAAAAIJAAGkAAAAAQUAAAAPbnNidDJ3YXZlc1ByaWNlCQAETAAAAAICAAAAEGVuZE5zYnRQcmljZVJFU1QFAAAAA25pbAIAAAACX18JAAACAAAAAQUAAAAIcmVzdERhdGEAAAAAv/DGrA==", "chainId": 84, "height": 2066891, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DLVfKrSSsvNN6qUGmdJXYwtFzk3b1sg6TfC5qz5sVBmS Next: 7DhiWNVQd9YsSyVMEqz6zN1QEbkSGrPZ7Zx3cUnkofz5 Diff:
Old | New | Differences | |
---|---|---|---|
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | + | func toTimestamp (start) = match blockInfoByHeight(start) { | |
154 | + | case block: BlockInfo => | |
155 | + | block.timestamp | |
156 | + | case _ => | |
157 | + | -1 | |
158 | + | } | |
159 | + | ||
160 | + | ||
153 | 161 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
154 | 162 | ||
155 | 163 | ||
233 | 241 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
234 | 242 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
235 | 243 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
236 | - | let $ | |
237 | - | let swapLimitMaxUsdn = $ | |
238 | - | let swapLimitSpentUsdn = $ | |
239 | - | let blcks2LmtReset = $ | |
244 | + | let $t084678628 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil)) | |
245 | + | let swapLimitMaxUsdn = $t084678628._1 | |
246 | + | let swapLimitSpentUsdn = $t084678628._2 | |
247 | + | let blcks2LmtReset = $t084678628._3 | |
240 | 248 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
241 | 249 | $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 | 250 | } | |
246 | 254 | @Callable(i) | |
247 | 255 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
248 | 256 | 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 = $ | |
257 | + | let $t095269709 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
258 | + | let limitMaxUsdn = $t095269709._1 | |
259 | + | let limitSpent = $t095269709._2 | |
260 | + | let blcks2LmtReset = $t095269709._3 | |
261 | + | let gnsbtAmt = $t095269709._4 | |
262 | + | let gnsbtAmtTotal = $t095269709._5 | |
263 | + | let $t097139921 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
264 | + | let limitMaxUsdnNEW = $t097139921._1 | |
265 | + | let limitSpentNEW = $t097139921._2 | |
266 | + | let blcks2LmtResetNEW = $t097139921._3 | |
267 | + | let gnsbtAmtNEW = $t097139921._4 | |
268 | + | let gnsbtAmtTotalNEW = $t097139921._5 | |
261 | 269 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
262 | 270 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
263 | 271 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
269 | 277 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
270 | 278 | let nsbtAmt = gnsbtAmt | |
271 | 279 | let nsbtAmtNew = gnsbtAmtNEW | |
272 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d", toString(gnsbtAmt), toString(gnsbtAmtNEW), toString(gnsbtShare), toString(gnsbtShareNEW), toString(limitMaxUsdn), toString(limitMaxWaves), toString(limitMaxUsdnNEW), toString(limitMaxWavesNEW), rewardInfo, toString(nsbtAmt), toString(nsbtAmtNew)], SEP)) | |
280 | + | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt], nil)) | |
281 | + | let startHeight = asInt(nsbtData[2]) | |
282 | + | let startTimestamp = toTimestamp(startHeight) | |
283 | + | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
284 | + | let startHeightNew = asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
285 | + | let startTimestampNew = toTimestamp(startHeightNew) | |
286 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%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(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP)) | |
273 | 287 | } | |
274 | 288 | ||
275 | 289 |
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 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 | + | func toTimestamp (start) = match blockInfoByHeight(start) { | |
154 | + | case block: BlockInfo => | |
155 | + | block.timestamp | |
156 | + | case _ => | |
157 | + | -1 | |
158 | + | } | |
159 | + | ||
160 | + | ||
153 | 161 | func toX18 (origVal,origScaleMult) = fraction(toBigInt(origVal), scale18, toBigInt(origScaleMult)) | |
154 | 162 | ||
155 | 163 | ||
156 | 164 | func fromX18 (val,resultScaleMult) = toInt(fraction(val, toBigInt(resultScaleMult), scale18)) | |
157 | 165 | ||
158 | 166 | ||
159 | 167 | let neutrinoContract = addressFromStringValue(getStringOrFail(this, keyNeutrinoAddress())) | |
160 | 168 | ||
161 | 169 | let controlContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyContolContract())) | |
162 | 170 | ||
163 | 171 | let auctionContract = addressFromStringValue(getStringOrFail(neutrinoContract, keyAuctionContract())) | |
164 | 172 | ||
165 | 173 | let liquidationContract = getStringOrFail(neutrinoContract, keyLiquidationContractAddress()) | |
166 | 174 | ||
167 | 175 | let rpdContract = getStringOrFail(neutrinoContract, keyRPDContract()) | |
168 | 176 | ||
169 | 177 | let mathContract = addressFromStringValue(getStringOrFail(this, keyMathContract())) | |
170 | 178 | ||
171 | 179 | let nsbtStakingContract = addressFromStringValue(getStringOrFail(this, keyNsbtLockContract())) | |
172 | 180 | ||
173 | 181 | let neutrinoAssetIdString = getStringOrFail(neutrinoContract, keyNeutrinoAssetId()) | |
174 | 182 | ||
175 | 183 | let neutrinoAssetId = fromBase58String(neutrinoAssetIdString) | |
176 | 184 | ||
177 | 185 | let nsbtAssetIdStr = getStringValue(neutrinoContract, keyBondAssetId()) | |
178 | 186 | ||
179 | 187 | let nsbtAssetId = fromBase58String(nsbtAssetIdStr) | |
180 | 188 | ||
181 | 189 | func minWavesForNsbtBuy () = asInt(invoke(auctionContract, "minWavesAmountNsbtBuySYSREADONLY", nil, nil)) | |
182 | 190 | ||
183 | 191 | ||
184 | 192 | func minNsbtForSell () = asInt(invoke(auctionContract, "minNsbtAmountForSellSYSREADONLY", nil, nil)) | |
185 | 193 | ||
186 | 194 | ||
187 | 195 | func privateNsbtPriceREST () = { | |
188 | 196 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
189 | 197 | let nsbt2usdnPrice = asInt(prices[0]) | |
190 | 198 | let nsbt2wavesPrice = asInt(prices[1]) | |
191 | 199 | $Tuple2(IntegerEntry("nsbt2usdnPrice", nsbt2usdnPrice), IntegerEntry("nsbt2wavesPrice", nsbt2wavesPrice)) | |
192 | 200 | } | |
193 | 201 | ||
194 | 202 | ||
195 | 203 | @Callable(i) | |
196 | 204 | func constructor (neutrinoAddress,nsbtLockAddress,mathAddress) = if ((i.caller != this)) | |
197 | 205 | then throw("not authorized") | |
198 | 206 | else [StringEntry(keyNeutrinoAddress(), neutrinoAddress), StringEntry(keyNsbtLockContract(), nsbtLockAddress), StringEntry(keyMathContract(), mathAddress)] | |
199 | 207 | ||
200 | 208 | ||
201 | 209 | ||
202 | 210 | @Callable(i) | |
203 | 211 | func neutrinoStatsREADONLY () = { | |
204 | 212 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
205 | 213 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
206 | 214 | let currentPrice = asInt(neutrinoMetrics[0]) | |
207 | 215 | let neutrinoLockedBalance = asInt(neutrinoMetrics[1]) | |
208 | 216 | let wavesLockedBalance = asInt(neutrinoMetrics[2]) | |
209 | 217 | let reservesInWaves = asInt(neutrinoMetrics[3]) | |
210 | 218 | let reservesInUsdn = asInt(neutrinoMetrics[4]) | |
211 | 219 | let neutrinoSupply = asInt(neutrinoMetrics[5]) | |
212 | 220 | let surplus = asInt(neutrinoMetrics[6]) | |
213 | 221 | let surplusPercent = asInt(neutrinoMetrics[7]) | |
214 | 222 | let BR = asInt(neutrinoMetrics[8]) | |
215 | 223 | let nsbtSupply = asInt(neutrinoMetrics[9]) | |
216 | 224 | let maxNsbtSupply = asInt(neutrinoMetrics[10]) | |
217 | 225 | let nsbt2usdnPrice = asInt(prices[0]) | |
218 | 226 | let nsbt2wavesPrice = asInt(prices[1]) | |
219 | 227 | let minWaves4NsbtBuy = minWavesForNsbtBuy() | |
220 | 228 | let minNsbtsell = minNsbtForSell() | |
221 | 229 | let minNsbtLockAmt = getIntOrFail(nsbtStakingContract, keyMinLockAmount()) | |
222 | 230 | $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 | 231 | } | |
224 | 232 | ||
225 | 233 | ||
226 | 234 | ||
227 | 235 | @Callable(i) | |
228 | 236 | func swapInfoREADONLY (userAddressStr) = { | |
229 | 237 | let currentPrice = getIntegerValue(controlContract, keyPrice()) | |
230 | 238 | let minWavesSwapAmt = getIntegerValue(neutrinoContract, keyMinWavesSwapAmount()) | |
231 | 239 | let minUsdnSwapAmt = getIntegerValue(neutrinoContract, keyMinNeutrinoSwapAmount()) | |
232 | 240 | let waves2UsdnFee = getIntegerValue(neutrinoContract, keyWavesOutFeePart()) | |
233 | 241 | let usdn2WavesFee = getIntegerValue(neutrinoContract, keyNeutrinoOutFeePart()) | |
234 | 242 | let usdnSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceNeutrinoLockInterval()) | |
235 | 243 | let wavesSwapDelayDuration = getIntegerValue(neutrinoContract, keyBalanceWavesLockInterval()) | |
236 | - | let $ | |
237 | - | let swapLimitMaxUsdn = $ | |
238 | - | let swapLimitSpentUsdn = $ | |
239 | - | let blcks2LmtReset = $ | |
244 | + | let $t084678628 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStr, 0], nil)) | |
245 | + | let swapLimitMaxUsdn = $t084678628._1 | |
246 | + | let swapLimitSpentUsdn = $t084678628._2 | |
247 | + | let blcks2LmtReset = $t084678628._3 | |
240 | 248 | let swapLimitMaxWaves = convertNeutrinoToWaves(swapLimitMaxUsdn, currentPrice) | |
241 | 249 | $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 | 250 | } | |
243 | 251 | ||
244 | 252 | ||
245 | 253 | ||
246 | 254 | @Callable(i) | |
247 | 255 | func gnsbtInfoREADONLY (userAddressStrOpt,nsbtAmtDiff) = { | |
248 | 256 | 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 = $ | |
257 | + | let $t095269709 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, 0], nil)) | |
258 | + | let limitMaxUsdn = $t095269709._1 | |
259 | + | let limitSpent = $t095269709._2 | |
260 | + | let blcks2LmtReset = $t095269709._3 | |
261 | + | let gnsbtAmt = $t095269709._4 | |
262 | + | let gnsbtAmtTotal = $t095269709._5 | |
263 | + | let $t097139921 = asSwapParamsSTRUCT(invoke(neutrinoContract, "swapParamsByUserSYSREADONLY", [userAddressStrOpt, nsbtAmtDiff], nil)) | |
264 | + | let limitMaxUsdnNEW = $t097139921._1 | |
265 | + | let limitSpentNEW = $t097139921._2 | |
266 | + | let blcks2LmtResetNEW = $t097139921._3 | |
267 | + | let gnsbtAmtNEW = $t097139921._4 | |
268 | + | let gnsbtAmtTotalNEW = $t097139921._5 | |
261 | 269 | let limitMaxWaves = convertNeutrinoToWaves(limitMaxUsdn, currentPrice) | |
262 | 270 | let limitMaxWavesNEW = convertNeutrinoToWaves(limitMaxUsdnNEW, currentPrice) | |
263 | 271 | let gnsbtShare = if ((gnsbtAmtTotal != 0)) | |
264 | 272 | then fraction((gnsbtAmt * 100), scale12, gnsbtAmtTotal) | |
265 | 273 | else 0 | |
266 | 274 | let gnsbtShareNEW = if ((gnsbtAmtTotalNEW != 0)) | |
267 | 275 | then fraction((gnsbtAmtNEW * 100), scale12, gnsbtAmtTotalNEW) | |
268 | 276 | else 0 | |
269 | 277 | let rewardInfo = asString(invoke(nsbtStakingContract, "unclaimedRewardsREADONLY", [userAddressStrOpt], nil)) | |
270 | 278 | let nsbtAmt = gnsbtAmt | |
271 | 279 | let nsbtAmtNew = gnsbtAmtNEW | |
272 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%d%d", toString(gnsbtAmt), toString(gnsbtAmtNEW), toString(gnsbtShare), toString(gnsbtShareNEW), toString(limitMaxUsdn), toString(limitMaxWaves), toString(limitMaxUsdnNEW), toString(limitMaxWavesNEW), rewardInfo, toString(nsbtAmt), toString(nsbtAmtNew)], SEP)) | |
280 | + | let nsbtData = asAnyList(invoke(nsbtStakingContract, "nsbtStakingSYSREADONLY", [userAddressStrOpt], nil)) | |
281 | + | let startHeight = asInt(nsbtData[2]) | |
282 | + | let startTimestamp = toTimestamp(startHeight) | |
283 | + | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
284 | + | let startHeightNew = asInt(invoke(mathContract, "mergeStakesREADONLY", [gnsbtAmt, startHeight, gnsbtAmtNEW, height, halfLife], nil)) | |
285 | + | let startTimestampNew = toTimestamp(startHeightNew) | |
286 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d%s%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(startHeight), toString(startTimestamp), toString(startHeightNew), toString(startTimestampNew)], SEP)) | |
273 | 287 | } | |
274 | 288 | ||
275 | 289 | ||
276 | 290 | ||
277 | 291 | @Callable(i) | |
278 | 292 | func buyNsbtREADONLY (wavesPay) = { | |
279 | 293 | let minWavesAmountNsbtBuy = minWavesForNsbtBuy() | |
280 | 294 | if ((minWavesAmountNsbtBuy > wavesPay)) | |
281 | 295 | then throw((("min " + toString(minWavesAmountNsbtBuy)) + " waves expected")) | |
282 | 296 | else { | |
283 | 297 | let curveResult = asAnyList(invoke(mathContract, "curveFunctionREADONLY", [wavesPay], nil)) | |
284 | 298 | if ((curveResult == curveResult)) | |
285 | 299 | then { | |
286 | 300 | let nsbtAmount = asInt(curveResult[0]) | |
287 | 301 | if ((0 >= nsbtAmount)) | |
288 | 302 | then throw("nsbtAmount <= 0") | |
289 | 303 | else $Tuple2(nil, makeString(["%d", toString(nsbtAmount)], SEP)) | |
290 | 304 | } | |
291 | 305 | else throw("Strict value is not equal to itself.") | |
292 | 306 | } | |
293 | 307 | } | |
294 | 308 | ||
295 | 309 | ||
296 | 310 | ||
297 | 311 | @Callable(i) | |
298 | 312 | func mergedStakeREADONLY (amount1,height1,amount2,height2) = { | |
299 | 313 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
300 | 314 | let h = asInt(invoke(mathContract, "mergeStakesREADONLY", [amount1, height1, amount2, height2, halfLife], nil)) | |
301 | 315 | if ((h == h)) | |
302 | 316 | then $Tuple2(nil, makeString(["%d%d", toString((amount1 + amount2)), toString(h)], SEP)) | |
303 | 317 | else throw("Strict value is not equal to itself.") | |
304 | 318 | } | |
305 | 319 | ||
306 | 320 | ||
307 | 321 | ||
308 | 322 | @Callable(i) | |
309 | 323 | func unstakeComissionAmountByHeightREADONLY (amount,startHeight) = { | |
310 | 324 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
311 | 325 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
312 | 326 | if ((a == a)) | |
313 | 327 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
314 | 328 | else throw("Strict value is not equal to itself.") | |
315 | 329 | } | |
316 | 330 | ||
317 | 331 | ||
318 | 332 | ||
319 | 333 | @Callable(i) | |
320 | 334 | func unstakeComissionAmountByUserREADONLY (amount,userAddress) = { | |
321 | 335 | let halfLife = getIntOrFail(nsbtStakingContract, keyHalfLife()) | |
322 | 336 | let startHeight = valueOrElse(getInteger(nsbtStakingContract, keyLockParamStartBlock(userAddress)), height) | |
323 | 337 | let a = asInt(invoke(mathContract, "getUnstakeComissionAmountREADONLY", [amount, startHeight, halfLife], nil)) | |
324 | 338 | if ((a == a)) | |
325 | 339 | then $Tuple2(nil, makeString(["%d", toString(a)], SEP)) | |
326 | 340 | else throw("Strict value is not equal to itself.") | |
327 | 341 | } | |
328 | 342 | ||
329 | 343 | ||
330 | 344 | ||
331 | 345 | @Callable(i) | |
332 | 346 | func neutrinoStateREST () = { | |
333 | 347 | let neutrinoMetrics = asAnyList(invoke(mathContract, "calcNeutinoMetricsREADONLY", nil, nil)) | |
334 | 348 | let currentPrice = asInt(neutrinoMetrics[0]) | |
335 | 349 | let neutrinoLockedBalance = asInt(neutrinoMetrics[1]) | |
336 | 350 | let wavesLockedBalance = asInt(neutrinoMetrics[2]) | |
337 | 351 | let reservesInWaves = asInt(neutrinoMetrics[3]) | |
338 | 352 | let reservesInUsdn = asInt(neutrinoMetrics[4]) | |
339 | 353 | let neutrinoSupply = asInt(neutrinoMetrics[5]) | |
340 | 354 | let surplus = asInt(neutrinoMetrics[6]) | |
341 | 355 | let surplusPercent = asInt(neutrinoMetrics[7]) | |
342 | 356 | let BR = asInt(neutrinoMetrics[8]) | |
343 | 357 | let nsbtSupply = asInt(neutrinoMetrics[9]) | |
344 | 358 | throw(makeString(["resultNeutrinoStateREST", toString(currentPrice), toString(neutrinoLockedBalance), toString(wavesLockedBalance), toString(reservesInWaves), toString(reservesInUsdn), toString(neutrinoSupply), toString(surplus), toString(surplusPercent), toString(BR), toString(nsbtSupply)], "__")) | |
345 | 359 | } | |
346 | 360 | ||
347 | 361 | ||
348 | 362 | ||
349 | 363 | @Callable(i) | |
350 | 364 | func nsbtPriceREST () = { | |
351 | 365 | let prices = asAnyList(invoke(mathContract, "calcContractNsbtPriceSYSREADONLY", [0], nil)) | |
352 | 366 | let nsbt2usdnPrice = asInt(prices[0]) | |
353 | 367 | let nsbt2wavesPrice = asInt(prices[1]) | |
354 | 368 | let restData = makeString(["startNsbtPriceREST", toString(nsbt2usdnPrice), toString(nsbt2wavesPrice), "endNsbtPriceREST"], "__") | |
355 | 369 | throw(restData) | |
356 | 370 | } | |
357 | 371 | ||
358 | 372 |
github/deemru/w8io/026f985 53.79 ms ◑