tx · FbdNVGTqCJ2DbJG2rj3fqtPQtL8mmHcpkoqEyhrCi6oZ

3Mtko7KtZDyt532TGHjRUoVahuviQKwbBFt:  -0.01000000 Waves

2021.09.29 14:39 [1724199] smart account 3Mtko7KtZDyt532TGHjRUoVahuviQKwbBFt > SELF 0.00000000 Waves

{ "type": 13, "id": "FbdNVGTqCJ2DbJG2rj3fqtPQtL8mmHcpkoqEyhrCi6oZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1632915608467, "version": 1, "sender": "3Mtko7KtZDyt532TGHjRUoVahuviQKwbBFt", "senderPublicKey": "GptvgtKyc2q5oyNw5gDtNYbcX6wsDyRMVRaAuFUZmzfy", "proofs": [ "6c58Vxku2CCbFq9Cxa8hoyUfBL93GpsmnYQBNBa2kWW8w8VBrP7dyPDCJb9DAMQz49GRqC7vvJHxTeLy245wjkL" ], "script": "base64:AAIFAAAAAAAAACgIAhIJCgcICAgICAgBEgkKBwgICAgIAQgSBAoCCAESAwoBARIDCgEBAAAAHwAAAAARZGVjaW1hbHNNdWx0UHJpY2UJAABoAAAAAgkAAGgAAAACAAAAAAAAAABkAAAAAAAAAAPoAAAAAAAAAAPoAAAAAANTRVACAAAAAl9fAAAAAApQb29sQWN0aXZlAAAAAAAAAAABAAAAAA9Qb29sUHV0RGlzYWJsZWQAAAAAAAAAAAIAAAAAE1Bvb2xNYXRjaGVyRGlzYWJsZWQAAAAAAAAAAAMAAAAADFBvb2xTaHV0ZG93bgAAAAAAAAAABAAAAAASaWR4SW50ZXJuYWxBc3NldElkAAAAAAAAAAABAAAAAA9pZHhSZXN1dEFjdGlvbnMAAAAAAAAAAAIAAAAAIGlkeElmQXNzZXRJZENhbGN1bGF0aW9uUGVyZm9ybWVkAAAAAAAAAAADAQAAABBrZXlGYWN0b3J5Q29uZmlnAAAAAAIAAAARJXNfX2ZhY3RvcnlDb25maWcBAAAAEWtleVBvb2xTY3JpcHRIYXNoAAAAAAIAAAAWJXMlc19fcG9vbF9fc2NyaXB0SGF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LgQAAAAHbHBBc3NldAkAAlkAAAABBQAAABpscEFzc2V0UmVxdWVzdGVkRm9yQnVybmluZwkABRQAAAACCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHbHBBc3NldAUAAAAMYW1vdW50VG9CdXJuBQAAAANuaWwCAAAAB3N1Y2Nlc3MAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRQ36IQ=", "chainId": 84, "height": 1724199, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 5Hby5paWZK9a5daJyVhbjTCzEaTBCxP2nb4h9L9ZGFf2 Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let decimalsMultPrice = ((100 * 1000) * 1000)
5+
6+let SEP = "__"
7+
8+let PoolActive = 1
9+
10+let PoolPutDisabled = 2
11+
12+let PoolMatcherDisabled = 3
13+
14+let PoolShutdown = 4
15+
16+let idxInternalAssetId = 1
17+
18+let idxResutActions = 2
19+
20+let idxIfAssetIdCalculationPerformed = 3
21+
22+func keyFactoryConfig () = "%s__factoryConfig"
23+
24+
25+func keyPoolScriptHash () = "%s%s__pool__scriptHash"
26+
27+
28+func keyPriceDecimals () = "%s__priceDecimals"
29+
30+
31+func keyAllPoolsShutdown () = "%s__shutdown"
32+
33+
34+func keyNextInternalAssetId () = "%s__nextInternalAssetId"
35+
36+
37+func keyPoolToWeight (poolAddress) = ("%s%s__poolWeight__" + poolAddress)
38+
39+
40+func keyMappingsInternal2baseAssetId (internalBaseAsset) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(internalBaseAsset))
41+
42+
43+func keyMappingsBaseAsset2internalId (baseAssetStr) = ("%s%s%s__mappings__baseAsset2internalId__" + baseAssetStr)
44+
45+
46+func keyPoolConfig (amountAssetInternal,priceAssetInternal) = (((("%d%d%s__" + amountAssetInternal) + "__") + priceAssetInternal) + "__config")
47+
48+
49+func keyMappingLpAssetToPoolAssets (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2Pool")
50+
51+
52+func keyMappingPoolAssetsToLpasset (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + internalAmountAssetIdStr) + "__") + internalPriceAssetIdStr) + "__mappings__PoolAssets2LpAsset")
53+
54+
55+func keyMappingPoolContractAddressToPoolAssets (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2PoolAssets")
56+
57+
58+func keyMappingPoolAssetsToPoolContractAddress (internalAmountAssetIdStr,internalPriceAssetIdStr) = (((("%d%d%s%s__" + toString(internalAmountAssetIdStr)) + "__") + toString(internalPriceAssetIdStr)) + "__mappings__poolAssets2PoolContract")
59+
60+
61+func keyMappingPoolContracToLPAsset (poolContractAddress) = (("%s%s%s__" + poolContractAddress) + "__mappings__poolContract2LpAsset")
62+
63+
64+func keyMappingPoolLPAssetToPoolContractAddress (lpAssetStr) = (("%s%s%s__" + lpAssetStr) + "__mappings__lpAsset2PoolContract")
65+
66+
67+func getStringOrFail (key) = valueOrErrorMessage(getString(this, key), ("No data for this.key=" + key))
68+
69+
70+func getBooleanOrFail (key) = valueOrErrorMessage(getBoolean(this, key), ("No data for this.key=" + key))
71+
72+
73+func getIntOrFail (key) = valueOrErrorMessage(getInteger(this, key), ("No data for this.key=" + key))
74+
75+
76+func dataFactoryCfg (stakingAddress,boostingAddress,idoContract,teamContract,emissionContract,restContract) = makeString(["%s%s%s%s%s%s", stakingAddress, boostingAddress, idoContract, teamContract, emissionContract, restContract], SEP)
77+
78+
79+func dataPoolCfg (poolAddress,poolStatus,lpAssetId,amountAssetStr,priceAssetStr,amountAssetDecimals,priceAssetDecimals,amountAssetInternalId,priceAssetInternalId,lpAssetDecimals,matcherPublicKey) = makeString(["%s%d%s%s%s%d%d%d%d%d%s", poolAddress, poolStatus, lpAssetId, amountAssetStr, priceAssetStr, toString(amountAssetDecimals), toString(priceAssetDecimals), toString(amountAssetInternalId), toString(priceAssetInternalId), toString(lpAssetDecimals), matcherPublicKey], SEP)
80+
81+
82+func dataMappingPoolAssets (internalAmountAssetStr,internalPriceAssetStr) = makeString(["%d%d", toString(internalAmountAssetStr), toString(internalPriceAssetStr)], SEP)
83+
84+
85+func getInternalAssetIdOrCreate (assetIdStr,incrementor) = {
86+ let internalAssetId = valueOrElse(getInteger(this, keyMappingsBaseAsset2internalId(assetIdStr)), 0)
87+ let currentIndexOfInternalId = valueOrElse(getInteger(this, keyNextInternalAssetId()), 0)
88+ let result = if ((internalAssetId == 0))
89+ then {
90+ let newInternalAssetId = (currentIndexOfInternalId + incrementor)
91+ $Tuple3(newInternalAssetId, [IntegerEntry(keyNextInternalAssetId(), newInternalAssetId), IntegerEntry(keyMappingsBaseAsset2internalId(assetIdStr), newInternalAssetId), StringEntry(keyMappingsInternal2baseAssetId(newInternalAssetId), assetIdStr)], true)
92+ }
93+ else $Tuple3(internalAssetId, nil, false)
94+ result
95+ }
96+
97+
98+@Callable(i)
99+func constructor (stakingContract,boostingContract,idoContract,teamContract,emissionContract,restContract,priceDecimals) = if ((i.caller != this))
100+ then throw("permissions denied")
101+ else [StringEntry(keyFactoryConfig(), dataFactoryCfg(stakingContract, boostingContract, idoContract, teamContract, emissionContract, restContract)), IntegerEntry(keyPriceDecimals(), priceDecimals)]
102+
103+
104+
105+@Callable(i)
106+func activateNewPool (poolAddress,amountAssetStr,priceAssetStr,lpAssetName,lpAssetDescr,poolWeight,matcherPublicKey) = if ((i.caller != this))
107+ then throw("permissions denied")
108+ else if (isDefined(getString(keyMappingPoolContractAddressToPoolAssets(poolAddress))))
109+ then throw((("Pool address " + poolAddress) + " already registered."))
110+ else {
111+ let internalAmountAssetData = getInternalAssetIdOrCreate(amountAssetStr, 1)
112+ let internalAmountAssetId = internalAmountAssetData._1
113+ let internalPriceAssetData = getInternalAssetIdOrCreate(priceAssetStr, if (internalAmountAssetData._3)
114+ then 2
115+ else 1)
116+ let internalPriceAssetId = internalPriceAssetData._1
117+ let poolAccountScriptHash = valueOrErrorMessage(scriptHash(addressFromStringValue(poolAddress)), ("No script has been found on pool account " + poolAddress))
118+ let ethalonPoolAccountScriptHash = getBinaryValue(keyPoolScriptHash())
119+ let poolConfig = getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)))
120+ if (isDefined(poolConfig))
121+ then throw((((("Pool " + amountAssetStr) + "/") + priceAssetStr) + " has already been activated."))
122+ else {
123+ let poolConfigValue = value(getString(this, keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId))))
124+ let amountAssetsDecimals = if ((amountAssetStr == "WAVES"))
125+ then decimalsMultPrice
126+ else pow(10, 0, value(assetInfo(fromBase58String(amountAssetStr))).decimals, 0, 0, DOWN)
127+ let priceAssetsDecimals = if ((priceAssetStr == "WAVES"))
128+ then decimalsMultPrice
129+ else pow(10, 0, value(assetInfo(fromBase58String(priceAssetStr))).decimals, 0, 0, DOWN)
130+ let lpAssetIssueAction = Issue(lpAssetName, lpAssetDescr, 1, 8, true)
131+ let lpAssetId = calculateAssetId(lpAssetIssueAction)
132+ let lpAssetIdStr = toBase58String(lpAssetId)
133+ let poolActivateInvokeResult = invoke(addressFromStringValue(poolAddress), "activate", [amountAssetStr, priceAssetStr], nil)
134+ if ((poolActivateInvokeResult == poolActivateInvokeResult))
135+ then if ((poolActivateInvokeResult != "success"))
136+ then throw("Pool initialisation error happened.")
137+ else $Tuple2(((internalAmountAssetData._2 ++ internalPriceAssetData._2) ++ [lpAssetIssueAction, Burn(lpAssetId, 1), StringEntry(keyPoolConfig(toString(internalAmountAssetId), toString(internalPriceAssetId)), dataPoolCfg(poolAddress, toString(PoolActive), lpAssetIdStr, amountAssetStr, priceAssetStr, amountAssetsDecimals, priceAssetsDecimals, internalAmountAssetId, internalPriceAssetId, decimalsMultPrice, matcherPublicKey)), StringEntry(keyMappingLpAssetToPoolAssets(lpAssetIdStr), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToLpasset(toString(internalAmountAssetId), toString(internalPriceAssetId)), ("%s__" + lpAssetIdStr)), StringEntry(keyMappingPoolContractAddressToPoolAssets(poolAddress), dataMappingPoolAssets(internalAmountAssetId, internalPriceAssetId)), StringEntry(keyMappingPoolAssetsToPoolContractAddress(internalAmountAssetId, internalPriceAssetId), poolAddress), StringEntry(keyMappingPoolLPAssetToPoolContractAddress(lpAssetIdStr), poolAddress), StringEntry(keyMappingPoolContracToLPAsset(poolAddress), lpAssetIdStr), IntegerEntry(keyPoolToWeight(poolAddress), poolWeight)]), "success")
138+ else throw("Strict value is not equal to itself.")
139+ }
140+ }
141+
142+
143+
144+@Callable(i)
145+func managePool (lpContractAddress,newStatus) = if ((i.caller != this))
146+ then throw("permissions denied")
147+ else nil
148+
149+
150+
151+@Callable(i)
152+func emit (amountToEmit) = {
153+ let caller = i.caller
154+ let originCaller = i.originCaller
155+ let lpAssetRequested = valueOrErrorMessage(getString(keyMappingPoolContracToLPAsset(toString(caller))), "Invalid LP address called me.")
156+ let lpAsset = fromBase58String(lpAssetRequested)
157+ $Tuple2([Reissue(lpAsset, amountToEmit, true), ScriptTransfer(i.caller, amountToEmit, lpAsset)], "success")
158+ }
159+
160+
161+
162+@Callable(i)
163+func burn (amountToBurn) = {
164+ let caller = i.caller
165+ let originCaller = i.originCaller
166+ let payment = value(i.payments[0])
167+ let paymentAmount = value(payment.amount)
168+ let inAmountAssetId = toBase58String(value(payment.assetId))
169+ let lpAssetRequestedForBurning = valueOrErrorMessage(getString(keyMappingPoolContracToLPAsset(toString(caller))), "Invalid LP address called me.")
170+ if ((inAmountAssetId != lpAssetRequestedForBurning))
171+ then throw("Invalid asset passed.")
172+ else if ((amountToBurn != paymentAmount))
173+ then throw("Invalid amount passed.")
174+ else {
175+ let lpAsset = fromBase58String(lpAssetRequestedForBurning)
176+ $Tuple2([Burn(lpAsset, amountToBurn)], "success")
177+ }
178+ }
179+
180+
181+@Verifier(tx)
182+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
183+

github/deemru/w8io/026f985 
28.63 ms