tx · E6QJjm3UV2dC3HUH22vQB7Yc4S2FuyozESGvmLCPk1XY

3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS:  -0.01400000 Waves

2020.11.09 15:23 [1257799] smart account 3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS > SELF 0.00000000 Waves

{ "type": 13, "id": "E6QJjm3UV2dC3HUH22vQB7Yc4S2FuyozESGvmLCPk1XY", "fee": 1400000, "feeAssetId": null, "timestamp": 1604924592696, "version": 1, "sender": "3N3UHNYQ8xwe2WWLKgXX628JyUtF6kYK4wS", "senderPublicKey": "Hxyif8HnnHh34SZ7PZewDcNUgrZfHNJsQvLNCcPbCW27", "proofs": [ "5a7MG55P34Reg3tfSMkomDwcFeRJJD8ubNUFvcVXSMxwD34kYnRZusEf42nAbc8dkhq6ESLEmcVj4iyAu2bdaRB2" ], "script": "base64:AAIEAAAAAAAAAD0IAhIKCggICAEIAQEICBIRCg8ICAEIAQgBAQEBAQEBAQESAwoBCBIDCgEIEgQKAggBEgQKAggIEgQKAggIAAAAaQEAAAAWY29udmVydEpzb25BcnJheVRvTGlzdAAAAAIAAAAJanNvbkFycmF5AAAAC3NwbGl0U3ltYm9sCQAEtQAAAAIFAAAACWpzb25BcnJheQUAAAALc3BsaXRTeW1ib2wBAAAAGGdldFN0cmluZ0J5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5AgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5CQEAAAALdmFsdWVPckVsc2UAAAACCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQcAAAAAA1NFUAIAAAACX18AAAAADGtleUFzc2V0Q29kZQAAAAAAAAAAAQAAAAAKa2V5QXNzZXRJZAAAAAAAAAAAAgAAAAAOa2V5QXNzZXRTdGF0dXMAAAAAAAAAAAMAAAAAFWtleUFzc2V0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AAAAAQkAASwAAAACCQABLAAAAAICAAAAIkNhbm5vdCBmaW5kIHBvb2wgbWFrZXIgYnkgYWRkcmVzcyAFAAAAEHBvb2xNYWtlckFkZHJlc3MCAAAAFSBvciBubyBsb2NrZWQgYW1vdW50LgMJAABmAAAAAgUAAAAOd2l0aGRyYXdIZWlnaHQFAAAABmhlaWdodAkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAMUGxlYXNlIHdhaXQgCQABpAAAAAEFAAAADndpdGhkcmF3SGVpZ2h0AgAAABEgYmVmb3JlIHdpdGhkcmF3LgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAYcG9vbE1ha2VyTG9ja2VkQW1vdW50S2V5AAAAAAAAAAAACQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABhwb29sVG90YWxMb2NrZWRBbW91bnRLZXkJAABlAAAAAgUAAAAPcG9vbFRvdGFsTG9ja2VkBQAAABlyZWdpc3RlcmVkQW1vdW50NFdpdGhkcmF3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABhwb29sTWFrZXJVbmxvY2tIZWlnaHRLZXkAAAAAAAAAAAAJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAQcG9vbE1ha2VyQWRkcmVzcwUAAAAZcmVnaXN0ZXJlZEFtb3VudDRXaXRoZHJhdwUAAAAPbmV1dHJpbm9Bc3NldElkBQAAAANuaWwAAAAA4vaDMg==", "chainId": 84, "height": 1257799, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FzfZGgJjPWhCp836dTNqB94ktnnq1rdPVvfUhY4n9ie3 Next: Gf2jS6mkxcu4biC4kJtUMxboDuQrqWPzbb7XYCv6g6kv Diff:
OldNewDifferences
301301 let assetEmission = (assetEmissionDirty - defoAssetBalance)
302302 let priceOracleAddress = addressFromStringValue(getAssetPriceOracleAddress(assetConfigurationList))
303303 let currentPrice = getAssetPrice(priceOracleAddress, assetCode)
304- let priceWithOvercollateralRate = (((multiplicator + getAssetOverCollateralPercent(assetConfigurationList)) * currentPrice) / multiplicator)
305- let usdnNeededToCoverEmission = fraction(assetEmission, multiplicator, priceWithOvercollateralRate)
304+ let assetEmissionOvercollateralRate = (((multiplicator + getAssetOverCollateralPercent(assetConfigurationList)) * assetEmission) / multiplicator)
305+ let usdnNeededToCoverEmission = fraction(assetEmissionOvercollateralRate, multiplicator, currentPrice)
306306 let poolMakerMaxAmount = getPoolMakerParticipationMaxAmount(assetAddressStr, poolMakerAddress)
307307 let poolMakerParticipationAmountKey = getPoolMakerParticipationAmountKey(assetAddressStr, poolMakerAddress)
308308 let poolMakerActualAmount = valueOrElse(getInteger(this, poolMakerParticipationAmountKey), 0)
317317 then poolMakerActualAmount
318318 else (fraction(frozenPart, surplus, multiplicator) + poolMakerActualAmount)
319319 let withdrawHeight = (height + getRedemptionTimeoutBlocks(assetConfigurationList))
320- $Tuple8(assetAddressStr, allowedAmountToRedeem, poolTotalLocked, poolActualSize, poolMakerActualAmount, withdrawHeight, poolMakerLockedAmount, makeString([assetAddressStr, assetIdStr, poolMakerAddress, toString(assetUsdnStakedAmount), toString(assetUsdnBalanceAmount), toString(assetTotalUsdnAmount), toString(poolActualSize), toString(poolMaxSize), toString(ucollateral), toString(assetEmission), toString(currentPrice), toString(priceWithOvercollateralRate), toString(poolMakerMaxAmount), toString(poolMakerActualAmount), toString(poolMakerLockedAmount), toString(surplus), toString(percentViaActual), toString(percentViaMax), toString(frozenPart), toString(allowedAmountToRedeem)], SEP))
320+ $Tuple8(assetAddressStr, allowedAmountToRedeem, poolTotalLocked, poolActualSize, poolMakerActualAmount, withdrawHeight, poolMakerLockedAmount, makeString([assetAddressStr, assetIdStr, poolMakerAddress, toString(assetUsdnStakedAmount), toString(assetUsdnBalanceAmount), toString(assetTotalUsdnAmount), toString(poolActualSize), toString(poolMaxSize), toString(ucollateral), toString(assetEmission), toString(currentPrice), toString(assetEmissionOvercollateralRate), toString(poolMakerMaxAmount), toString(poolMakerActualAmount), toString(poolMakerLockedAmount), toString(surplus), toString(percentViaActual), toString(percentViaMax), toString(frozenPart), toString(allowedAmountToRedeem)], SEP))
321321 }
322322
323323
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func convertJsonArrayToList (jsonArray,splitSymbol) = split(jsonArray, splitSymbol)
55
66
77 func getStringByAddressAndKey (address,key) = valueOrElse(getString(address, key), "")
88
99
1010 func getBoolByKey (key) = valueOrElse(getBoolean(this, key), false)
1111
1212
1313 let SEP = "__"
1414
1515 let keyAssetCode = 1
1616
1717 let keyAssetId = 2
1818
1919 let keyAssetStatus = 3
2020
2121 let keyAssetPriceDecimals = 4
2222
2323 let keyAssetBakingAsset = 5
2424
2525 let keyOvercollateralPercentage = 6
2626
2727 let keyMinPool = 7
2828
2929 let keyPriceOracleAddress = 8
3030
3131 let keyMinBuyPayment = 9
3232
3333 let keyMinSellPayment = 10
3434
3535 let keyBuyLockInterval = 11
3636
3737 let keySellLockInterval = 12
3838
3939 let keyBuyFee = 13
4040
4141 let keySellFee = 14
4242
4343 let keyPoolRedemptionTimeout = 15
4444
4545 let keyWeekendsPriceChangeCoefficient = 16
4646
4747 let adminPublicKey = "G1Ebu5AMHaTJFEbZNkZQcJFUQ9KfiYUwupyLG857DcFr"
4848
4949 let neutrinoContractAddressKey = "%s%s__commonConfig__neutrinoContractAddress"
5050
5151 let neutrinoStakingAddressKey = "%s%s__commonConfig__neutrinoStakingAddress"
5252
5353 let minimunPoolFundingAmountKey = "%s%s__commonConfig__minimumPoolFundingAmount"
5454
5555 let isInitializedKey = "%s%s__commonConfig__initialized"
5656
5757 let currentAssetIndexKey = "%s%s__commonConfig__predefinedAssetsActiveIndex"
5858
5959 let assetsAddressListKey = "%s%s__commonConfig__predefinedAssetsList"
6060
6161 let debtTokenIdKey = "%s%s__commonConfig__debtAssetId"
6262
6363 let debtTokenEtalonBalanceKey = "%s%s__commonConfig__debtAssetEtalonBalance"
6464
6565 let defoStakingAddressKey = "%s%s__commonConfig__defoStakingAddress"
6666
6767 let defoStakingPacemakerPubKey = "%s%s__commonConfig__defoStakingPacemakerPub"
6868
6969 let minPoolInvestAmountKey = "%s%s__commonConfig__minPoolInvestAmount"
7070
7171 let neutrinoAssetIdKey = "neutrino_asset_id"
7272
7373 let nsbtAssetIdKey = "bond_asset_id"
7474
7575 let neutrinoRpdKey = "rpd_contract"
7676
7777 let defoAssetIdKey = "%s__defoAssetId"
7878
7979 let setAssetScriptTxIdKey = "%s__assetScriptTxId"
8080
8181 func getAssetConfigKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__config")
8282
8383
8484 func getAssetPriceKey (assetCode) = ("%s%s__price__" + assetCode)
8585
8686
8787 func getAssetInitHeightKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__initHeight")
8888
8989
9090 func getAssetActivateHeightKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__activateHeight")
9191
9292
9393 func getAssetCurrrentPoolAmountKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__currentPool")
9494
9595
9696 func getAssetMaxPoolAmountKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__maxPool")
9797
9898
9999 func getAssetMetaKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__meta")
100100
101101
102102 func getAssetPoolMakersKey (assetAddress) = (("%s%s%s__defoAsset__" + assetAddress) + "__poolMakers")
103103
104104
105105 func getAssetAddressByCodeKey (assetCode) = (("%s%s%s__defoAsset__" + assetCode) + "__addressByAssetCode")
106106
107107
108108 func getAssetAddressByAssetIdKey (assetId) = (("%s%s%s__defoAsset__" + assetId) + "__addressByAssetId")
109109
110110
111111 func getPoolMakerParticipationAmountKey (assetAddress,poolMakerAddress) = makeString(["%s%s%s%s__pool", assetAddress, poolMakerAddress, "amount"], SEP)
112112
113113
114114 func getPoolMakerParticipationMaxAmountKey (assetAddress,poolMakerAddress) = makeString(["%s%s%s%s__pool", assetAddress, poolMakerAddress, "maxAmount"], SEP)
115115
116116
117117 func getPoolMakerLockedAmountKey (assetAddress,poolMakerAddress) = makeString(["%s%s%s%s__pool", assetAddress, poolMakerAddress, "lockedAmount"], SEP)
118118
119119
120120 func getPoolMakerUnlockHeightKey (assetAddress,poolMakerAddress) = makeString(["%s%s%s%s__pool", assetAddress, poolMakerAddress, "unlockHeight"], SEP)
121121
122122
123123 func getPoolMakerLiquidityRequestKey (assetAddress,poolMakerAddress,h) = makeString(["%s%s%s%d%s__pool", assetAddress, poolMakerAddress, toString(h), "liquidityRequest"], SEP)
124124
125125
126126 func getPoolTotalLockedAmountKey (assetAddress) = makeString(["%s%s%s__pool", assetAddress, "totalLockedAmount"], SEP)
127127
128128
129129 func getAssetConfigArray (assetAddress) = convertJsonArrayToList(valueOrErrorMessage(getStringByAddressAndKey(this, getAssetConfigKey(assetAddress)), (("No DEFO Asset " + assetAddress) + "config present")), "__")
130130
131131
132132 let multiplicator = 1000000
133133
134134 let neutrinoContract = addressFromStringValue(valueOrErrorMessage(getString(this, neutrinoContractAddressKey), "No neutrino contract specified."))
135135
136136 let neutrinoAssetIdStr = valueOrErrorMessage(getString(neutrinoContract, neutrinoAssetIdKey), "No USDN asset id found.")
137137
138138 let neutrinoAssetId = fromBase58String(neutrinoAssetIdStr)
139139
140140 let nsbtAssetId = fromBase58String(valueOrErrorMessage(getString(neutrinoContract, nsbtAssetIdKey), "No NSBT asset id found"))
141141
142142 let minimumPoolFunding = valueOrErrorMessage(getInteger(this, minimunPoolFundingAmountKey), "Minimum pool funding amount is not specified.")
143143
144144 let minPoolInvestAmount = valueOrElse(getInteger(this, minPoolInvestAmountKey), (10 * multiplicator))
145145
146146 let ASSEtPROPOSED = "PROPOSED"
147147
148148 let ASSEtREADY = "READY"
149149
150150 let ASSEtISSUED = "ISSUED"
151151
152152 let assetStatus = $Tuple3(ASSEtPROPOSED, ASSEtREADY, ASSEtISSUED)
153153
154154 let predefinedAssetContracts = valueOrErrorMessage(getString(this, assetsAddressListKey), "No pool of predeployed asset contracts found.")
155155
156156 let predefinedAssetsList = convertJsonArrayToList(predefinedAssetContracts, ",")
157157
158158 let currentAssetIndex = valueOrElse(getInteger(this, currentAssetIndexKey), 0)
159159
160160 let debtToken = fromBase58String(valueOrErrorMessage(getString(this, debtTokenIdKey), "No debt token found"))
161161
162162 let debtTokenReissueAmount = valueOrElse(getInteger(this, debtTokenEtalonBalanceKey), 0)
163163
164164 let neutrinoRpdContract = addressFromStringValue(getStringValue(neutrinoContract, neutrinoRpdKey))
165165
166166 func getNeutrinoRpdBalance (userAddress) = {
167167 let userNeutrinoRpdBalance = makeString(["rpd_balance", neutrinoAssetIdStr, userAddress], "_")
168168 valueOrElse(getInteger(neutrinoRpdContract, userNeutrinoRpdBalance), 0)
169169 }
170170
171171
172172 func getAssetAddressByCode (assetSymbol) = valueOrElse(getString(this, getAssetAddressByCodeKey(assetSymbol)), "")
173173
174174
175175 func getAssetAddressByCodeOrFail (assetSymbol) = valueOrErrorMessage(getString(this, getAssetAddressByCodeKey(assetSymbol)), (("Cannot find asset address by " + assetSymbol) + " code"))
176176
177177
178178 func getAssetCode (assetConfig) = assetConfig[keyAssetCode]
179179
180180
181181 func getAssetID (assetConfig) = assetConfig[keyAssetId]
182182
183183
184184 func getAssetStatus (assetConfig) = assetConfig[keyAssetStatus]
185185
186186
187187 func getAssetPriceDecimals (assetConfig) = parseIntValue(assetConfig[keyAssetPriceDecimals])
188188
189189
190190 func getAssetBakingAssetId (assetConfig) = assetConfig[keyAssetBakingAsset]
191191
192192
193193 func getAssetOverCollateralPercent (assetConfig) = parseIntValue(assetConfig[keyOvercollateralPercentage])
194194
195195
196196 func getAssetMinRequiredPoolAmount (assetConfig) = parseIntValue(assetConfig[keyMinPool])
197197
198198
199199 func getAssetPriceOracleAddress (assetConfig) = assetConfig[keyPriceOracleAddress]
200200
201201
202202 func getMinBuyPaymentPerAsset (assetConfig) = parseIntValue(assetConfig[keyMinBuyPayment])
203203
204204
205205 func getMinSellPaymentPerAsset (assetConfig) = parseIntValue(assetConfig[keyMinSellPayment])
206206
207207
208208 func getBuyLockIntervalPerAsset (assetConfig) = parseIntValue(assetConfig[keyBuyLockInterval])
209209
210210
211211 func getSellLockIntervalPerAsset (assetConfig) = parseIntValue(assetConfig[keySellLockInterval])
212212
213213
214214 func getBuyFeePerAsset (assetConfig) = parseIntValue(assetConfig[keyBuyFee])
215215
216216
217217 func getSellFeePerAsset (assetConfig) = parseIntValue(assetConfig[keySellFee])
218218
219219
220220 func getRedemptionTimeoutBlocks (assetConfig) = parseIntValue(assetConfig[keyPoolRedemptionTimeout])
221221
222222
223223 func getWeekendsPriceChangeCoefficient (assetConfig) = parseIntValue(assetConfig[keyWeekendsPriceChangeCoefficient])
224224
225225
226226 func getAssetPoolMakers (assetAddress) = valueOrElse(getString(this, getAssetPoolMakersKey(assetAddress)), "")
227227
228228
229229 func getAssetInitHeight (assetAddress) = valueOrElse(getInteger(this, getAssetInitHeightKey(assetAddress)), 0)
230230
231231
232232 func getAssetActivateHeight (assetAddress) = valueOrElse(getInteger(this, getAssetActivateHeightKey(assetAddress)), 0)
233233
234234
235235 func getAssetCurrentPoolAmount (assetAddress) = valueOrElse(getInteger(this, getAssetCurrrentPoolAmountKey(assetAddress)), 0)
236236
237237
238238 func getAssetMaxPoolAmount (assetAddress) = valueOrElse(getInteger(this, getAssetMaxPoolAmountKey(assetAddress)), 0)
239239
240240
241241 func getAssetMeta (assetAddress) = valueOrElse(getString(this, getAssetMetaKey(assetAddress)), "")
242242
243243
244244 func getPoolMakerParticipationAmount (assetAddress,poolMakerAddress) = valueOrElse(getInteger(this, getPoolMakerParticipationAmountKey(assetAddress, poolMakerAddress)), 0)
245245
246246
247247 func getPoolMakerParticipationMaxAmount (assetAddress,poolMakerAddress) = valueOrElse(getInteger(this, getPoolMakerParticipationMaxAmountKey(assetAddress, poolMakerAddress)), 0)
248248
249249
250250 func getPoolMakerLockedAmount (assetAddress,poolMakerAddress) = valueOrElse(getInteger(this, getPoolMakerLockedAmountKey(assetAddress, poolMakerAddress)), 0)
251251
252252
253253 func getPoolMakerUnlockHeight (assetAddress,poolMakerAddress) = valueOrElse(getInteger(this, getPoolMakerUnlockHeightKey(assetAddress, poolMakerAddress)), 0)
254254
255255
256256 func getAssetPrice (priceOracleAddress,assetCode) = valueOrErrorMessage(getInteger(priceOracleAddress, getAssetPriceKey(assetCode)), "No Asset price found")
257257
258258
259259 func getPoolTotalLockedAmount (assetAddress) = valueOrElse(getInteger(this, getPoolTotalLockedAmountKey(assetAddress)), 0)
260260
261261
262262 func composeAssetConfigurationString (assetCode,assetId,assetStatus,priceDecimals,backingAssetId,overCollateralPercent,minPool,priceOracleAddress,minBuyPayment,minSellPayment,buyLockInterval,sellLockInterval,buyFee,sellFee,poolRedemptionTimeout,weekendsPriceChangeCoefficient) = makeString(["%s%s%s%d%s%d%d%s%d%d%d%d%d%d%d", assetCode, assetId, assetStatus, toString(priceDecimals), backingAssetId, toString(overCollateralPercent), toString(minPool), priceOracleAddress, toString(minBuyPayment), toString(minSellPayment), toString(buyLockInterval), toString(sellLockInterval), toString(buyFee), toString(sellFee), toString(poolRedemptionTimeout), toString(weekendsPriceChangeCoefficient)], "__")
263263
264264
265265 func updateAssetCfgStatus (newStatus,assetConfigurationList) = {
266266 let aCode = getAssetCode(assetConfigurationList)
267267 let aID = getAssetID(assetConfigurationList)
268268 let aPriceDecimals = getAssetPriceDecimals(assetConfigurationList)
269269 let aBakingAssetId = getAssetBakingAssetId(assetConfigurationList)
270270 let aOverCollateralPercent = getAssetOverCollateralPercent(assetConfigurationList)
271271 let aMinRequiredPool = getAssetMinRequiredPoolAmount(assetConfigurationList)
272272 let aPriceOracleAddress = getAssetPriceOracleAddress(assetConfigurationList)
273273 let aMinBuyPayment = getMinBuyPaymentPerAsset(assetConfigurationList)
274274 let aMinSellPayment = getMinSellPaymentPerAsset(assetConfigurationList)
275275 let aBuyLockInterval = getBuyLockIntervalPerAsset(assetConfigurationList)
276276 let aSellLockInterval = getSellLockIntervalPerAsset(assetConfigurationList)
277277 let aBuyFee = getBuyFeePerAsset(assetConfigurationList)
278278 let aSellFee = getSellFeePerAsset(assetConfigurationList)
279279 let aRedemptionTimeoutBlocks = getRedemptionTimeoutBlocks(assetConfigurationList)
280280 let weekendsPriceChangeCoefficient = getWeekendsPriceChangeCoefficient(assetConfigurationList)
281281 composeAssetConfigurationString(aCode, aID, newStatus, aPriceDecimals, aBakingAssetId, aOverCollateralPercent, aMinRequiredPool, aPriceOracleAddress, aMinBuyPayment, aMinSellPayment, aBuyLockInterval, aSellLockInterval, aBuyFee, aSellFee, aRedemptionTimeoutBlocks, weekendsPriceChangeCoefficient)
282282 }
283283
284284
285285 func calcAllowedAmountToRedeem (assetCode,poolMakerAddress) = {
286286 let assetAddressStr = getAssetAddressByCodeOrFail(assetCode)
287287 let assetAddress = addressFromStringValue(assetAddressStr)
288288 let assetConfigurationList = getAssetConfigArray(assetAddressStr)
289289 let assetIdStr = getAssetID(assetConfigurationList)
290290 let assetId = fromBase58String(assetIdStr)
291291 let poolActualSize = valueOrElse(getInteger(this, getAssetCurrrentPoolAmountKey(assetAddressStr)), 0)
292292 let poolMaxSize = valueOrElse(getInteger(this, getAssetMaxPoolAmountKey(assetAddressStr)), 0)
293293 let poolTotalLockedAmountKey = getPoolTotalLockedAmountKey(assetAddressStr)
294294 let poolTotalLocked = valueOrElse(getInteger(this, poolTotalLockedAmountKey), 0)
295295 let assetUsdnStakedAmount = getNeutrinoRpdBalance(assetAddressStr)
296296 let assetUsdnBalanceAmount = assetBalance(assetAddress, neutrinoAssetId)
297297 let assetTotalUsdnAmount = ((assetUsdnStakedAmount + assetUsdnBalanceAmount) - poolTotalLocked)
298298 let ucollateral = (assetTotalUsdnAmount - poolActualSize)
299299 let defoAssetBalance = assetBalance(assetAddress, assetId)
300300 let assetEmissionDirty = valueOrErrorMessage(assetInfo(assetId), ("Cannot find asset by id " + assetIdStr)).quantity
301301 let assetEmission = (assetEmissionDirty - defoAssetBalance)
302302 let priceOracleAddress = addressFromStringValue(getAssetPriceOracleAddress(assetConfigurationList))
303303 let currentPrice = getAssetPrice(priceOracleAddress, assetCode)
304- let priceWithOvercollateralRate = (((multiplicator + getAssetOverCollateralPercent(assetConfigurationList)) * currentPrice) / multiplicator)
305- let usdnNeededToCoverEmission = fraction(assetEmission, multiplicator, priceWithOvercollateralRate)
304+ let assetEmissionOvercollateralRate = (((multiplicator + getAssetOverCollateralPercent(assetConfigurationList)) * assetEmission) / multiplicator)
305+ let usdnNeededToCoverEmission = fraction(assetEmissionOvercollateralRate, multiplicator, currentPrice)
306306 let poolMakerMaxAmount = getPoolMakerParticipationMaxAmount(assetAddressStr, poolMakerAddress)
307307 let poolMakerParticipationAmountKey = getPoolMakerParticipationAmountKey(assetAddressStr, poolMakerAddress)
308308 let poolMakerActualAmount = valueOrElse(getInteger(this, poolMakerParticipationAmountKey), 0)
309309 let poolMakerLockedAmount = getPoolMakerLockedAmount(assetAddressStr, poolMakerAddress)
310310 let surplus = (ucollateral - usdnNeededToCoverEmission)
311311 let percentViaActual = fraction(poolMakerActualAmount, multiplicator, poolActualSize)
312312 let percentViaMax = fraction(poolMakerMaxAmount, multiplicator, poolMaxSize)
313313 let frozenPart = if ((surplus >= 0))
314314 then 0
315315 else max([percentViaActual, percentViaMax])
316316 let allowedAmountToRedeem = if ((surplus >= 0))
317317 then poolMakerActualAmount
318318 else (fraction(frozenPart, surplus, multiplicator) + poolMakerActualAmount)
319319 let withdrawHeight = (height + getRedemptionTimeoutBlocks(assetConfigurationList))
320- $Tuple8(assetAddressStr, allowedAmountToRedeem, poolTotalLocked, poolActualSize, poolMakerActualAmount, withdrawHeight, poolMakerLockedAmount, makeString([assetAddressStr, assetIdStr, poolMakerAddress, toString(assetUsdnStakedAmount), toString(assetUsdnBalanceAmount), toString(assetTotalUsdnAmount), toString(poolActualSize), toString(poolMaxSize), toString(ucollateral), toString(assetEmission), toString(currentPrice), toString(priceWithOvercollateralRate), toString(poolMakerMaxAmount), toString(poolMakerActualAmount), toString(poolMakerLockedAmount), toString(surplus), toString(percentViaActual), toString(percentViaMax), toString(frozenPart), toString(allowedAmountToRedeem)], SEP))
320+ $Tuple8(assetAddressStr, allowedAmountToRedeem, poolTotalLocked, poolActualSize, poolMakerActualAmount, withdrawHeight, poolMakerLockedAmount, makeString([assetAddressStr, assetIdStr, poolMakerAddress, toString(assetUsdnStakedAmount), toString(assetUsdnBalanceAmount), toString(assetTotalUsdnAmount), toString(poolActualSize), toString(poolMaxSize), toString(ucollateral), toString(assetEmission), toString(currentPrice), toString(assetEmissionOvercollateralRate), toString(poolMakerMaxAmount), toString(poolMakerActualAmount), toString(poolMakerLockedAmount), toString(surplus), toString(percentViaActual), toString(percentViaMax), toString(frozenPart), toString(allowedAmountToRedeem)], SEP))
321321 }
322322
323323
324324 @Callable(i)
325325 func init (neutrinoContractAddress,neutrinoStakingAddress,minimunPoolFundingAmount,predefinedAssetList,currentAssetIndex,debtEthalonBalance,defoStakingAddress,defoStakingPacemakerPub) = if ((toBase58String(i.callerPublicKey) != adminPublicKey))
326326 then throw("Only Admin can perform contract operation.")
327327 else if ((getBoolByKey(isInitializedKey) == true))
328328 then throw("Contract was already initialized.")
329329 else {
330330 let issueDebt = Issue("DEFO_DEBT", "DEFO Debt Token.", 1, 6, true)
331331 let debtTokenId = calculateAssetId(issueDebt)
332332 [StringEntry(neutrinoContractAddressKey, neutrinoContractAddress), StringEntry(neutrinoStakingAddressKey, neutrinoStakingAddress), IntegerEntry(minimunPoolFundingAmountKey, minimunPoolFundingAmount), StringEntry(assetsAddressListKey, predefinedAssetList), IntegerEntry(currentAssetIndexKey, currentAssetIndex), IntegerEntry(debtTokenEtalonBalanceKey, debtEthalonBalance), StringEntry(debtTokenIdKey, toBase58String(debtTokenId)), StringEntry(defoStakingAddressKey, defoStakingAddress), StringEntry(defoStakingPacemakerPubKey, defoStakingPacemakerPub), BooleanEntry(isInitializedKey, true), issueDebt, Burn(debtTokenId, 1)]
333333 }
334334
335335
336336
337337 @Callable(i)
338338 func proposeAsset (assetCode,meta,minPool,priceOracleAddress,overCollateralPercent,backingAssetId,priceDecimals,minBuyPayment,minSellPayment,buyLockInterval,sellLockInterval,buyFee,sellFee,poolRedemptionTimeout,weekendsPriceChangeCoefficient) = if ((toBase58String(i.callerPublicKey) != adminPublicKey))
339339 then throw("Only Admin can perform contract operation.")
340340 else if ((getBoolByKey(isInitializedKey) == false))
341341 then throw("Contract is not yet ready.")
342342 else if ((fromBase58String(backingAssetId) != neutrinoAssetId))
343343 then throw("Baking asset id could be USDN only.")
344344 else if ((getAssetAddressByCode(assetCode) != ""))
345345 then throw((("Asset with passed code " + assetCode) + " has already been proposed."))
346346 else if ((minimumPoolFunding > minPool))
347347 then throw(("Minimum pool amount should be greater or equals to " + toString(minimumPoolFunding)))
348348 else if (if (if (if (if (if (if (if ((0 > overCollateralPercent))
349349 then true
350350 else (0 > priceDecimals))
351351 then true
352352 else (0 > minBuyPayment))
353353 then true
354354 else (0 > minSellPayment))
355355 then true
356356 else (0 > buyLockInterval))
357357 then true
358358 else (0 > sellLockInterval))
359359 then true
360360 else (0 > buyFee))
361361 then true
362362 else (0 > sellFee))
363363 then throw("One of the passed parameters is invalid.")
364364 else {
365365 let priceOracleAddressValid = valueOrErrorMessage(addressFromStringValue(priceOracleAddress), "Passed Price Oracle Address is not valid.")
366366 let assetAddress = predefinedAssetsList[currentAssetIndex]
367367 let defoAssetId = valueOrErrorMessage(getString(valueOrErrorMessage(addressFromString(assetAddress), ""), defoAssetIdKey), "No defo asset ID found.")
368368 [StringEntry(getAssetConfigKey(assetAddress), composeAssetConfigurationString(assetCode, defoAssetId, assetStatus._1, priceDecimals, backingAssetId, overCollateralPercent, minPool, priceOracleAddress, minBuyPayment, minSellPayment, buyLockInterval, sellLockInterval, buyFee, sellFee, poolRedemptionTimeout, weekendsPriceChangeCoefficient)), StringEntry(getAssetAddressByCodeKey(assetCode), assetAddress), StringEntry(getAssetMetaKey(assetAddress), meta), IntegerEntry(getAssetInitHeightKey(assetAddress), height), IntegerEntry(currentAssetIndexKey, (currentAssetIndex + 1)), StringEntry(getAssetAddressByAssetIdKey(defoAssetId), assetAddress)]
369369 }
370370
371371
372372
373373 @Callable(i)
374374 func fundLiquidityPool (assetCode) = {
375375 let assetAddressStr = getAssetAddressByCodeOrFail(assetCode)
376376 let assetConfigurationList = getAssetConfigArray(assetAddressStr)
377377 let attachedPayment = value(i.payments[0])
378378 let poolMakerAddress = toString(i.caller)
379379 if ((getBoolByKey(isInitializedKey) == false))
380380 then throw("Contract is not yet ready.")
381381 else if ((attachedPayment.assetId != neutrinoAssetId))
382382 then throw("Liquidity pool could be funded with USDN only.")
383383 else if ((minPoolInvestAmount > attachedPayment.amount))
384384 then throw(("Attached payment amount is less tha min allowed: " + toString(minPoolInvestAmount)))
385385 else {
386386 let newCurrentPoolAmount = (attachedPayment.amount + getAssetCurrentPoolAmount(assetAddressStr))
387387 let maxPoolAmount = getAssetMaxPoolAmount(assetAddressStr)
388388 let currentPoolMakerBalance = getPoolMakerParticipationAmount(assetAddressStr, poolMakerAddress)
389389 let maxPoolMakerBalance = getPoolMakerParticipationMaxAmount(assetAddressStr, poolMakerAddress)
390390 let currentAssetStatus = getAssetStatus(assetConfigurationList)
391391 let newAssetStatus = if (if ((currentAssetStatus == ASSEtPROPOSED))
392392 then (newCurrentPoolAmount >= getAssetMinRequiredPoolAmount(assetConfigurationList))
393393 else false)
394394 then ASSEtREADY
395395 else currentAssetStatus
396396 let newPoolMakerBalance = (currentPoolMakerBalance + attachedPayment.amount)
397397 let immediateTransferIfIssued = if ((currentAssetStatus == ASSEtISSUED))
398398 then [ScriptTransfer(addressFromStringValue(assetAddressStr), attachedPayment.amount, neutrinoAssetId)]
399399 else nil
400400 ([IntegerEntry(getPoolMakerParticipationAmountKey(assetAddressStr, poolMakerAddress), newPoolMakerBalance), IntegerEntry(getPoolMakerParticipationMaxAmountKey(assetAddressStr, poolMakerAddress), max([newPoolMakerBalance, maxPoolMakerBalance])), IntegerEntry(getAssetCurrrentPoolAmountKey(assetAddressStr), newCurrentPoolAmount), IntegerEntry(getAssetMaxPoolAmountKey(assetAddressStr), max([maxPoolAmount, newCurrentPoolAmount])), StringEntry(getAssetConfigKey(assetAddressStr), updateAssetCfgStatus(newAssetStatus, assetConfigurationList))] ++ immediateTransferIfIssued)
401401 }
402402 }
403403
404404
405405
406406 @Callable(i)
407407 func activateAsset (assetCode) = {
408408 let assetAddress = getAssetAddressByCode(assetCode)
409409 let assetConfigurationList = getAssetConfigArray(assetAddress)
410410 let assetCurrentPoolAmount = getAssetCurrentPoolAmount(assetAddress)
411411 let aCurrentStatus = getAssetStatus(assetConfigurationList)
412412 if ((toBase58String(i.callerPublicKey) != adminPublicKey))
413413 then throw("Only Admin can perform contract operation.")
414414 else if ((getBoolByKey(isInitializedKey) == false))
415415 then throw("Contract is not yet ready.")
416416 else if ((aCurrentStatus != assetStatus._2))
417417 then throw((("Asset is not in READY status. Current status is " + aCurrentStatus) + "."))
418418 else if ((assetAddress == ""))
419419 then throw((("Cannot find asset " + assetCode) + "."))
420420 else if ((minimumPoolFunding > assetCurrentPoolAmount))
421421 then throw((((("Cannot issue asset as liquidity pool amount (" + toString(assetCurrentPoolAmount)) + ") is less than required (") + toString(minimumPoolFunding)) + ")"))
422422 else {
423423 let issueDebt = Reissue(debtToken, debtTokenReissueAmount, true)
424424 [IntegerEntry(getAssetActivateHeightKey(assetAddress), height), StringEntry(getAssetConfigKey(assetAddress), updateAssetCfgStatus(assetStatus._3, assetConfigurationList)), issueDebt, ScriptTransfer(addressFromStringValue(assetAddress), assetCurrentPoolAmount, neutrinoAssetId), ScriptTransfer(addressFromStringValue(assetAddress), debtTokenReissueAmount, debtToken)]
425425 }
426426 }
427427
428428
429429
430430 @Callable(i)
431431 func redeemFromPool (assetCode,amount) = {
432432 let callerAddress = toString(i.caller)
433433 let redeemTuple = calcAllowedAmountToRedeem(assetCode, callerAddress)
434434 let assetAddressStr = redeemTuple._1
435435 let allowedAmountToRedeem = redeemTuple._2
436436 let poolTotalLocked = redeemTuple._3
437437 let poolActualSize = redeemTuple._4
438438 let poolMakerActualAmount = redeemTuple._5
439439 let withdrawHeight = redeemTuple._6
440440 let poolMakerLockedAmount = redeemTuple._7
441441 let traceData = redeemTuple._8
442442 let poolMakerLiquidityRequestKey = getPoolMakerLiquidityRequestKey(assetAddressStr, callerAddress, withdrawHeight)
443443 if ((getBoolByKey(isInitializedKey) == false))
444444 then throw("Contract is not yet ready.")
445445 else if ((0 >= amount))
446446 then throw((("Cannot find pool maker by address " + callerAddress) + " or amount passed is not correct."))
447447 else if ((0 >= poolMakerActualAmount))
448448 then throw("Pool maker has no funds")
449449 else if ((0 >= allowedAmountToRedeem))
450450 then throw("All pool maker funds are locked")
451451 else if ((amount > allowedAmountToRedeem))
452452 then throw(((("Allowed amount to redeem is less then requested: allowedAmountToRedeem=" + toString(allowedAmountToRedeem)) + " requested=") + toString(amount)))
453453 else if (((1 * multiplicator) > amount))
454454 then throw("Redeem amount is less then min allowed")
455455 else if ((poolMakerLockedAmount > 0))
456456 then throw("Pool maker already has initiated redemption that is not withdrawn yet.")
457457 else if (isDefined(getInteger(this, poolMakerLiquidityRequestKey)))
458458 then throw((("Pool maker has already initiated redemption for " + toString(height)) + " height"))
459459 else [IntegerEntry(getPoolTotalLockedAmountKey(assetAddressStr), (poolTotalLocked + amount)), IntegerEntry(getAssetCurrrentPoolAmountKey(assetAddressStr), (poolActualSize - amount)), IntegerEntry(getPoolMakerParticipationAmountKey(assetAddressStr, callerAddress), (poolMakerActualAmount - amount)), IntegerEntry(poolMakerLiquidityRequestKey, amount), IntegerEntry(getPoolMakerLockedAmountKey(assetAddressStr, callerAddress), amount), IntegerEntry(getPoolMakerUnlockHeightKey(assetAddressStr, callerAddress), withdrawHeight), StringEntry("%s%s_trace_redeemFromPool", traceData)]
460460 }
461461
462462
463463
464464 @Callable(i)
465465 func getMaxAllowedAmountToRedeem (assetCode,poolMakerAddress) = {
466466 let redeemTuple = calcAllowedAmountToRedeem(assetCode, poolMakerAddress)
467467 let assetAddressStr = redeemTuple._1
468468 let allowedAmountToRedeem = redeemTuple._2
469469 let poolTotalLocked = redeemTuple._3
470470 let poolActualSize = redeemTuple._4
471471 let poolMakerActualAmount = redeemTuple._5
472472 let withdrawHeight = redeemTuple._6
473473 let poolMakerLockedAmount = redeemTuple._7
474474 let traceData = redeemTuple._8
475475 throw(((((((((("{" + "allowedAmountToRedeem: ") + toString(allowedAmountToRedeem)) + ", assetCode: ") + assetCode) + ", poolMaker: ") + poolMakerAddress) + ", trace: ") + traceData) + "}"))
476476 }
477477
478478
479479
480480 @Callable(i)
481481 func withdraw (assetCode,poolMakerAddress) = {
482482 let assetAddressStr = getAssetAddressByCodeOrFail(assetCode)
483483 let assetAddress = addressFromStringValue(assetAddressStr)
484484 let poolMakerLockedAmountKey = getPoolMakerLockedAmountKey(assetAddressStr, poolMakerAddress)
485485 let registeredAmount4Withdraw = valueOrElse(getInteger(this, poolMakerLockedAmountKey), 0)
486486 let poolMakerUnlockHeightKey = getPoolMakerUnlockHeightKey(assetAddressStr, poolMakerAddress)
487487 let withdrawHeight = valueOrElse(getInteger(this, poolMakerUnlockHeightKey), 0)
488488 let poolTotalLockedAmountKey = getPoolTotalLockedAmountKey(assetAddressStr)
489489 let poolTotalLocked = valueOrElse(getInteger(this, poolTotalLockedAmountKey), 0)
490490 let poolMakerLiquidityRequestKey = getPoolMakerLiquidityRequestKey(assetAddressStr, poolMakerAddress, withdrawHeight)
491491 if ((getBoolByKey(isInitializedKey) == false))
492492 then throw("Contract is not yet ready.")
493493 else if (!(isDefined(getInteger(assetAddress, poolMakerLiquidityRequestKey))))
494494 then throw("Need to transfer liquidity from asset account first")
495495 else if ((0 >= registeredAmount4Withdraw))
496496 then throw((("Cannot find pool maker by address " + poolMakerAddress) + " or no locked amount."))
497497 else if ((withdrawHeight > height))
498498 then throw((("Please wait " + toString(withdrawHeight)) + " before withdraw."))
499499 else [IntegerEntry(poolMakerLockedAmountKey, 0), IntegerEntry(poolTotalLockedAmountKey, (poolTotalLocked - registeredAmount4Withdraw)), IntegerEntry(poolMakerUnlockHeightKey, 0), ScriptTransfer(addressFromStringValue(poolMakerAddress), registeredAmount4Withdraw, neutrinoAssetId)]
500500 }
501501
502502

github/deemru/w8io/026f985 
62.75 ms