tx · FTJTJREj1HJ5hxE9X7NR2uU7Ybr4oEqcUxpazYnYx9Js

3N1kc72FNsGPRgc9umhWp3eA5jS9EjdeBwK:  -0.02800000 Waves

2022.06.16 13:06 [2098787] smart account 3N1kc72FNsGPRgc9umhWp3eA5jS9EjdeBwK > SELF 0.00000000 Waves

{ "type": 13, "id": "FTJTJREj1HJ5hxE9X7NR2uU7Ybr4oEqcUxpazYnYx9Js", "fee": 2800000, "feeAssetId": null, "timestamp": 1655374028708, "version": 1, "sender": "3N1kc72FNsGPRgc9umhWp3eA5jS9EjdeBwK", "senderPublicKey": "6qf6fPTcKLzLHwfULHktLQSnarx2nrJU1Qskh7bErcZN", "proofs": [ "3q8kCbrJuhrHDNxYWr56LiM4VTAUn5CvqEaBy7BLRfLsXVSJqBhgRPTwR5Ec7Svoso8FrXePFQYrac3syf9u7xew" ], "script": "base64:AAIFAAAAAAAAADQIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgSAwoBCBIAAAAAOQAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAEAAAAPZ2V0U3RyaW5nT3JGYWlsAAAAAQAAAANrZXkJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkJAAEsAAAAAgIAAAAVTm8gZGF0YSBmb3IgdGhpcy5rZXk9BQAAAANrZXkBAAAAEGdldEJvb2xlYW5PckZhaWwAAAABAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQkAASwAAAACAgAAABVObyBkYXRhIGZvciB0aGlzLmtleT0FAAAAA2tleQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAABBtYW5hZ2VyUHVibGljS2V5BQAAAANuaWwFAAAAA1NFUAEAAAAaa2V5U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BQAAAAJwbQYJAAACAAAAAQIAAAAbeW91IGFyZSBub3QgcGVuZGluZyBtYW5hZ2VyAwkAAAAAAAACBQAAAAdjaGVja1BNBQAAAAdjaGVja1BNCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABNrZXlNYW5hZ2VyUHVibGljS2V5AAAAAAkAAlgAAAABCQEAAAAFdmFsdWUAAAABBQAAAAJwbQkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAABQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQAAAgAAAAECAAAAJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnSxftE", "chainId": 84, "height": 2098787, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D4eDp8NQyA5qRqHxYmym7Npdqnv7FpgAxTkotyUSS8ns Next: GkPybLJy5zcfkewXFUbB89BAK3nDHuWBQSNmbMhtfc2K Diff:
OldNewDifferences
381381 else if ((size(i.payments) > 1))
382382 then throw("only one payment can be attached")
383383 else {
384- let price = genericCalcPrice(balanceOrZero(pmtAssetStr), internalBaseAssetStr, pmtAssetId, delta, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
385-[IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), (balanceOrZero(pmtAssetStr) + delta))]
384+ let newBalance = (balanceOrZero(pmtAssetStr) + delta)
385+ let price = calcPrice(newBalance, internalBaseAssetStr, pmtAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
386+[IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), newBalance)]
386387 }
387388 else throw("Strict value is not equal to itself.")
388389 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let EMPTY = ""
77
88 func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
99
1010
1111 func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
1212
1313
1414 func keyManagerPublicKey () = makeString(["%s", "managerPublicKey"], SEP)
1515
1616
1717 func keyPendingManagerPublicKey () = makeString(["%s", "pendingManagerPublicKey"], SEP)
1818
1919
2020 func failExecuteGet (msg,baseAssetStr,userAddressStr,getTxIdStr) = throw(((((((msg + ": baseAssetStr=") + baseAssetStr) + " userAddressStr=") + userAddressStr) + " getTxIdStr=") + getTxIdStr))
2121
2222
2323 func keyAssetsStoreContract () = makeString(["%s", "assetsStoreContract"], SEP)
2424
2525
2626 func keyAssetCfg (baseAssetStr) = ("%s%s%s__config__asset__" + baseAssetStr)
2727
2828
2929 func keyProxyAddress (assetId) = makeString(["%s%s", "proxyAddress", assetId], SEP)
3030
3131
3232 func keyBalance (assetId) = makeString(["%s%s", "balance", assetId], SEP)
3333
3434
3535 func keyNextInternalAssetId () = "%s__nextInternalAssetId"
3636
3737
3838 func keyPriceLast (internalBasetAssetStr) = ("%s%s%d__price__last__" + internalBasetAssetStr)
3939
4040
4141 func keyTopUpLastHeight (internalBasetAssetStr,sender) = makeString(["%s%s%s%d%s__topup__last__height", internalBasetAssetStr, sender], SEP)
4242
4343
4444 func keyPriceHistory (internalBasetAssetStr,h,timestamp) = makeString(["%s%s%d%d%d__price__history", internalBasetAssetStr, toString(h), toString(timestamp)], SEP)
4545
4646
4747 func keyTotalLocked (internalBasetAssetStr) = ("%s%s%d__total__locked__" + internalBasetAssetStr)
4848
4949
5050 func keyTotalLockedByUser (internalBaseAssetStr,userAddressStr) = makeString(["%s%s%d%s__total__locked", internalBaseAssetStr, userAddressStr], SEP)
5151
5252
5353 func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
5454
5555
5656 func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
5757
5858
5959 func keyMappingsShare2baseAssetId (shareAssetStr) = ("%s%s%s__mappings__share2baseAssetId__" + shareAssetStr)
6060
6161
6262 func keyMappingsBaseAsset2shareId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2shareId__" + baseAssetStr)
6363
6464
6565 func keyShutdownPutOperation (internalBaseAssetStr) = ("%s%s%d__shutdown__put__" + internalBaseAssetStr)
6666
6767
6868 func keyShutdownManager (internalBaseAssetStr) = ("%s%s%d__shutdown__manager__" + internalBaseAssetStr)
6969
7070
7171 func assetsStoreContract () = addressFromStringValue(value(getString(keyAssetsStoreContract())))
7272
7373
7474 let IdxCfgShareAssetId = 1
7575
7676 let IdxCfgInternalBaseAsset = 2
7777
7878 let IdxCfgDecimalsMultBothAssets = 3
7979
8080 let IdxCfgDecimalsMultPrice = 4
8181
8282 let IdxCfgGetDelayBlocks = 5
8383
8484 func dataAssetCfg (shareAssetStr,internalBaseAssetStr,decimalsMultBothAssets,decimalsMultPrice,getDelayInBlocks) = makeString(["%s%d%d%d%d", shareAssetStr, internalBaseAssetStr, toString(decimalsMultBothAssets), toString(decimalsMultPrice), toString(getDelayInBlocks)], SEP)
8585
8686
8787 let IdxTotalLockedShare = 1
8888
8989 let IdxTotalLockedBase = 2
9090
9191 func dataTotalLocked (shareAssetAmount,baseAssetAmount) = makeString(["%d%d", toString(shareAssetAmount), toString(baseAssetAmount)], SEP)
9292
9393
9494 func readTotalLocked (key) = {
9595 let totalLockedArray = split(valueOrElse(getString(this, key), dataTotalLocked(0, 0)), SEP)
9696 [-1, parseIntValue(totalLockedArray[IdxTotalLockedShare]), parseIntValue(totalLockedArray[IdxTotalLockedBase])]
9797 }
9898
9999
100100 func keyOperation (operationType,internalBaseAssetStr,userAddress,txId) = makeString(["%s%d%s%s", operationType, internalBaseAssetStr, userAddress, txId], SEP)
101101
102102
103103 let IdxOperStatus = 1
104104
105105 let IdxOperInAmount = 2
106106
107107 let IdxOperPrice = 3
108108
109109 let IdxOperOutAmount = 4
110110
111111 let IdxOperStartHeight = 5
112112
113113 let IdxOperStartTimestamp = 6
114114
115115 let IdxOperEndHeight = 7
116116
117117 let IdxOperEndTimestamp = 8
118118
119119 func privateDataOperationAllStrings (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = makeString(["%s%d%d%d%d%d%d%d", status, inAssetAmount, price, outAssetAmount, startHeight, startTimestamp, endHeight, endTimestamp], SEP)
120120
121121
122122 func dataOperation (status,inAssetAmount,price,outAssetAmount,startHeight,startTimestamp,endHeight,endTimestamp) = privateDataOperationAllStrings(status, toString(inAssetAmount), toString(price), toString(outAssetAmount), toString(startHeight), toString(startTimestamp), toString(endHeight), toString(endTimestamp))
123123
124124
125125 func dataOperationExecutionUpdate (currOperArray,newStatus,newEndTimestamp) = privateDataOperationAllStrings(newStatus, currOperArray[IdxOperInAmount], currOperArray[IdxOperPrice], currOperArray[IdxOperOutAmount], currOperArray[IdxOperStartHeight], currOperArray[IdxOperStartTimestamp], currOperArray[IdxOperEndHeight], toString(newEndTimestamp))
126126
127127
128128 func readAssetCfgOrFail (baseAssetStr) = {
129129 let key = keyAssetCfg(baseAssetStr)
130130 split(getStringOrFail(key), SEP)
131131 }
132132
133133
134134 func incrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = {
135135 let dataArray = readTotalLocked(key)
136136 StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] + shareAssetAmount), (dataArray[IdxTotalLockedBase] + baseAssetAmount)))
137137 }
138138
139139
140140 func decrementTotalLocked (key,shareAssetAmount,baseAssetAmount) = {
141141 let dataArray = readTotalLocked(key)
142142 StringEntry(key, dataTotalLocked((dataArray[IdxTotalLockedShare] - shareAssetAmount), (dataArray[IdxTotalLockedBase] - baseAssetAmount)))
143143 }
144144
145145
146146 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
147147 case s: String =>
148148 fromBase58String(s)
149149 case _: Unit =>
150150 unit
151151 case _ =>
152152 throw("Match error")
153153 }
154154
155155
156156 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
157157 case s: String =>
158158 fromBase58String(s)
159159 case _: Unit =>
160160 unit
161161 case _ =>
162162 throw("Match error")
163163 }
164164
165165
166166 func balanceOrZero (assetId) = valueOrElse(getInteger(keyBalance(assetId)), 0)
167167
168168
169169 func genericCalcPrice (balance,internalBaseAssetStr,baseAssetId,topUpBaseAmount,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = {
170170 let totalLockedArray = readTotalLocked(keyTotalLocked(internalBaseAssetStr))
171171 let totalLockedBaseAmount = totalLockedArray[IdxTotalLockedBase]
172172 let baseAssetBalance = balance
173173 let baseAssetBalanceConsideringLock = ((baseAssetBalance - totalLockedBaseAmount) + topUpBaseAmount)
174174 if ((0 > baseAssetBalanceConsideringLock))
175175 then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(baseAssetBalance)) + " baseAssetBalanceConsideringLock=") + toString(baseAssetBalanceConsideringLock)))
176176 else {
177177 let shareEmission = value(assetInfo(shareAssetId)).quantity
178178 let price = if ((shareEmission == 0))
179179 then (1 * decimalsMultPrice)
180180 else fraction(baseAssetBalanceConsideringLock, decimalsMultPrice, shareEmission)
181181 $Tuple5(price, baseAssetBalance, totalLockedBaseAmount, baseAssetBalanceConsideringLock, shareEmission)
182182 }
183183 }
184184
185185
186186 func calcPrice (balance,internalBaseAssetStr,baseAssetId,shareAssetId,decimalsMultBothAssets,decimalsMultPrice) = genericCalcPrice(balance, internalBaseAssetStr, baseAssetId, 0, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)
187187
188188
189189 func privateCurrentSysParamsREST (baseAssetStr) = {
190190 let baseAssetId = fromBase58String(baseAssetStr)
191191 let cfgArray = readAssetCfgOrFail(baseAssetStr)
192192 let shareAssetStr = cfgArray[IdxCfgShareAssetId]
193193 let shareAssetId = fromBase58String(shareAssetStr)
194194 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
195195 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
196196 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
197197 let sysState = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)
198198 $Tuple6(IntegerEntry("price", sysState._1), IntegerEntry("decimalsMultPrice", decimalsMultPrice), IntegerEntry("baseAssetBalance", sysState._2), IntegerEntry("totalLockedBaseAmount", sysState._3), IntegerEntry("baseAssetBalanceConsideringLock", sysState._4), IntegerEntry("shareEmission", sysState._5))
199199 }
200200
201201
202202 func mustManager (i) = {
203203 let pd = throw("permission denied")
204204 match managerPublicKeyOrUnit() {
205205 case pk: ByteVector =>
206206 if ((i.callerPublicKey == pk))
207207 then true
208208 else pd
209209 case _: Unit =>
210210 if ((i.caller == this))
211211 then true
212212 else pd
213213 case _ =>
214214 throw("Match error")
215215 }
216216 }
217217
218218
219219 func mustProxyAddress (i,assetId) = {
220220 let isProxy = (toString(i.caller) == valueOrElse(getString(keyProxyAddress(assetId)), EMPTY))
221221 if (isProxy)
222222 then true
223223 else {
224224 let checkCaller = mustManager(i)
225225 if ((checkCaller == checkCaller))
226226 then true
227227 else throw("Strict value is not equal to itself.")
228228 }
229229 }
230230
231231
232232 @Callable(i)
233233 func constructor (assetsStoreContract) = {
234234 let checkCaller = mustManager(i)
235235 if ((checkCaller == checkCaller))
236236 then [StringEntry(keyAssetsStoreContract(), assetsStoreContract)]
237237 else throw("Strict value is not equal to itself.")
238238 }
239239
240240
241241
242242 @Callable(i)
243243 func adminRegisterAsset (baseAssetStr,shareAssetName,shareAssetDescr,shareAssetLogo,getDelayinBlocks,shutdownManagerAddress,proxyAddress) = {
244244 let baseAssetId = fromBase58String(baseAssetStr)
245245 let decimals = value(assetInfo(baseAssetId)).decimals
246246 let check = mustManager(i)
247247 if ((check == check))
248248 then if ((toString(addressFromStringValue(shutdownManagerAddress)) != shutdownManagerAddress))
249249 then throw("invalid shutdownManagerAddress")
250250 else if ((0 > getDelayinBlocks))
251251 then throw(("invalid getDelayinBlocks=" + toString(getDelayinBlocks)))
252252 else {
253253 let shareAssetIssueAction = Issue(shareAssetName, shareAssetDescr, 1, decimals, true)
254254 let shareAssetId = calculateAssetId(shareAssetIssueAction)
255255 let shareAssetStr = toBase58String(shareAssetId)
256256 let decimalsMultPrice = ((100 * 1000) * 1000)
257257 let decimalsMultBothAssets = pow(10, 0, decimals, 0, 0, DOWN)
258258 let startPrice = (1 * decimalsMultPrice)
259259 let internalBaseAssettId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
260260 let internalBaseAssetStr = toString(internalBaseAssettId)
261261 let createOrUpdate = invoke(assetsStoreContract(), "createOrUpdate", [shareAssetStr, shareAssetLogo, false], nil)
262262 if ((createOrUpdate == createOrUpdate))
263263 then {
264264 let addLabel = invoke(assetsStoreContract(), "addLabel", [shareAssetStr, "DEFI"], nil)
265265 if ((addLabel == addLabel))
266266 then [StringEntry(keyAssetCfg(baseAssetStr), dataAssetCfg(shareAssetStr, internalBaseAssetStr, decimalsMultBothAssets, decimalsMultPrice, getDelayinBlocks)), StringEntry(keyMappingsInternal2baseAssetId(internalBaseAssettId), baseAssetStr), StringEntry(keyMappingsBaseAsset2internalId(baseAssetStr), internalBaseAssetStr), StringEntry(keyMappingsShare2baseAssetId(shareAssetStr), baseAssetStr), StringEntry(keyMappingsBaseAsset2shareId(baseAssetStr), shareAssetStr), BooleanEntry(keyShutdownPutOperation(internalBaseAssetStr), false), StringEntry(keyShutdownManager(internalBaseAssetStr), shutdownManagerAddress), IntegerEntry(keyNextInternalAssetId(), (internalBaseAssettId + 1)), IntegerEntry(keyPriceLast(internalBaseAssetStr), startPrice), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), startPrice), shareAssetIssueAction, Burn(shareAssetId, 1), StringEntry(keyProxyAddress(baseAssetStr), proxyAddress)]
267267 else throw("Strict value is not equal to itself.")
268268 }
269269 else throw("Strict value is not equal to itself.")
270270 }
271271 else throw("Strict value is not equal to itself.")
272272 }
273273
274274
275275
276276 @Callable(i)
277277 func shutdownPut (internalBaseAssetId) = {
278278 let internalBaseAssetIdStr = toString(internalBaseAssetId)
279279 let baseAssetIdStr = getStringOrFail(keyMappingsInternal2baseAssetId(internalBaseAssetId))
280280 let shutdownManagerAddress = getStringOrFail(keyShutdownManager(internalBaseAssetIdStr))
281281 if ((1 > size(baseAssetIdStr)))
282282 then throw("invalid internalBaseAssetId")
283283 else if ((toString(i.caller) != shutdownManagerAddress))
284284 then throw("access denied")
285285 else [BooleanEntry(keyShutdownPutOperation(toString(internalBaseAssetId)), true)]
286286 }
287287
288288
289289
290290 @Callable(i)
291291 func put () = {
292292 let pmt = value(i.payments[0])
293293 let baseAssetId = value(pmt.assetId)
294294 let baseAssetStr = toBase58String(baseAssetId)
295295 let userAddressStr = toString(i.caller)
296296 let cfgArray = readAssetCfgOrFail(baseAssetStr)
297297 let shareAssetStr = cfgArray[IdxCfgShareAssetId]
298298 let shareAssetId = fromBase58String(shareAssetStr)
299299 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
300300 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
301301 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
302302 let isPutBlocked = getBooleanOrFail(keyShutdownPutOperation(internalBaseAssetStr))
303303 if (isPutBlocked)
304304 then throw("put operation is blocked")
305305 else {
306306 let balance = (balanceOrZero(baseAssetStr) + pmt.amount)
307307 let price = calcPrice(balance, internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
308308 let shareAssetAmount = fraction(pmt.amount, decimalsMultPrice, price)
309309 [Reissue(shareAssetId, shareAssetAmount, true), ScriptTransfer(i.caller, shareAssetAmount, shareAssetId), StringEntry(keyOperation("P", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId)), dataOperation("FINISHED", pmt.amount, price, shareAssetAmount, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(keyProxyAddress(baseAssetStr)))), pmt.amount, baseAssetId), IntegerEntry(keyBalance(baseAssetStr), balance)]
310310 }
311311 }
312312
313313
314314
315315 @Callable(i)
316316 func submitGetRequest () = {
317317 let pmt = value(i.payments[0])
318318 let shareAssetId = value(pmt.assetId)
319319 let shareAssetStr = toBase58String(shareAssetId)
320320 let callerPubStr = toBase58String(i.callerPublicKey)
321321 let userAddress = i.caller
322322 let userAddressStr = toString(userAddress)
323323 let shareAssetAmount = pmt.amount
324324 let baseAssetStr = getStringOrFail(keyMappingsShare2baseAssetId(shareAssetStr))
325325 let baseAssetId = fromBase58String(baseAssetStr)
326326 let cfgArray = readAssetCfgOrFail(baseAssetStr)
327327 let decimalsMultBothAssets = parseIntValue(cfgArray[IdxCfgDecimalsMultBothAssets])
328328 let decimalsMultPrice = parseIntValue(cfgArray[IdxCfgDecimalsMultPrice])
329329 let getDelayBlocks = parseIntValue(cfgArray[IdxCfgGetDelayBlocks])
330330 let internalBaseAssetStr = cfgArray[IdxCfgInternalBaseAsset]
331331 let price = calcPrice(balanceOrZero(baseAssetStr), internalBaseAssetStr, baseAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
332332 let baseAssetAmount = fraction(shareAssetAmount, price, decimalsMultPrice)
333333 let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, toBase58String(i.transactionId))
334334 let operationData = dataOperation("PENDING", shareAssetAmount, price, baseAssetAmount, height, lastBlock.timestamp, (height + getDelayBlocks), 0)
335335 let balance = balanceOrZero(baseAssetStr)
336336 [Burn(shareAssetId, shareAssetAmount), StringEntry(operationKey, operationData), incrementTotalLocked(keyTotalLocked(internalBaseAssetStr), shareAssetAmount, baseAssetAmount), incrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), shareAssetAmount, baseAssetAmount)]
337337 }
338338
339339
340340
341341 @Callable(i)
342342 func executeGetRequest (baseAssetStr,userAddressStr,getTxIdStr) = {
343343 let userAddress = addressFromStringValue(userAddressStr)
344344 let assetCfgArray = readAssetCfgOrFail(baseAssetStr)
345345 let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId])
346346 let baseAssetId = fromBase58String(baseAssetStr)
347347 let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset]
348348 let operationKey = keyOperation("G", internalBaseAssetStr, userAddressStr, getTxIdStr)
349349 let operationArray = split(getStringOrFail(operationKey), SEP)
350350 let status = operationArray[IdxOperStatus]
351351 let endHeight = parseIntValue(operationArray[IdxOperEndHeight])
352352 let inShareAmount = parseIntValue(operationArray[IdxOperInAmount])
353353 let outBaseAmount = parseIntValue(operationArray[IdxOperOutAmount])
354354 if ((status != "PENDING"))
355355 then failExecuteGet("Status is not PENDING", baseAssetStr, userAddressStr, getTxIdStr)
356356 else if ((endHeight > height))
357357 then failExecuteGet(((("EndHeight[" + toString(endHeight)) + "] > ") + toString(height)), baseAssetStr, userAddressStr, getTxIdStr)
358358 else [ScriptTransfer(userAddress, outBaseAmount, baseAssetId), StringEntry(operationKey, dataOperationExecutionUpdate(operationArray, "FINISHED", lastBlock.timestamp)), decrementTotalLocked(keyTotalLocked(internalBaseAssetStr), inShareAmount, outBaseAmount), decrementTotalLocked(keyTotalLockedByUser(internalBaseAssetStr, userAddressStr), inShareAmount, outBaseAmount), IntegerEntry(keyBalance(baseAssetStr), (balanceOrZero(baseAssetStr) - outBaseAmount))]
359359 }
360360
361361
362362
363363 @Callable(i)
364364 func topUpBalance (baseAssetStr,delta) = {
365365 let assetCfgArray = readAssetCfgOrFail(baseAssetStr)
366366 let pmt = value(i.payments[0])
367367 let pmtAssetId = value(pmt.assetId)
368368 let pmtAssetStr = toBase58String(pmtAssetId)
369369 let shareAssetId = fromBase58String(assetCfgArray[IdxCfgShareAssetId])
370370 let decimalsMultBothAssets = parseIntValue(assetCfgArray[IdxCfgDecimalsMultBothAssets])
371371 let decimalsMultPrice = parseIntValue(assetCfgArray[IdxCfgDecimalsMultPrice])
372372 let internalBaseAssetStr = assetCfgArray[IdxCfgInternalBaseAsset]
373373 let topUpLastHeightKEY = keyTopUpLastHeight(internalBaseAssetStr, toString(i.caller))
374374 let topUpLastHeight = valueOrElse(getInteger(this, topUpLastHeightKEY), 0)
375375 let checks = [mustProxyAddress(i, baseAssetStr), if ((topUpLastHeight != height))
376376 then true
377377 else throw("only one topUp per block is allowed")]
378378 if ((checks == checks))
379379 then if ((baseAssetStr != pmtAssetStr))
380380 then throw("attached payment's asset id is NOT matched passed baseAssetStr")
381381 else if ((size(i.payments) > 1))
382382 then throw("only one payment can be attached")
383383 else {
384- let price = genericCalcPrice(balanceOrZero(pmtAssetStr), internalBaseAssetStr, pmtAssetId, delta, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
385-[IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), (balanceOrZero(pmtAssetStr) + delta))]
384+ let newBalance = (balanceOrZero(pmtAssetStr) + delta)
385+ let price = calcPrice(newBalance, internalBaseAssetStr, pmtAssetId, shareAssetId, decimalsMultBothAssets, decimalsMultPrice)._1
386+[IntegerEntry(keyPriceLast(internalBaseAssetStr), price), IntegerEntry(keyPriceHistory(internalBaseAssetStr, height, lastBlock.timestamp), price), IntegerEntry(topUpLastHeightKEY, height), IntegerEntry(keyBalance(pmtAssetStr), newBalance)]
386387 }
387388 else throw("Strict value is not equal to itself.")
388389 }
389390
390391
391392
392393 @Callable(i)
393394 func currentSysParamsREST (baseAssetStr) = {
394395 let sysStateTuple = privateCurrentSysParamsREST(baseAssetStr)
395396 let price = sysStateTuple._1.value
396397 let decimalsMultPrice = sysStateTuple._2.value
397398 let baseAssetBalance = sysStateTuple._3.value
398399 let totalLockedBaseAmount = sysStateTuple._4.value
399400 let baseAssetBalanceConsideringLock = sysStateTuple._5.value
400401 let shareEmission = sysStateTuple._6.value
401402 let restData = makeString(["startCurrentSysParamsREST", toString(price), toString(decimalsMultPrice), toString(baseAssetBalance), toString(totalLockedBaseAmount), toString(baseAssetBalanceConsideringLock), toString(shareEmission), "endCurrentSysParamsREST"], SEP)
402403 throw(restData)
403404 }
404405
405406
406407
407408 @Callable(i)
408409 func setManager (pendingManagerPublicKey) = {
409410 let checkCaller = mustManager(i)
410411 if ((checkCaller == checkCaller))
411412 then {
412413 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
413414 if ((checkManagerPublicKey == checkManagerPublicKey))
414415 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
415416 else throw("Strict value is not equal to itself.")
416417 }
417418 else throw("Strict value is not equal to itself.")
418419 }
419420
420421
421422
422423 @Callable(i)
423424 func confirmManager () = {
424425 let pm = pendingManagerPublicKeyOrUnit()
425426 let hasPM = if (isDefined(pm))
426427 then true
427428 else throw("no pending manager")
428429 if ((hasPM == hasPM))
429430 then {
430431 let checkPM = if ((i.callerPublicKey == value(pm)))
431432 then true
432433 else throw("you are not pending manager")
433434 if ((checkPM == checkPM))
434435 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
435436 else throw("Strict value is not equal to itself.")
436437 }
437438 else throw("Strict value is not equal to itself.")
438439 }
439440
440441
441442 @Verifier(tx)
442443 func verify () = {
443444 let targetPublicKey = match managerPublicKeyOrUnit() {
444445 case pk: ByteVector =>
445446 pk
446447 case _: Unit =>
447448 tx.senderPublicKey
448449 case _ =>
449450 throw("Match error")
450451 }
451452 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
452453 }
453454

github/deemru/w8io/026f985 
86.59 ms