tx · C7KYQNHWq7mLoHBEpDKNYMyXSi4jeEAVqwJKhphjp5Cp

3MuD6pzEojTFQp6eLgU99Vja9KrjLdqE7zi:  -0.05000000 Waves

2023.04.24 13:03 [2548480] smart account 3MuD6pzEojTFQp6eLgU99Vja9KrjLdqE7zi > SELF 0.00000000 Waves

{ "type": 13, "id": "C7KYQNHWq7mLoHBEpDKNYMyXSi4jeEAVqwJKhphjp5Cp", "fee": 5000000, "feeAssetId": null, "timestamp": 1682330626580, "version": 2, "chainId": 84, "sender": "3MuD6pzEojTFQp6eLgU99Vja9KrjLdqE7zi", "senderPublicKey": "5eECifxhmAzj6sMcBznnRWEFPEaT1LAa9QeTbgFmMxJF", "proofs": [ "2ddEk12f4csaHuZzSdRtfH3wnLV36VgpU2R67mGnYB2LbNXwsahYfm5tkPmzDXhEF6KrEJuYyEhoTDLA232GnWkZ" ], "script": "base64:BgIzCAISAwoBCBIECgIICBIDCgEIEgMKAQgSABIAEgASAwoBARIFCgMIAQESAwoBCBIDCgEIgAEAA1NFUAICX18ABUVNUFRZAgAACVBSRUNJU0lPTgCAoJSljR0ACERFQ0lNQUxTAIDC1y8AFERFRkFVTFRfTUFYX1NMSVBQQUdFCQBoAgkAaQIFCVBSRUNJU0lPTgAUABMAA0RBWQkAaAIJAGgCADwAPAAYAARZRUFSCQBoAgUDREFZAO0CAA9PUkFDTEVfREVDSU1BTFMAwIQ9AAhJTkZJTklUWQD//////////38AEE1JTl9BTU9VTlRfREVMVEEA6AcAFU1BWF9SQVRFX0hFSUdIVF9ERUxUQQAFABFMSVFVSURBVElPTl9CT05VUwkAaAIJAGkCBQlQUkVDSVNJT04AZAAFABhMSVFVSURBVElPTl9QUk9UT0NPTF9GRUUJAGgCCQBpAgUJUFJFQ0lTSU9OAGQAAgAUTUFYX0xJUVVJREFUSU9OX1BBUlQJAGgCCQBpAgUJUFJFQ0lTSU9OAGQAMgANU1RBQklMSVRZX0ZFRQkAaQIFCVBSRUNJU0lPTgBkAAdFTkFCTE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QRkaXZwAgUJdGhyZXNob2xkBQV1c2RFcQQTY3VycmVudEJhY2tpbmdSYXRpbwMJAGYCBQplYXN0QW1vdW50AAAJAQRkaXZwAgUFdXNkRXEFCmVhc3RBbW91bnQFCElORklOSVRZBAxzdGFiaWxpdHlGZWUJARZnZXRDdXJyZW50U3RhYmlsaXR5RmVlAwUKZWFzdEFtb3VudAUQbGFzdFN0YWJpbGl0eUZlZQUMbGFzdEZyYWN0aW9uCQCUCgIFA25pbAkAlwoFBQV1c2RFcQUGZWFzdEVxBRNjdXJyZW50QmFja2luZ1JhdGlvBRNhdmdMaXF1aWRhdGlvblJhdGlvBQxzdGFiaWxpdHlGZWUJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQEIdmVyaWZpZXIAAwkAAQIFByRtYXRjaDACBlN0cmluZwQHYWRkcmVzcwUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQdhZGRyZXNzCQEJa2V5U2lnbmVkAgkApQgBBQR0aGlzCQDYBAEIBQJ0eAJpZAcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlfY2hT", "height": 2548480, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let SEP = "__"
5+
6+let EMPTY = ""
7+
8+let PRECISION = 1000000000000
9+
10+let DECIMALS = 100000000
11+
12+let DEFAULT_MAX_SLIPPAGE = ((PRECISION / 20) * 19)
13+
14+let DAY = ((60 * 60) * 24)
15+
16+let YEAR = (DAY * 365)
17+
18+let ORACLE_DECIMALS = 1000000
19+
20+let INFINITY = 9223372036854775807
21+
22+let MIN_AMOUNT_DELTA = 1000
23+
24+let MAX_RATE_HEIGHT_DELTA = 5
25+
26+let LIQUIDATION_BONUS = ((PRECISION / 100) * 5)
27+
28+let LIQUIDATION_PROTOCOL_FEE = ((PRECISION / 100) * 2)
29+
30+let MAX_LIQUIDATION_PART = ((PRECISION / 100) * 50)
31+
32+let STABILITY_FEE = (PRECISION / 100)
33+
34+let ENABLED = "ENABLED"
35+
36+let DISABLED = "DISABLED"
37+
38+let IdxVaultAssetCount = 1
39+
40+let IdxVaultAssetAmount = 2
41+
42+let IdxVaultAssetRate = 3
43+
44+let IdxVaultCount = 1
45+
46+let IdxVaultEastAmount = 2
47+
48+let IdxVaultTimestamp = 3
49+
50+let IdxStabilityFee = 4
51+
52+let IdxLastFraction = 5
53+
54+let invocationError = "Invocation error"
55+
56+func divd (_x,_y) = fraction(_x, DECIMALS, _y, HALFEVEN)
57+
58+
59+func muld (_x,_y) = fraction(_x, _y, DECIMALS, HALFEVEN)
60+
61+
62+func divp (_x,_y) = fraction(_x, PRECISION, _y, HALFEVEN)
63+
64+
65+func mulp (_x,_y) = fraction(_x, _y, PRECISION, HALFEVEN)
66+
67+
68+func join (ar) = makeString(ar, SEP)
69+
70+
71+func keyInitialized () = join(["%s", "initialized"])
72+
73+
74+func keyCoordinatorAddress () = join(["%s", "coordinatorAddress"])
75+
76+
77+func keyVerifierAddress () = join(["%s", "verifierAddress"])
78+
79+
80+func keyServiceAddress () = join(["%s", "serviceAddress"])
81+
82+
83+func keyFrontendAddress () = join(["%s", "frontendAddress"])
84+
85+
86+func keyMinterAddress () = join(["%s", "minterAddress"])
87+
88+
89+func keyTreasuryAddress () = join(["%s", "treasuryAddress"])
90+
91+
92+func keyBackendAddress () = join(["%s", "backendAddress"])
93+
94+
95+func keyEastStakingAddress () = join(["%s", "eastStakingAddress"])
96+
97+
98+func keyOracleAddress () = join(["%s", "oracleAddress"])
99+
100+
101+func keyExchangeAddress () = join(["%s", "exchangeAddress"])
102+
103+
104+func keyEastAsset () = join(["%s", "eastAsset"])
105+
106+
107+func keyStEastAsset () = join(["%s", "stEastAsset"])
108+
109+
110+func keyAAssetBalance () = "A_asset_balance"
111+
112+
113+func keyBAssetBalance () = "B_asset_balance"
114+
115+
116+func keyVaultAsset (address,asset) = join(["%s%s%s", "vault", address, asset])
117+
118+
119+func keyVaultData (address) = join(["%s%s", "vault", address])
120+
121+
122+func keyPrecision () = join(["%s", "precision"])
123+
124+
125+func keyBackingRatio () = join(["%s", "backingRatio"])
126+
127+
128+func keyLiquidationRatio () = join(["%s", "liquidationRatio"])
129+
130+
131+func keyLiquidationBonus () = join(["%s", "liquidationBonus"])
132+
133+
134+func keyLiquidationProtocolFee () = join(["%s", "liquidationProtocolFee"])
135+
136+
137+func keyStabilityFee () = join(["%s", "stabilityFee"])
138+
139+
140+func keyMinAmountDelta () = join(["%s", "minAmountDelta"])
141+
142+
143+func keyTicker () = join(["%s", "ticker"])
144+
145+
146+func keyMaxRateHeightDelta () = join(["%s", "maxRateHeightDelta"])
147+
148+
149+func keyContractAssetId () = join(["%s", "contractAssetId"])
150+
151+
152+func keyOracleTickerPrice (ticker) = join(["%s%s", "price", ticker])
153+
154+
155+func keyOracleTickerPriceHeight (ticker) = join(["%s%s", "lastHeight", ticker])
156+
157+
158+func keySigned (_address,_txId) = join(["%s%s%s", "signed", _address, _txId])
159+
160+
161+func keyProtocolActive () = join(["%s", "protocolActive"])
162+
163+
164+func isInitialized () = valueOrElse(getBoolean(this, keyInitialized()), false)
165+
166+
167+func mustInitialized () = if (!(isInitialized()))
168+ then throw("Not initialized")
169+ else unit
170+
171+
172+func mustNotInitialized () = if (isInitialized())
173+ then throw("Already initialized")
174+ else unit
175+
176+
177+func mustSelf (i) = if ((i.caller != this))
178+ then throw("Only self invocation allowed.")
179+ else unit
180+
181+
182+func coordinator () = addressFromStringValue(valueOrErrorMessage(getString(keyCoordinatorAddress()), "Coordinator is not set"))
183+
184+
185+func verifier () = match getString(keyCoordinatorAddress()) {
186+ case s: String =>
187+ getString(addressFromStringValue(s), keyVerifierAddress())
188+ case _: Unit =>
189+ unit
190+ case _ =>
191+ throw("Match error")
192+}
193+
194+
195+func getAddress (key,err) = addressFromStringValue(valueOrErrorMessage(getString(coordinator(), key), err))
196+
197+
198+func getMinterAddress () = getAddress(keyMinterAddress(), "Minter is not set")
199+
200+
201+func getFrontendAddress () = getAddress(keyFrontendAddress(), "Frontend is not set")
202+
203+
204+func getTreasuryAddress () = getAddress(keyTreasuryAddress(), "Treasury is not set")
205+
206+
207+func getBackendAddress () = getAddress(keyBackendAddress(), "Backend is not set")
208+
209+
210+func getOracleAddress () = getAddress(keyOracleAddress(), "Oracle is not set")
211+
212+
213+func getEastStakingAddress () = getAddress(keyEastStakingAddress(), "East staking is not set")
214+
215+
216+func isNotTreasury (i) = (i.caller != getTreasuryAddress())
217+
218+
219+func getMinAmountDelta () = valueOrElse(getInteger(coordinator(), keyMinAmountDelta()), MIN_AMOUNT_DELTA)
220+
221+
222+func getMaxRateHeightDelta () = valueOrElse(getInteger(coordinator(), keyMaxRateHeightDelta()), MAX_RATE_HEIGHT_DELTA)
223+
224+
225+func getLiquidationBonus () = valueOrElse(getInteger(coordinator(), keyLiquidationBonus()), LIQUIDATION_BONUS)
226+
227+
228+func getLiquidationProtocolFee () = valueOrElse(getInteger(coordinator(), keyLiquidationProtocolFee()), LIQUIDATION_PROTOCOL_FEE)
229+
230+
231+func getStabilityFee () = valueOrElse(getInteger(coordinator(), keyStabilityFee()), STABILITY_FEE)
232+
233+
234+func getAssetId () = getStringValue(keyContractAssetId())
235+
236+
237+func getEastAssetStr () = valueOrErrorMessage(getString(coordinator(), keyEastAsset()), "East asset is not set")
238+
239+
240+func getEastAsset () = fromBase58String(getEastAssetStr())
241+
242+
243+func isActive () = valueOrElse(getBoolean(coordinator(), keyProtocolActive()), false)
244+
245+
246+func mustActive () = if (if (!(isActive()))
247+ then true
248+ else !(isInitialized()))
249+ then throw("Protocol is disabled. Please contact support.")
250+ else unit
251+
252+
253+func mustFrontend (i) = if ((i.caller != getFrontendAddress()))
254+ then throw("Not allowed")
255+ else unit
256+
257+
258+func mustBackend (i) = if ((i.caller != getBackendAddress()))
259+ then throw("Not allowed")
260+ else unit
261+
262+
263+func mustNotVaultOwner (i,address) = if ((toBase58String(i.caller.bytes) == address))
264+ then throw("Self invocation not allowed.")
265+ else unit
266+
267+
268+func mustHaveOnePayment (i) = if ((size(i.payments) != 1))
269+ then throw("Only one payment allowed.")
270+ else unit
271+
272+
273+func mustHaveNoPayment (i) = if ((size(i.payments) != 0))
274+ then throw("No payment allowed.")
275+ else unit
276+
277+
278+func hasOnePayment (i) = (size(i.payments) == 1)
279+
280+
281+func isPositive (number) = if ((0 >= number))
282+ then throw("Attribute should be positive or zero.")
283+ else unit
284+
285+
286+func isNotNegative (number) = if ((0 > number))
287+ then throw("Attribute should be positive.")
288+ else unit
289+
290+
291+func getSubvault (address,asset) = getString(keyVaultAsset(address, asset))
292+
293+
294+func isSubvaultExists (address,asset) = valueOrErrorMessage(getSubvault(address, asset), "Vault not exists")
295+
296+
297+func getAssetString (p) = match p.assetId {
298+ case assetId: ByteVector =>
299+ toBase58String(assetId)
300+ case _: Unit =>
301+ "WAVES"
302+ case _ =>
303+ throw("Match error")
304+}
305+
306+
307+func getAssetIdFromString (assetId) = if ((assetId == "WAVES"))
308+ then unit
309+ else fromBase58String(assetId)
310+
311+
312+func isAsset (p,checkingAsset) = {
313+ let assetId = match checkingAsset {
314+ case bv: ByteVector =>
315+ bv
316+ case s: String =>
317+ getAssetIdFromString(s)
318+ case _: Unit =>
319+ unit
320+ case _ =>
321+ throw("Match error")
322+ }
323+ match assetId {
324+ case bv: ByteVector =>
325+ let name = match assetInfo(bv) {
326+ case asset: Asset =>
327+ asset.name
328+ case _: Unit =>
329+ throw(("Can't find asset " + toBase58String(bv)))
330+ case _ =>
331+ throw("Match error")
332+ }
333+ let err = throw(("Attached payment asset is not " + name))
334+ match p.assetId {
335+ case paymentAsset: ByteVector =>
336+ if ((paymentAsset != assetId))
337+ then err
338+ else unit
339+ case _: Unit =>
340+ err
341+ case _ =>
342+ throw("Match error")
343+ }
344+ case _: Unit =>
345+ if ((p.assetId != unit))
346+ then throw("Attached payment asset is not WAVES")
347+ else unit
348+ case _ =>
349+ throw("Match error")
350+ }
351+ }
352+
353+
354+func getBackingRatio () = valueOrErrorMessage(getInteger(keyBackingRatio()), "Backing ratio is not set")
355+
356+
357+func getLiquidationRatio () = valueOrErrorMessage(getInteger(keyLiquidationRatio()), "Liquidation ratio is not set")
358+
359+
360+func checkAddress (_address) = match addressFromString(_address) {
361+ case address: Address =>
362+ true
363+ case _: Unit =>
364+ throw("Invalid address")
365+ case _ =>
366+ throw("Match error")
367+}
368+
369+
370+func checkTxId (_id) = (size(fromBase58String(_id)) == 32)
371+
372+
373+func getCurrentTimestampSec () = (lastBlock.timestamp / 1000)
374+
375+
376+func mustWavesPayment (i) = {
377+ let check = mustHaveOnePayment(i)
378+ if ((check == check))
379+ then {
380+ let pmtAssetId = i.payments[0].assetId
381+ match pmtAssetId {
382+ case a: Unit =>
383+ unit
384+ case _ =>
385+ throw("Only WAVES accepted")
386+ }
387+ }
388+ else throw("Strict value is not equal to itself.")
389+ }
390+
391+
392+func getAssetInfo (assetId) = match assetId {
393+ case id: ByteVector =>
394+ let stringId = toBase58String(id)
395+ let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
396+ $Tuple3(stringId, info.name, info.decimals)
397+ case waves: Unit =>
398+ $Tuple3("WAVES", "WAVES", 8)
399+ case _ =>
400+ throw("Match error")
401+}
402+
403+
404+func checkHeightDelta (priceHeight) = {
405+ let maxHeightDelta = getMaxRateHeightDelta()
406+ let currentDiff = (lastBlock.height - priceHeight)
407+ if ((maxHeightDelta >= currentDiff))
408+ then unit
409+ else throw("Large price delta.")
410+ }
411+
412+
413+func getAssetUsdPrice () = {
414+ let ticker = getStringValue(this, keyTicker())
415+ let oracleAddress = getOracleAddress()
416+ let priceHeight = getIntegerValue(oracleAddress, keyOracleTickerPriceHeight(ticker))
417+ let checkHeight = checkHeightDelta(priceHeight)
418+ if ((checkHeight == checkHeight))
419+ then {
420+ let price = getIntegerValue(oracleAddress, keyOracleTickerPrice(ticker))
421+ fraction(price, PRECISION, ORACLE_DECIMALS)
422+ }
423+ else throw("Strict value is not equal to itself.")
424+ }
425+
426+
427+let IdxAssetStatus = 1
428+
429+let IdxAssetContractId = 2
430+
431+func keyAsset (_assetStr) = join(["%s%s", "asset", _assetStr])
432+
433+
434+func keyVaultAssets (_address) = join(["%s%s", "vaultAssets", _address])
435+
436+
437+func keyCumulativeFeeFraction () = join(["%s", "cumulativeFeeFraction"])
438+
439+
440+func keyFractionLastUpdated () = join(["%s", "fractionLastUpdated"])
441+
442+
443+func getAssetContractStr (_asset) = valueOrErrorMessage(getString(keyAsset(_asset)), "Unknown asset")
444+
445+
446+func getAssetContract (_asset) = {
447+ let contractStr = getAssetContractStr(_asset)
448+ let contractArr = split(contractStr, SEP)
449+ let contractId = contractArr[IdxAssetContractId]
450+ addressFromStringValue(contractId)
451+ }
452+
453+
454+func getVaultAssets (_address) = match getString(keyVaultAssets(_address)) {
455+ case s: String =>
456+ split(s, SEP)
457+ case _: Unit =>
458+ nil
459+ case _ =>
460+ throw("Match error")
461+}
462+
463+
464+func getVaultData (_address) = match getString(keyVaultData(_address)) {
465+ case s: String =>
466+ split(s, SEP)
467+ case _: Unit =>
468+["%d%d%d%d%d", "0", "0", toString(getCurrentTimestampSec()), "0", "0"]
469+ case _ =>
470+ throw("Match error")
471+}
472+
473+
474+func assetExist (_assetStr) = match getString(keyAsset(_assetStr)) {
475+ case s: String =>
476+ true
477+ case _: Unit =>
478+ false
479+ case _ =>
480+ throw("Match error")
481+}
482+
483+
484+func getCumulativeFeeFraction () = valueOrElse(getInteger(keyCumulativeFeeFraction()), 0)
485+
486+
487+func getFractionLastUpdated () = valueOrElse(getInteger(keyFractionLastUpdated()), getCurrentTimestampSec())
488+
489+
490+func isEnabled (_assetStr) = {
491+ let assetCfg = getStringValue(keyAsset(_assetStr))
492+ let assetArr = split(assetCfg, SEP)
493+ if ((assetArr[IdxAssetStatus] != ENABLED))
494+ then throw((("Asset " + _assetStr) + " is not enabled"))
495+ else unit
496+ }
497+
498+
499+func isVaultExists (_address) = if ((size(getVaultAssets(_address)) == 0))
500+ then throw("Vault is not exist")
501+ else unit
502+
503+
504+func getCurrentStabilityFee (_eastAmount,_lastStabilityFee,_lastFraction) = (_lastStabilityFee + mulp(_eastAmount, (getCumulativeFeeFraction() - _lastFraction)))
505+
506+
507+func dataAsset (_status,_address) = makeString(["%s%s", _status, _address], SEP)
508+
509+
510+func updateVault (_address,_eastAmount,_paidFee) = {
511+ let vault = getVaultData(_address)
512+ let eastAmount = parseIntValue(vault[IdxVaultEastAmount])
513+ let count = parseIntValue(vault[IdxVaultCount])
514+ let timestamp = parseIntValue(vault[IdxVaultTimestamp])
515+ let lastStabilityFee = parseIntValue(vault[IdxStabilityFee])
516+ let lastFraction = parseIntValue(vault[IdxLastFraction])
517+ let newEastAmount = (eastAmount + _eastAmount)
518+ let newCount = (count + 1)
519+ if ((0 > newEastAmount))
520+ then throw("Something went wrong. Contact support")
521+ else {
522+ let newStabilityFee = (getCurrentStabilityFee(eastAmount, lastStabilityFee, lastFraction) - _paidFee)
523+ makeString(["%d%d%d%d%d", toString(newCount), toString(newEastAmount), toString(getCurrentTimestampSec()), toString(newStabilityFee), toString(getCumulativeFeeFraction())], SEP)
524+ }
525+ }
526+
527+
528+func addVaultAsset (_address,_assetStr) = {
529+ let assets = getVaultAssets(_address)
530+ if (containsElement(assets, _assetStr))
531+ then throw("Asset already exists")
532+ else makeString((assets :+ _assetStr), SEP)
533+ }
534+
535+
536+func removeVaultAsset (_address,_assetStr) = {
537+ let assets = getVaultAssets(_address)
538+ if (!(containsElement(assets, _assetStr)))
539+ then throw("Unknown asset")
540+ else {
541+ let idx = {
542+ let @ = indexOf(assets, _assetStr)
543+ if ($isInstanceOf(@, "Int"))
544+ then @
545+ else throw(($getType(@) + " couldn't be cast to Int"))
546+ }
547+ makeString(removeByIndex(assets, idx), SEP)
548+ }
549+ }
550+
551+
552+@Callable(i)
553+func initialize (_coordinatorAddress) = {
554+ let checks = [mustNotInitialized(), checkAddress(_coordinatorAddress)]
555+ if ((checks == checks))
556+ then [StringEntry(keyCoordinatorAddress(), _coordinatorAddress), BooleanEntry(keyInitialized(), true)]
557+ else throw("Strict value is not equal to itself.")
558+ }
559+
560+
561+
562+@Callable(i)
563+func addAsset (_assetStr,_contractStr) = {
564+ let checks = [mustInitialized(), mustSelf(i)]
565+ if ((checks == checks))
566+ then if (!(checkAddress(_contractStr)))
567+ then throw("Address is not valid")
568+ else if (assetExist(_assetStr))
569+ then throw("Asset is already set")
570+ else [StringEntry(keyAsset(_assetStr), dataAsset(ENABLED, _contractStr))]
571+ else throw("Strict value is not equal to itself.")
572+ }
573+
574+
575+
576+@Callable(i)
577+func disableAsset (_assetStr) = {
578+ let checks = [mustInitialized(), mustSelf(i)]
579+ if ((checks == checks))
580+ then {
581+ let assetArr = split(valueOrErrorMessage(getString(keyAsset(_assetStr)), "Unknown asset"), SEP)
582+[StringEntry(keyAsset(_assetStr), dataAsset(DISABLED, assetArr[IdxAssetContractId]))]
583+ }
584+ else throw("Strict value is not equal to itself.")
585+ }
586+
587+
588+
589+@Callable(i)
590+func enableAsset (_assetStr) = {
591+ let checks = [mustInitialized(), mustSelf(i)]
592+ if ((checks == checks))
593+ then {
594+ let assetArr = split(valueOrErrorMessage(getString(keyAsset(_assetStr)), "Unknown asset"), SEP)
595+[StringEntry(keyAsset(_assetStr), dataAsset(ENABLED, assetArr[IdxAssetContractId]))]
596+ }
597+ else throw("Strict value is not equal to itself.")
598+ }
599+
600+
601+
602+@Callable(i)
603+func updateFraction () = {
604+ let delta = (getCurrentTimestampSec() - getFractionLastUpdated())
605+ let fractionDelta = mulp(divp(delta, YEAR), getStabilityFee())
606+ let cumulativeFeeFraction = (getCumulativeFeeFraction() + fractionDelta)
607+[IntegerEntry(keyCumulativeFeeFraction(), cumulativeFeeFraction), IntegerEntry(keyFractionLastUpdated(), getCurrentTimestampSec())]
608+ }
609+
610+
611+
612+@Callable(i)
613+func mint () = {
614+ let payment = i.payments[0]
615+ let assetStr = getAssetString(payment)
616+ let address = toBase58String(i.caller.bytes)
617+ let checks = [mustActive(), mustHaveOnePayment(i), isEnabled(assetStr)]
618+ if ((checks == checks))
619+ then {
620+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
621+ if ((doUpdateFraction == doUpdateFraction))
622+ then {
623+ let err1 = throw("Unable to proceed. Too few assets to mint")
624+ if ((getMinAmountDelta() > payment.amount))
625+ then err1
626+ else {
627+ let contract = getAssetContract(assetStr)
628+ let $t01553915643 = {
629+ let @ = invoke(contract, "mint", [address], i.payments)
630+ if ($isInstanceOf(@, "(String, Int)"))
631+ then @
632+ else throw(($getType(@) + " couldn't be cast to (String, Int)"))
633+ }
634+ if (($t01553915643 == $t01553915643))
635+ then {
636+ let eastAmount = $t01553915643._2
637+ let assetVault = $t01553915643._1
638+ let eastAsset = getEastAsset()
639+ let updatedVault = updateVault(address, eastAmount, 0)
640+ let minter = getMinterAddress()
641+ let doIssueEast = invoke(minter, "issue", [eastAmount], nil)
642+ if ((doIssueEast == doIssueEast))
643+ then {
644+ let assets = getVaultAssets(address)
645+ let vaultAssetActions = if (!(containsElement(assets, assetStr)))
646+ then [StringEntry(keyVaultAssets(address), addVaultAsset(address, assetStr))]
647+ else nil
648+ ([StringEntry(keyVaultData(address), updatedVault), StringEntry(keyVaultAsset(address, assetStr), assetVault), ScriptTransfer(i.caller, eastAmount, eastAsset)] ++ vaultAssetActions)
649+ }
650+ else throw("Strict value is not equal to itself.")
651+ }
652+ else throw("Strict value is not equal to itself.")
653+ }
654+ }
655+ else throw("Strict value is not equal to itself.")
656+ }
657+ else throw("Strict value is not equal to itself.")
658+ }
659+
660+
661+
662+@Callable(i)
663+func supply () = {
664+ let payment = i.payments[0]
665+ let address = toBase58String(i.caller.bytes)
666+ let asset = getAssetString(i.payments[0])
667+ let checks = [mustActive(), mustHaveOnePayment(i), isSubvaultExists(address, asset), isEnabled(asset)]
668+ if ((checks == checks))
669+ then {
670+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
671+ if ((doUpdateFraction == doUpdateFraction))
672+ then {
673+ let err1 = throw("Unable to proceed. Too few assets to supply")
674+ if ((getMinAmountDelta() > payment.amount))
675+ then err1
676+ else {
677+ let contract = getAssetContract(asset)
678+ let updatedVaultAsset = {
679+ let @ = invoke(contract, "supply", [address], i.payments)
680+ if ($isInstanceOf(@, "String"))
681+ then @
682+ else throw(($getType(@) + " couldn't be cast to String"))
683+ }
684+ if ((updatedVaultAsset == updatedVaultAsset))
685+ then [StringEntry(keyVaultAsset(address, asset), updatedVaultAsset)]
686+ else throw("Strict value is not equal to itself.")
687+ }
688+ }
689+ else throw("Strict value is not equal to itself.")
690+ }
691+ else throw("Strict value is not equal to itself.")
692+ }
693+
694+
695+
696+@Callable(i)
697+func reissue (_amount) = {
698+ let address = toBase58String(i.caller.bytes)
699+ let checks = [mustActive(), mustHaveNoPayment(i), isVaultExists(address)]
700+ if ((checks == checks))
701+ then {
702+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
703+ if ((doUpdateFraction == doUpdateFraction))
704+ then {
705+ let err1 = throw("Unable to proceed. Too few east to reissue")
706+ if ((getMinAmountDelta() > _amount))
707+ then err1
708+ else {
709+ let vaultDataArr = getVaultData(address)
710+ let eastAmount = parseIntValue(vaultDataArr[IdxVaultEastAmount])
711+ let $t01743117547 = {
712+ let @ = invoke(this, "getVaultInfo", [address], nil)
713+ if ($isInstanceOf(@, "(Int, Int, Int, Int, Int)"))
714+ then @
715+ else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int)"))
716+ }
717+ if (($t01743117547 == $t01743117547))
718+ then {
719+ let fee = $t01743117547._5
720+ let lr = $t01743117547._4
721+ let br = $t01743117547._3
722+ let eastEq = $t01743117547._2
723+ let usdEq = $t01743117547._1
724+ let eastAvailable = (eastEq - eastAmount)
725+ let err2 = throw((("Unable to reissue. Only " + toString(eastAvailable)) + " EAST available."))
726+ if ((_amount > eastAvailable))
727+ then err2
728+ else {
729+ let updatedVault = updateVault(address, _amount, 0)
730+ let minter = getMinterAddress()
731+ let doIssueEast = invoke(minter, "issue", [_amount], nil)
732+ if ((doIssueEast == doIssueEast))
733+ then {
734+ let eastAsset = getEastAsset()
735+[StringEntry(keyVaultData(address), updatedVault), ScriptTransfer(i.caller, _amount, eastAsset)]
736+ }
737+ else throw("Strict value is not equal to itself.")
738+ }
739+ }
740+ else throw("Strict value is not equal to itself.")
741+ }
742+ }
743+ else throw("Strict value is not equal to itself.")
744+ }
745+ else throw("Strict value is not equal to itself.")
746+ }
747+
748+
749+
750+@Callable(i)
751+func close (_asset,_amount,_eastToBurn) = {
752+ let address = toBase58String(i.caller.bytes)
753+ let eastAsset = getEastAsset()
754+ let checks = [mustActive(), isNotNegative(_amount), isVaultExists(address), if (hasOnePayment(i))
755+ then isAsset(i.payments[0], eastAsset)
756+ else mustHaveNoPayment(i), if ((_amount > 0))
757+ then [isSubvaultExists(address, _asset)]
758+ else unit]
759+ if ((checks == checks))
760+ then {
761+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
762+ if ((doUpdateFraction == doUpdateFraction))
763+ then {
764+ let vaultDataArr = getVaultData(address)
765+ let eastAmount = parseIntValue(vaultDataArr[IdxVaultEastAmount])
766+ let $t01864818764 = {
767+ let @ = invoke(this, "getVaultInfo", [address], nil)
768+ if ($isInstanceOf(@, "(Int, Int, Int, Int, Int)"))
769+ then @
770+ else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int)"))
771+ }
772+ if (($t01864818764 == $t01864818764))
773+ then {
774+ let fee = $t01864818764._5
775+ let lr = $t01864818764._4
776+ let br = $t01864818764._3
777+ let eastEq = $t01864818764._2
778+ let usdEq = $t01864818764._1
779+ let overcollaterized = (eastEq > eastAmount)
780+ let eastActions = if (hasOnePayment(i))
781+ then {
782+ let payment = i.payments[0]
783+ let totalEastOwed = (eastAmount + fee)
784+ let eastToPayFee = (payment.amount - _eastToBurn)
785+ let minFeeAmount = mulp(fee, divp(_eastToBurn, totalEastOwed))
786+ let err1 = throw(((("Unable to proceed. Not enough east to pay stability fee." + toString(eastToPayFee)) + " ") + toString(minFeeAmount)))
787+ if ((minFeeAmount > eastToPayFee))
788+ then err1
789+ else if ((payment.amount > (_eastToBurn + eastToPayFee)))
790+ then err1
791+ else {
792+ let err2 = throw("Unable to proceed. Payment is bigger than owed amount of east.")
793+ if ((payment.amount > totalEastOwed))
794+ then err2
795+ else {
796+ let err3 = throw("Unable to proceed. Too few east to burn")
797+ if ((getMinAmountDelta() > _eastToBurn))
798+ then err3
799+ else {
800+ let err4 = throw("Unable to proceed. Too much east to burn.")
801+ if ((_eastToBurn > eastAmount))
802+ then err4
803+ else {
804+ let updatedVault = updateVault(address, -(_eastToBurn), eastToPayFee)
805+ let treasuryAddress = getTreasuryAddress()
806+[ScriptTransfer(treasuryAddress, eastToPayFee, eastAsset), StringEntry(keyVaultData(address), updatedVault), Burn(eastAsset, _eastToBurn)]
807+ }
808+ }
809+ }
810+ }
811+ }
812+ else nil
813+ let assetActions = if ((_amount > 0))
814+ then {
815+ let contract = getAssetContract(_asset)
816+ let $t02010320250 = {
817+ let @ = invoke(contract, "close", [address, _amount], nil)
818+ if ($isInstanceOf(@, "(String, Int, Int)"))
819+ then @
820+ else throw(($getType(@) + " couldn't be cast to (String, Int, Int)"))
821+ }
822+ if (($t02010320250 == $t02010320250))
823+ then {
824+ let closedAmountInUsd = $t02010320250._3
825+ let closedEastEquivalent = $t02010320250._2
826+ let updatedVaultAsset = $t02010320250._1
827+ let err1 = throw("Unable to proceed. Too few assets to close")
828+ if ((getMinAmountDelta() > _amount))
829+ then err1
830+ else {
831+ let err2 = throw("Unable to proceed. Too much assets to close for that amount of east.")
832+ if (if (overcollaterized)
833+ then ((eastAmount - _eastToBurn) > (eastEq - closedEastEquivalent))
834+ else false)
835+ then err2
836+ else {
837+ let newUsdEq = (usdEq - closedAmountInUsd)
838+ let newEastAmount = (eastAmount - _eastToBurn)
839+ let err3 = throw("Unable to proceed. BR after close must be more than before.")
840+ let u1e2 = (toBigInt(usdEq) * toBigInt(newEastAmount))
841+ let u2e1 = (toBigInt(newUsdEq) * toBigInt(eastAmount))
842+ if (if (!(overcollaterized))
843+ then (u1e2 > u2e1)
844+ else false)
845+ then err3
846+ else [StringEntry(keyVaultAsset(address, _asset), updatedVaultAsset)]
847+ }
848+ }
849+ }
850+ else throw("Strict value is not equal to itself.")
851+ }
852+ else nil
853+ (eastActions ++ assetActions)
854+ }
855+ else throw("Strict value is not equal to itself.")
856+ }
857+ else throw("Strict value is not equal to itself.")
858+ }
859+ else throw("Strict value is not equal to itself.")
860+ }
861+
862+
863+
864+@Callable(i)
865+func liquidate (_address) = {
866+ let payment = i.payments[0]
867+ let eastAsset = getEastAsset()
868+ let checks = [mustActive(), mustHaveOnePayment(i), mustNotVaultOwner(i, _address), isAsset(payment, eastAsset), isVaultExists(_address)]
869+ if ((checks == checks))
870+ then {
871+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
872+ if ((doUpdateFraction == doUpdateFraction))
873+ then {
874+ let vaultDataArr = getVaultData(_address)
875+ let eastAmount = parseIntValue(vaultDataArr[IdxVaultEastAmount])
876+ let maxLiquidateAmountAllowed = mulp(eastAmount, MAX_LIQUIDATION_PART)
877+ let err1 = throw("Unable to proceed. Payment amount is bigger than 50% of the vault.")
878+ if ((payment.amount > maxLiquidateAmountAllowed))
879+ then err1
880+ else {
881+ let $t02174921900 = {
882+ let @ = invoke(this, "getVaultInfo", [_address], nil)
883+ if ($isInstanceOf(@, "(Int, Int, Int, Int, Int)"))
884+ then @
885+ else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int)"))
886+ }
887+ if (($t02174921900 == $t02174921900))
888+ then {
889+ let fee = $t02174921900._5
890+ let avgLiquidationRatio = $t02174921900._4
891+ let currentBackingRatio = $t02174921900._3
892+ let eastEq = $t02174921900._2
893+ let usdEq = $t02174921900._1
894+ let err2 = throw("Unable to proceed. Vault health is normal.")
895+ if ((currentBackingRatio > avgLiquidationRatio))
896+ then err2
897+ else {
898+ let liquidationBonus = mulp(payment.amount, getLiquidationBonus())
899+ let liquidationAmountInEast = (payment.amount + liquidationBonus)
900+ let liquidationRatio = divp(liquidationAmountInEast, usdEq)
901+ let treasuryAddress = getTreasuryAddress()
902+ let liquidatorAddress = toBase58String(i.caller.bytes)
903+ func liquidateAssets (acc,next) = match next {
904+ case asset: String =>
905+ let check = isEnabled(asset)
906+ if ((check == check))
907+ then {
908+ let vault = getSubvault(_address, asset)
909+ match vault {
910+ case v: String =>
911+ let contract = getAssetContract(asset)
912+ let $t02267122831 = {
913+ let @ = invoke(contract, "liquidate", [liquidatorAddress, _address, liquidationRatio], nil)
914+ if ($isInstanceOf(@, "(String, Int)"))
915+ then @
916+ else throw(($getType(@) + " couldn't be cast to (String, Int)"))
917+ }
918+ if (($t02267122831 == $t02267122831))
919+ then {
920+ let liquidatedEastEquivalent = $t02267122831._2
921+ let updatedVaultAsset = $t02267122831._1
922+ let assetId = getAssetIdFromString(asset)
923+ let actions = [StringEntry(keyVaultAsset(_address, asset), updatedVaultAsset)]
924+ $Tuple2((acc._1 ++ actions), (acc._2 + liquidatedEastEquivalent))
925+ }
926+ else throw("Strict value is not equal to itself.")
927+ case _: Unit =>
928+ acc
929+ case _ =>
930+ throw("Match error")
931+ }
932+ }
933+ else throw("Strict value is not equal to itself.")
934+ case _: Unit =>
935+ acc
936+ case _ =>
937+ throw("Match error")
938+ }
939+
940+ let assets = getVaultAssets(_address)
941+ let $t02318723281 = {
942+ let $l = assets
943+ let $s = size($l)
944+ let $acc0 = $Tuple2(nil, 0)
945+ func $f0_1 ($a,$i) = if (($i >= $s))
946+ then $a
947+ else liquidateAssets($a, $l[$i])
948+
949+ func $f0_2 ($a,$i) = if (($i >= $s))
950+ then $a
951+ else throw("List size exceeds 10")
952+
953+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
954+ }
955+ let vaultAssetsActions = $t02318723281._1
956+ let liquidatedEastEqivalent = $t02318723281._2
957+ let updatedVault = updateVault(_address, -(payment.amount), 0)
958+ let postCheck = if (isNotTreasury(i))
959+ then {
960+ let newUsdEq = (usdEq - liquidationAmountInEast)
961+ let newEastEq = (eastEq - liquidatedEastEqivalent)
962+ let newEastAmount = (eastAmount - payment.amount)
963+ let err3 = throw("Unable to proceed. BR after liquidation must be more than before.")
964+ let u1e2 = (toBigInt(usdEq) * toBigInt(newEastAmount))
965+ let u2e1 = (toBigInt(newUsdEq) * toBigInt(eastAmount))
966+ if ((u1e2 > u2e1))
967+ then err3
968+ else {
969+ let err4 = throw("Unable to proceed. Vault health is above 100% after liquidation.")
970+ if ((newEastEq > newEastAmount))
971+ then err4
972+ else unit
973+ }
974+ }
975+ else unit
976+ if ((postCheck == postCheck))
977+ then {
978+ let vaultActions = [Burn(eastAsset, payment.amount), StringEntry(keyVaultData(_address), updatedVault)]
979+ (vaultActions ++ vaultAssetsActions)
980+ }
981+ else throw("Strict value is not equal to itself.")
982+ }
983+ }
984+ else throw("Strict value is not equal to itself.")
985+ }
986+ }
987+ else throw("Strict value is not equal to itself.")
988+ }
989+ else throw("Strict value is not equal to itself.")
990+ }
991+
992+
993+
994+@Callable(i)
995+func getVaultInfo (_address) = {
996+ let exists = isVaultExists(_address)
997+ if ((exists == exists))
998+ then {
999+ let doUpdateFraction = invoke(this, "updateFraction", nil, nil)
1000+ if ((doUpdateFraction == doUpdateFraction))
1001+ then {
1002+ let assets = getVaultAssets(_address)
1003+ func count (acc,next) = match next {
1004+ case asset: String =>
1005+ let contract = getAssetContract(asset)
1006+ let $t02449524607 = {
1007+ let @ = invoke(contract, "getSubvaultInfo", [_address], nil)
1008+ if ($isInstanceOf(@, "(Int, Int, Int)"))
1009+ then @
1010+ else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
1011+ }
1012+ if (($t02449524607 == $t02449524607))
1013+ then {
1014+ let threshold = $t02449524607._3
1015+ let eastEq = $t02449524607._2
1016+ let usdEq = $t02449524607._1
1017+ $Tuple3((acc._1 + usdEq), (acc._2 + eastEq), (acc._3 + threshold))
1018+ }
1019+ else throw("Strict value is not equal to itself.")
1020+ case _: Unit =>
1021+ acc
1022+ case _ =>
1023+ throw("Match error")
1024+ }
1025+
1026+ let vaultDataArr = getVaultData(_address)
1027+ let eastAmount = parseIntValue(vaultDataArr[IdxVaultEastAmount])
1028+ let lastStabilityFee = parseIntValue(vaultDataArr[IdxStabilityFee])
1029+ let lastFraction = parseIntValue(vaultDataArr[IdxLastFraction])
1030+ let $t02496825035 = {
1031+ let $l = assets
1032+ let $s = size($l)
1033+ let $acc0 = $Tuple3(0, 0, 0)
1034+ func $f0_1 ($a,$i) = if (($i >= $s))
1035+ then $a
1036+ else count($a, $l[$i])
1037+
1038+ func $f0_2 ($a,$i) = if (($i >= $s))
1039+ then $a
1040+ else throw("List size exceeds 10")
1041+
1042+ $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
1043+ }
1044+ let usdEq = $t02496825035._1
1045+ let eastEq = $t02496825035._2
1046+ let threshold = $t02496825035._3
1047+ let avgLiquidationRatio = divp(threshold, usdEq)
1048+ let currentBackingRatio = if ((eastAmount > 0))
1049+ then divp(usdEq, eastAmount)
1050+ else INFINITY
1051+ let stabilityFee = getCurrentStabilityFee(eastAmount, lastStabilityFee, lastFraction)
1052+ $Tuple2(nil, $Tuple5(usdEq, eastEq, currentBackingRatio, avgLiquidationRatio, stabilityFee))
1053+ }
1054+ else throw("Strict value is not equal to itself.")
1055+ }
1056+ else throw("Strict value is not equal to itself.")
1057+ }
1058+
1059+
1060+@Verifier(tx)
1061+func verify () = match verifier() {
1062+ case address: String =>
1063+ valueOrElse(getBoolean(addressFromStringValue(address), keySigned(toString(this), toBase58String(tx.id))), false)
1064+ case _ =>
1065+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
1066+}
1067+

github/deemru/w8io/169f3d6 
47.81 ms