tx · FYpRT49EQNUeG8D8eBUJphmaZtgNzPhZcEWNhdc296sm

3N7u4Xv7qpdnZ6RuSa9h9Xcmb9oTfNrcYDs:  -0.01500000 Waves

2020.09.24 13:28 [1191259] smart account 3N7u4Xv7qpdnZ6RuSa9h9Xcmb9oTfNrcYDs > SELF 0.00000000 Waves

{ "type": 13, "id": "FYpRT49EQNUeG8D8eBUJphmaZtgNzPhZcEWNhdc296sm", "fee": 1500000, "feeAssetId": null, "timestamp": 1600943348209, "version": 1, "sender": "3N7u4Xv7qpdnZ6RuSa9h9Xcmb9oTfNrcYDs", "senderPublicKey": "61yWuYBVbW6fCkThp3zNHRodxRPMRhtBzJnDnSoVyKz2", "proofs": [ "5kJ5weK7CTnoWYxvfPS8LkRYVgsyvYB2DfmZ6LmPnhqBqPHtBp1q7Z2UTVU1hpK35G3vnZi5cf2WyXHuerWiRuoS" ], "script": "base64:AAIEAAAAAAAAABUIAhIAEgASBAoCCAgSABIFCgMIAQEAAABHAQAAABFrZXlBY2N1bXVsYXRlZEZlZQAAAAACAAAAEiVzX19hY2N1bXVsYXRlZEZlZQEAAAAOa2V5VWNvbGxhdGVyYWwAAAAAAgAAAA8lc19fdWNvbGxhdGVyYWwBAAAAGWtleVRvdGFsTGVuZGVkQXRPdGhlckFjY3MAAAAAAgAAABolc19fdG90YWxMZW5kZWRBdE90aGVyQWNjcwEAAAATa2V5QXNzZXRMb2NrZWRUb3RhbAAAAAEAAAAHYXNzZXRJZAkAASwAAAACAgAAABglcyVzX19hc3NldExvY2tlZFRvdGFsX18FAAAAB2Fzc2V0SWQBAAAAE2tleUFjY291bnRPcGVyYXRpb24AAAADAAAADHVubG9ja0hlaWdodAAAAAdhZGRyZXNzAAAABnN0YXR1cwkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAHiVzJXMlZCVzX19kZWZvQXNzZXRPcGVyYXRpb25fXwUAAAAHYWRkcmVzcwIAAAACX18JAAGkAAAAAQUAAAAMdW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Fzc2V0SWQGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleXmwwoM=", "chainId": 84, "height": 1191259, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FryPF16My4axBNsv3pwJ1tEyCyphq4B4nN6o5DWhD1q3 Next: GJKEdnukFxRCBcoZJKEYfUZB9UK6DA5Fc2sQM8YnChBA Diff:
OldNewDifferences
227227 let requiredDefoAssetAmount = fraction(baseAssetAmountNoFee, priceDecimals, price)
228228 let change = (pmtDefoAmountNoFee - requiredDefoAssetAmount)
229229 if (true)
230- then throw(((((((("baseAssetAmountNoFee=" + toString(baseAssetAmountNoFee)) + " change=") + toString(change)) + " baseAssetAmountNoBalanceLimit=") + toString(baseAssetAmountNoBalanceLimit)) + " doubleCheckCurrPoolAmount=") + toString(doubleCheckCurrPoolAmount)))
230+ then throw(((((((((("baseAssetAmountNoFee=" + toString(baseAssetAmountNoFee)) + " change=") + toString(change)) + " baseAssetAmountNoBalanceLimit=") + toString(baseAssetAmountNoBalanceLimit)) + " doubleCheckCurrPoolAmount=") + toString(doubleCheckCurrPoolAmount)) + " doubleCheckBasicBalance=") + toString(doubleCheckBasicBalance)))
231231 else [IntegerEntry(keyUcollateral(), (ucollateral - baseAssetAmountNoFee)), StringEntry(keyAccountOperation(height, callerAddress, "FINISHED"), assetDataSwapOperation(pmt.amount, toBase58String(pmtAsset), price, baseAssetAmountNoFee, baseAssetIdStr, pmtDefoAmountGross, defoAmountFee)), Burn(defoAssetId, requiredDefoAssetAmount), ScriptTransfer(i.caller, baseAssetAmountNoFee, baseAssetId), ScriptTransfer(i.caller, change, defoAssetId), IntegerEntry(keyAccumulatedFee(), (accumulatedFee + defoAmountFee))]
232232 }
233233 }
333333 else {
334334 let synth2basicPrice = controlAccReadPriceByHeight(idxHeight)
335335 let assetInBytes = fromBase58String(assetIn)
336- let $t01894619816 = if ((assetInBytes == baseAssetId))
336+ let $t01904319913 = if ((assetInBytes == baseAssetId))
337337 then {
338338 let synthAmt = fraction(amountIn, priceDecimals, synth2basicPrice)
339339 $Tuple4(synthAmt, Reissue(defoAssetId, synthAmt, true), ScriptTransfer(addressFromStringValue(accountAddress), synthAmt, defoAssetId), IntegerEntry(keyUcollateral(), (ucollateral + amountIn)))
345345 $Tuple4(basicAmt, Burn(baseAssetId, basicAmt), ScriptTransfer(addressFromStringValue(accountAddress), basicAmt, baseAssetId), IntegerEntry(keyUcollateral(), (ucollateral - basicAmt)))
346346 }
347347 else throw(("Unsupported assetIn=" + assetIn))
348- let amountOut = $t01894619816._1
349- let burnOrIssue = $t01894619816._2
350- let transferSynthOrBasic = $t01894619816._3
351- let ucollateralEntry = $t01894619816._4
348+ let amountOut = $t01904319913._1
349+ let burnOrIssue = $t01904319913._2
350+ let transferSynthOrBasic = $t01904319913._3
351+ let ucollateralEntry = $t01904319913._4
352352 if ((0 > (currAssetLockedTotal - accountLockedAmt)))
353353 then throw((("Invalid data state: " + assetLockedTotalKey) + " less then 0"))
354354 else ((([IntegerEntry(assetLockedTotalKey, (currAssetLockedTotal - accountLockedAmt)), DeleteEntry(accOperationKey), StringEntry(keyAccountOperation(unlockHeight, accountAddress, "FINISHED"), assetDataSwapOperation(amountIn, assetIn, synth2basicPrice, amountOut, assetOut, 0, 0))] :+ burnOrIssue) :+ transferSynthOrBasic) :+ ucollateralEntry)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func keyAccumulatedFee () = "%s__accumulatedFee"
55
66
77 func keyUcollateral () = "%s__ucollateral"
88
99
1010 func keyTotalLendedAtOtherAccs () = "%s__totalLendedAtOtherAccs"
1111
1212
1313 func keyAssetLockedTotal (assetId) = ("%s%s__assetLockedTotal__" + assetId)
1414
1515
1616 func keyAccountOperation (unlockHeight,address,status) = ((((("%s%s%d%s__defoAssetOperation__" + address) + "__") + toString(unlockHeight)) + "__") + status)
1717
1818
1919 func keyFactory () = "%s__factory"
2020
2121
2222 func keyLendedAmountByAssetCode (assetCode) = ("%s%s__lendedBaseAssetAmount__" + assetCode)
2323
2424
2525 func keyPrice (assetCode) = ("%s%s__price__" + assetCode)
2626
2727
2828 let IdxOperationAmountIn = 1
2929
3030 let IdxOperationAssetIn = 2
3131
3232 let IdxOperationPrice = 3
3333
3434 let IdxOperationAmountOut = 4
3535
3636 let IdxOperationAssetOut = 5
3737
3838 func assetDataSwapOperation (amountIn,assetIn,price,amountOut,assetOut,bruttoAmount,feeAmount) = ((((((((((((("%d%s%d%s%d%d%d__" + toString(amountIn)) + "__") + assetIn) + "__") + toString(amountOut)) + "__") + assetOut) + "__") + toString(price)) + "__") + toString(bruttoAmount)) + "__") + toString(feeAmount))
3939
4040
4141 func assetDataRebalanceTrace (debtorAssetCode,debtPmt,basePmt,lendedAmtBefore,lendedAmtAfter) = ((((((((((((("%s%s%d%s%d%d%d__" + debtorAssetCode) + "__") + toBase58String(value(debtPmt.assetId))) + "__") + toString(debtPmt.amount)) + "__") + toBase58String(value(basePmt.assetId))) + "__") + toString(basePmt.amount)) + "__") + toString(lendedAmtBefore)) + "__") + toString(lendedAmtAfter))
4242
4343
4444 func assetReadSwapDataArrayOrFail (accOperationKey) = {
4545 let accOperationDataStr = valueOrErrorMessage(getString(this, accOperationKey), ("There is no request for passed arguments: " + accOperationKey))
4646 split(accOperationDataStr, "__")
4747 }
4848
4949
5050 let nullInt = -1
5151
5252 let nullStr = "NULL"
5353
5454 let factoryAcc = addressFromStringValue(valueOrErrorMessage(getString(this, keyFactory()), ((("No config at this=" + toString(this)) + " for key=") + keyFactory())))
5555
5656 func keyFactoryDebtAssetId () = "%s%s__commonConfig__debtAssetId"
5757
5858
5959 func keyFactoryAssetCfg (assetAddressStr) = (("%s%s%s__defoAsset__" + assetAddressStr) + "__config")
6060
6161
6262 func keyFactoryAssetCurrentPool (assetAccAddress) = (("%s%s%s__defoAsset__" + toString(assetAccAddress)) + "__currentPool")
6363
6464
6565 func keyFactoryDefoAddressByAssetCode (assetCode) = (("%s%s%s__defoAsset__" + assetCode) + "__addressByAssetCode")
6666
6767
6868 func factoryReadDebtAssetId () = valueOrErrorMessage(getString(factoryAcc, keyFactoryDebtAssetId()), ((("No config at factory=" + toString(factoryAcc)) + " for key=") + keyFactoryDebtAssetId()))
6969
7070
7171 func factoryReadAssetCfgByAddress (assetAddressStr) = split(valueOrErrorMessage(getString(factoryAcc, keyFactoryAssetCfg(assetAddressStr)), ((("No config at factory=" + toString(factoryAcc)) + " for key=") + keyFactoryAssetCfg(assetAddressStr))), "__")
7272
7373
7474 func factoryReadAssetCfgByCode (assetCode) = {
7575 let assetAddressStr = valueOrErrorMessage(getString(factoryAcc, keyFactoryDefoAddressByAssetCode(assetCode)), ((("No config at factory=" + toString(factoryAcc)) + " for key=") + keyFactoryDefoAddressByAssetCode(assetCode)))
7676 $Tuple2(assetAddressStr, factoryReadAssetCfgByAddress(assetAddressStr))
7777 }
7878
7979
8080 let IdxDefoAssetCode = 1
8181
8282 let IdxDefoAssetId = 2
8383
8484 let IdxDefoAssetStatus = 3
8585
8686 let IdxPriceDecimals = 4
8787
8888 let IdxBaseAssetId = 5
8989
9090 let IdxOverCollateralPercent = 6
9191
9292 let IdxMinInitPool = 7
9393
9494 let IdxPriceOracleAddress = 8
9595
9696 let IdxMinBuyPayment = 9
9797
9898 let IdxMinSellPayment = 10
9999
100100 let IdxBuyLockInterval = 11
101101
102102 let IdxSellLockInterval = 12
103103
104104 let IdxBuyFeePercent = 13
105105
106106 let IdxSellFeePercent = 14
107107
108108 let thisCfgArray = factoryReadAssetCfgByAddress(toString(this))
109109
110110 let defoAssetCode = thisCfgArray[IdxDefoAssetCode]
111111
112112 let defoAssetId = fromBase58String(thisCfgArray[IdxDefoAssetId])
113113
114114 let priceOracleAcc = addressFromStringValue(thisCfgArray[IdxPriceOracleAddress])
115115
116116 let overCollateralPercent = parseIntValue(thisCfgArray[IdxOverCollateralPercent])
117117
118118 let baseAssetIdStr = thisCfgArray[IdxBaseAssetId]
119119
120120 let baseAssetId = fromBase58String(baseAssetIdStr)
121121
122122 let priceDecimals = parseIntValue(thisCfgArray[IdxPriceDecimals])
123123
124124 let minBasicBuyAmount = parseIntValue(thisCfgArray[IdxMinBuyPayment])
125125
126126 let minSynthSellAmount = parseIntValue(thisCfgArray[IdxMinSellPayment])
127127
128128 let buyLockInterval = parseIntValue(thisCfgArray[IdxBuyLockInterval])
129129
130130 let sellLockInterval = parseIntValue(thisCfgArray[IdxSellLockInterval])
131131
132132 let buyFeePercent = parseIntValue(thisCfgArray[IdxBuyFeePercent])
133133
134134 let sellFeePercent = parseIntValue(thisCfgArray[IdxSellFeePercent])
135135
136136 func controlAccReadPrice (assetCode) = valueOrErrorMessage(getInteger(priceOracleAcc, keyPrice(assetCode)), ((("No price at priceOracle=" + toString(priceOracleAcc)) + " for key=") + keyPrice(assetCode)))
137137
138138
139139 func controlAccReadCurrIdxOrFail () = valueOrErrorMessage(getInteger(priceOracleAcc, "currIdx"), ("No currIdx at controlAcc=" + toString(priceOracleAcc)))
140140
141141
142142 func controlAccReadIdxHeight (idx) = {
143143 let idxHeightKey = ("idxHeight_" + toString(idx))
144144 valueOrElse(getInteger(priceOracleAcc, idxHeightKey), 0)
145145 }
146146
147147
148148 func controlAccReadPriceByHeight (priceHeight) = {
149149 let priceByHeightKey = ("price_" + toString(priceHeight))
150150 valueOrErrorMessage(getInteger(priceOracleAcc, priceByHeightKey), ((("No " + priceByHeightKey) + " at controlAcc=") + toString(priceOracleAcc)))
151151 }
152152
153153
154154 func getStakingBalance () = valueOrElse(getInteger(this, ((("rpd_balance_" + baseAssetIdStr) + "_") + toString(this))), 0)
155155
156156
157157 let ucollateral = valueOrElse(getInteger(this, keyUcollateral()), 0)
158158
159159 let accumulatedFee = valueOrElse(getInteger(this, keyAccumulatedFee()), 0)
160160
161161 let currPoolAmount = getIntegerValue(factoryAcc, keyFactoryAssetCurrentPool(this))
162162
163163 let doubleCheckBasicBalance = (assetBalance(this, baseAssetId) + getStakingBalance())
164164
165165 let doubleCheckUcollateral = if ((0 > ucollateral))
166166 then 0
167167 else ucollateral
168168
169169 let doubleCheckCurrPoolAmount = (doubleCheckBasicBalance - ucollateral)
170170
171171 let price = controlAccReadPrice(thisCfgArray[IdxDefoAssetCode])
172172
173173 let overPrice = (((priceDecimals + overCollateralPercent) * price) / priceDecimals)
174174
175175 let emission = value(assetInfo(defoAssetId)).quantity
176176
177177 let basicAssetLockedAmt = valueOrElse(getInteger(this, keyAssetLockedTotal(baseAssetIdStr)), 0)
178178
179179 let availablePoolBalance = (currPoolAmount - basicAssetLockedAmt)
180180
181181 func internalBuyAsset (sellerAddr,sellAmt,sellAssetId,minSellAmt,buy2sellPrice,feePercent) = {
182182 let availableDefoAssetInPool = (fraction(availablePoolBalance, priceDecimals, overPrice) - emission)
183183 let fullDefoAssetAmountNoPoolLimit = fraction(sellAmt, priceDecimals, buy2sellPrice)
184184 let fullDefoAssetAmountBrutto = if ((fullDefoAssetAmountNoPoolLimit > availableDefoAssetInPool))
185185 then availableDefoAssetInPool
186186 else fullDefoAssetAmountNoPoolLimit
187187 let defoAssetAmount = fraction((priceDecimals - feePercent), fullDefoAssetAmountBrutto, priceDecimals)
188188 let feeAmount = (fullDefoAssetAmountBrutto - defoAssetAmount)
189189 let requiredBasicAssetAmount = fraction(fullDefoAssetAmountBrutto, buy2sellPrice, priceDecimals)
190190 let change = (sellAmt - requiredBasicAssetAmount)
191191 if ((0 >= availableDefoAssetInPool))
192192 then throw((("impossible to issue new " + defoAssetCode) + ": not enough collateral"))
193193 else if ((minSellAmt > sellAmt))
194194 then throw(((((("impossible to issue new " + defoAssetCode) + ": payment=") + toString(sellAmt)) + "is less then min amount=") + toString(minSellAmt)))
195195 else $Tuple2([IntegerEntry(keyUcollateral(), (ucollateral + requiredBasicAssetAmount)), StringEntry(keyAccountOperation(height, toString(sellerAddr), "FINISHED"), assetDataSwapOperation(sellAmt, toBase58String(sellAssetId), price, defoAssetAmount, toBase58String(defoAssetId), fullDefoAssetAmountBrutto, feeAmount)), Reissue(defoAssetId, (defoAssetAmount + feeAmount), true), ScriptTransfer(sellerAddr, defoAssetAmount, defoAssetId), ScriptTransfer(sellerAddr, change, sellAssetId), IntegerEntry(keyAccumulatedFee(), (accumulatedFee + feeAmount))], change)
196196 }
197197
198198
199199 @Callable(i)
200200 func buyAsset () = {
201201 let pmt = value(i.payments[0])
202202 let pmtAssetId = value(pmt.assetId)
203203 if ((pmtAssetId != baseAssetId))
204204 then throw(((("Payment asset id doesn't match basic asset: expected=" + toBase58String(baseAssetId)) + " actual=") + toBase58String(pmtAssetId)))
205205 else internalBuyAsset(i.caller, pmt.amount, pmtAssetId, minBasicBuyAmount, price, buyFeePercent)._1
206206 }
207207
208208
209209
210210 @Callable(i)
211211 func sellAsset () = {
212212 let pmt = value(i.payments[0])
213213 let pmtAsset = value(pmt.assetId)
214214 let callerAddress = toString(i.caller)
215215 if ((pmtAsset != defoAssetId))
216216 then throw(((("Invalid payment asset id: expected=" + toBase58String(defoAssetId)) + " actual=") + toBase58String(pmtAsset)))
217217 else if ((minSynthSellAmount > pmt.amount))
218218 then throw(((("Payment amount less then mininimal allowed: paymentAmount=" + toString(pmt.amount)) + " minAmount=") + toString(minSynthSellAmount)))
219219 else {
220220 let pmtDefoAmountGross = pmt.amount
221221 let defoAmountFee = fraction((priceDecimals - sellFeePercent), pmtDefoAmountGross, priceDecimals)
222222 let pmtDefoAmountNoFee = (pmtDefoAmountGross - defoAmountFee)
223223 let baseAssetAmountNoBalanceLimit = fraction(pmtDefoAmountNoFee, price, priceDecimals)
224224 let baseAssetAmountNoFee = if ((baseAssetAmountNoBalanceLimit > doubleCheckCurrPoolAmount))
225225 then doubleCheckCurrPoolAmount
226226 else baseAssetAmountNoBalanceLimit
227227 let requiredDefoAssetAmount = fraction(baseAssetAmountNoFee, priceDecimals, price)
228228 let change = (pmtDefoAmountNoFee - requiredDefoAssetAmount)
229229 if (true)
230- then throw(((((((("baseAssetAmountNoFee=" + toString(baseAssetAmountNoFee)) + " change=") + toString(change)) + " baseAssetAmountNoBalanceLimit=") + toString(baseAssetAmountNoBalanceLimit)) + " doubleCheckCurrPoolAmount=") + toString(doubleCheckCurrPoolAmount)))
230+ then throw(((((((((("baseAssetAmountNoFee=" + toString(baseAssetAmountNoFee)) + " change=") + toString(change)) + " baseAssetAmountNoBalanceLimit=") + toString(baseAssetAmountNoBalanceLimit)) + " doubleCheckCurrPoolAmount=") + toString(doubleCheckCurrPoolAmount)) + " doubleCheckBasicBalance=") + toString(doubleCheckBasicBalance)))
231231 else [IntegerEntry(keyUcollateral(), (ucollateral - baseAssetAmountNoFee)), StringEntry(keyAccountOperation(height, callerAddress, "FINISHED"), assetDataSwapOperation(pmt.amount, toBase58String(pmtAsset), price, baseAssetAmountNoFee, baseAssetIdStr, pmtDefoAmountGross, defoAmountFee)), Burn(defoAssetId, requiredDefoAssetAmount), ScriptTransfer(i.caller, baseAssetAmountNoFee, baseAssetId), ScriptTransfer(i.caller, change, defoAssetId), IntegerEntry(keyAccumulatedFee(), (accumulatedFee + defoAmountFee))]
232232 }
233233 }
234234
235235
236236
237237 @Callable(i)
238238 func crossExchange (buyAssetCodeConfirm,sellAssetCodeConfirm) = {
239239 let pmt = value(i.payments[0])
240240 let pmtAsset = value(pmt.assetId)
241241 let pmtAssetStr = toBase58String(pmtAsset)
242242 let pmtAmount = pmt.amount
243243 let callerAddress = toString(i.caller)
244244 let buyAssetCfg = thisCfgArray
245245 let sellAssetTuple = factoryReadAssetCfgByCode(sellAssetCodeConfirm)
246246 let sellAssetCfg = sellAssetTuple._2
247247 let sellAssetAccAddress = valueOrErrorMessage(addressFromString(sellAssetTuple._1), ("couldn't parse address from string for assetCode=" + sellAssetCodeConfirm))
248248 let minSellPmt = valueOrErrorMessage(parseInt(sellAssetCfg[IdxMinSellPayment]), ("minSellPmt parsing error: rawVal=" + sellAssetCfg[IdxMinSellPayment]))
249249 if ((thisCfgArray[IdxDefoAssetCode] != buyAssetCodeConfirm))
250250 then throw(((("buyAsset confirmation failed: buyAssetIdConfirm=" + thisCfgArray[IdxDefoAssetCode]) + " BUT buyAssetId=") + buyAssetCodeConfirm))
251251 else if ((sellAssetCfg[IdxDefoAssetId] != pmtAssetStr))
252252 then throw(((("sellAsset confirmation failed: sellAssetIdConfirm=" + sellAssetCfg[IdxDefoAssetId]) + "BUT pmtAsset=") + pmtAssetStr))
253253 else if ((thisCfgArray[IdxDefoAssetStatus] != "ISSUED"))
254254 then throw(((("toAsset has not been issued yet: buyAssetId=" + buyAssetCodeConfirm) + " BUT status=") + thisCfgArray[IdxDefoAssetStatus]))
255255 else if ((sellAssetCfg[IdxDefoAssetStatus] != "ISSUED"))
256256 then throw(((("fromAssetCfg has not been issued yet: sellAssetId=" + pmtAssetStr) + " BUT status=") + sellAssetCfg[IdxDefoAssetStatus]))
257257 else {
258258 let buyAssetUsdPrice = price
259259 let sellAssetUsdPrice = controlAccReadPrice(sellAssetCodeConfirm)
260260 let buy2sellPrice = fraction(buyAssetUsdPrice, priceDecimals, sellAssetUsdPrice)
261261 let debtAssetId = fromBase58String(factoryReadDebtAssetId())
262262 let usdnDebt = fraction(sellAssetUsdPrice, pmtAmount, priceDecimals)
263263 let totalLendedAtOtherAccs = valueOrElse(getInteger(this, keyTotalLendedAtOtherAccs()), 0)
264264 let lendedAmountByAssetCodeKey = keyLendedAmountByAssetCode(sellAssetCodeConfirm)
265265 let lendedAmtByAssetCode = valueOrElse(getInteger(this, lendedAmountByAssetCodeKey), 0)
266266 let buyAssetResult = internalBuyAsset(i.caller, pmtAmount, pmtAsset, minSellPmt, buy2sellPrice, fraction(buyFeePercent, 150, 100))
267267 ((((buyAssetResult._1 :+ ScriptTransfer(sellAssetAccAddress, usdnDebt, debtAssetId)) :+ ScriptTransfer(sellAssetAccAddress, (pmtAmount - buyAssetResult._2), pmtAsset)) :+ IntegerEntry(lendedAmountByAssetCodeKey, (lendedAmtByAssetCode + usdnDebt))) :+ IntegerEntry(keyTotalLendedAtOtherAccs(), (totalLendedAtOtherAccs + usdnDebt)))
268268 }
269269 }
270270
271271
272272
273273 @Callable(i)
274274 func rebalanceDebts () = {
275275 let debtAssetId = fromBase58String(factoryReadDebtAssetId())
276276 let debtPmt0 = value(i.payments[0])
277277 let debtPmtAsset0 = value(debtPmt0.assetId)
278278 let basePmt1 = value(i.payments[1])
279279 let basePmtAsset1 = value(basePmt1.assetId)
280280 let debtorAddress = toString(i.caller)
281281 let debtorAssetCfg = factoryReadAssetCfgByAddress(debtorAddress)
282282 let debtorAssetCode = debtorAssetCfg[IdxDefoAssetCode]
283283 let lendedAmountByAssetCodeKey = keyLendedAmountByAssetCode(debtorAssetCode)
284284 let lendedAmt = valueOrErrorMessage(getInteger(this, lendedAmountByAssetCodeKey), ("No debts for " + debtorAssetCode))
285285 if ((debtAssetId != debtPmtAsset0))
286286 then throw(((("invalid debt asset id in the first paymet: expected=" + toBase58String(debtAssetId)) + " actual=") + toBase58String(debtPmtAsset0)))
287287 else if ((baseAssetId != basePmtAsset1))
288288 then throw(((("invalid base asset id in the second payment: expected=" + toBase58String(baseAssetId)) + " actual=") + toBase58String(basePmtAsset1)))
289289 else if ((debtPmt0.amount != basePmt1.amount))
290290 then throw("first payment amount doesn't match to the second payment amount")
291291 else if ((0 >= lendedAmt))
292292 then throw(("lendedAmt is less then zero: lendedAmt=" + toString(lendedAmt)))
293293 else if ((0 >= debtPmt0.amount))
294294 then throw(("attached payment must be greater then 0: pmt0.amount=" + toString(debtPmt0.amount)))
295295 else if ((debtPmt0.amount > lendedAmt))
296296 then throw(((("attached payment is grater than required: pmtAmount=" + toString(debtPmt0.amount)) + " lendedAmt=") + toString(lendedAmt)))
297297 else {
298298 let totalLendedAtOtherAccs = valueOrElse(getInteger(this, keyTotalLendedAtOtherAccs()), 0)
299299 let lendedAmtAfter = (lendedAmt - debtPmt0.amount)
300300 [IntegerEntry(lendedAmountByAssetCodeKey, lendedAmtAfter), IntegerEntry(keyTotalLendedAtOtherAccs(), (totalLendedAtOtherAccs - debtPmt0.amount)), StringEntry(("%s%s__rebalanceTrace__" + toBase58String(i.transactionId)), assetDataRebalanceTrace(debtorAssetCode, debtPmt0, basePmt1, lendedAmt, lendedAmtAfter))]
301301 }
302302 }
303303
304304
305305
306306 @Callable(i)
307307 func withdraw (accountAddress,unlockHeight,idx) = {
308308 let accOperationKey = keyAccountOperation(unlockHeight, accountAddress, "PENDING")
309309 let accOperationDataArray = assetReadSwapDataArrayOrFail(accOperationKey)
310310 let amountIn = parseIntValue(accOperationDataArray[IdxOperationAmountIn])
311311 let assetIn = accOperationDataArray[IdxOperationAssetIn]
312312 let assetOut = accOperationDataArray[IdxOperationAssetOut]
313313 if ((unlockHeight > height))
314314 then throw((("Please wait " + toString(unlockHeight)) + " to withdraw your funds"))
315315 else {
316316 let accountLockedAmt = amountIn
317317 if ((0 >= accountLockedAmt))
318318 then throw("LockedAmount <= 0")
319319 else {
320320 let assetLockedTotalKey = keyAssetLockedTotal(accOperationDataArray[IdxOperationAssetIn])
321321 let currAssetLockedTotal = valueOrErrorMessage(getInteger(this, assetLockedTotalKey), (("State contains sellAssetRequest=" + accOperationKey) + " BUT no totalLocked"))
322322 let idxHeight = controlAccReadIdxHeight(idx)
323323 let prevIdxHeight = controlAccReadIdxHeight((idx - 1))
324324 let currIdx = controlAccReadCurrIdxOrFail()
325325 if (if (if ((idx > currIdx))
326326 then true
327327 else (unlockHeight > idxHeight))
328328 then true
329329 else if ((prevIdxHeight != 0))
330330 then (prevIdxHeight >= unlockHeight)
331331 else false)
332332 then throw(((((((((("invalid price idx: idx=" + toString(idx)) + " currIdx=") + toString(currIdx)) + " idxHeight=") + toString(idxHeight)) + " unlockHeight=") + toString(unlockHeight)) + " prevIdxHeight=") + toString(prevIdxHeight)))
333333 else {
334334 let synth2basicPrice = controlAccReadPriceByHeight(idxHeight)
335335 let assetInBytes = fromBase58String(assetIn)
336- let $t01894619816 = if ((assetInBytes == baseAssetId))
336+ let $t01904319913 = if ((assetInBytes == baseAssetId))
337337 then {
338338 let synthAmt = fraction(amountIn, priceDecimals, synth2basicPrice)
339339 $Tuple4(synthAmt, Reissue(defoAssetId, synthAmt, true), ScriptTransfer(addressFromStringValue(accountAddress), synthAmt, defoAssetId), IntegerEntry(keyUcollateral(), (ucollateral + amountIn)))
340340 }
341341 else if ((assetInBytes == defoAssetId))
342342 then {
343343 let basicAmt = fraction(amountIn, synth2basicPrice, priceDecimals)
344344 let newUcollateral = (ucollateral - basicAmt)
345345 $Tuple4(basicAmt, Burn(baseAssetId, basicAmt), ScriptTransfer(addressFromStringValue(accountAddress), basicAmt, baseAssetId), IntegerEntry(keyUcollateral(), (ucollateral - basicAmt)))
346346 }
347347 else throw(("Unsupported assetIn=" + assetIn))
348- let amountOut = $t01894619816._1
349- let burnOrIssue = $t01894619816._2
350- let transferSynthOrBasic = $t01894619816._3
351- let ucollateralEntry = $t01894619816._4
348+ let amountOut = $t01904319913._1
349+ let burnOrIssue = $t01904319913._2
350+ let transferSynthOrBasic = $t01904319913._3
351+ let ucollateralEntry = $t01904319913._4
352352 if ((0 > (currAssetLockedTotal - accountLockedAmt)))
353353 then throw((("Invalid data state: " + assetLockedTotalKey) + " less then 0"))
354354 else ((([IntegerEntry(assetLockedTotalKey, (currAssetLockedTotal - accountLockedAmt)), DeleteEntry(accOperationKey), StringEntry(keyAccountOperation(unlockHeight, accountAddress, "FINISHED"), assetDataSwapOperation(amountIn, assetIn, synth2basicPrice, amountOut, assetOut, 0, 0))] :+ burnOrIssue) :+ transferSynthOrBasic) :+ ucollateralEntry)
355355 }
356356 }
357357 }
358358 }
359359
360360
361361 @Verifier(tx)
362362 func verify () = match tx {
363363 case inv: InvokeScriptTransaction =>
364364 if ((inv.function != "rebalanceDebts"))
365365 then throw("only rebalanceDebts call is allowed")
366366 else if ((factoryReadAssetCfgByAddress(toString(addressFromRecipient(inv.dApp)))[IdxDefoAssetStatus] != "ISSUED"))
367367 then throw("only defo dapp is allowed")
368368 else if ((inv.fee > (900 * 1000)))
369369 then throw(("fee amount is greater than max allowed: " + toString(inv.fee)))
370370 else if (isDefined(inv.feeAssetId))
371371 then throw("only Waves is allowed as feeAssetId")
372372 else true
373373 case _ =>
374374 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
375375 }
376376

github/deemru/w8io/169f3d6 
82.38 ms