tx · EPbyv7GKx4UYpU9F3yfbRnUpx3AAgvGeGwDRMgaf23nf

3N8bnD2caKnxdcTqvrJUEkDe3XebgfwWjSV:  -0.01300000 Waves

2022.05.31 16:58 [2075922] smart account 3N8bnD2caKnxdcTqvrJUEkDe3XebgfwWjSV > SELF 0.00000000 Waves

{ "type": 13, "id": "EPbyv7GKx4UYpU9F3yfbRnUpx3AAgvGeGwDRMgaf23nf", "fee": 1300000, "feeAssetId": null, "timestamp": 1654005548629, "version": 1, "sender": "3N8bnD2caKnxdcTqvrJUEkDe3XebgfwWjSV", "senderPublicKey": "8KXPjDuC8ffL9qjNuDBLnkvJKbMojhZYcnm2o75UCyun", "proofs": [ "5n9gPmmazHYj5tNEhoEB51gZFQnzdEwAJigju34S4LyjjTSTNYYZ65MpJUkwxdVHKNV3oijNyXiEpZMVMzFHpjST" ], "script": "base64:AAIFAAAAAAAAACwIAhIDCgEIEgMKAQgSABIDCgEYEggKBgEBAQEIARIDCgEIEgMKAQgSAwoBCAAAACIAAAAAA1NFUAIAAAACX18AAAAABUVNUFRZAgAAAAAAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAAlpZHhMUEFzSWQAAAAAAAAAAAMAAAAACWlkeEFtQXNJZAAAAAAAAAAABAAAAAAJaWR4UHJBc0lkAAAAAAAAAAAFAAAAAA9pZHhGYWN0U3Rha0NudHIAAAAAAAAAAAEAAAAABWRlbGF5AgAAAAklc19fZGVsYXkBAAAAC2tleUZhY3RDbnRyAAAAAAIAAAATJXNfX2ZhY3RvcnlDb250cmFjdAEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAACAAAAFCVzX19tYW5hZ2VyUHVibGljS2V5AQAAABprZXlQZW5kaW5nTWFuYWdlclB1YmxpY0tleQAAAAACAAAAGyVzX19wZW5kaW5nTWFuYWdlclB1YmxpY0tleQEAAAALa2V5UG9vbEFkZHIAAAAAAgAAAA8lc19fcG9vbEFkZHJlc3MBAAAAC2tleUFtdEFzc2V0AAA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HgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnPCI8F", "chainId": 84, "height": 2075922, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: oETx5fCDacTJjonfXzHgJD79RBY3Q9HKvA1wxV475hk Next: EZmpcUmbPBjgV444h6KsvC4PeKRgfxjPSP3ArNZqXLyP Diff:
OldNewDifferences
245245 let needBlocks = (permittedHeight - height)
246246 if (isReadyforGetOneTkn)
247247 then true
248- else throw(makeString(["wait for", toString(needBlocks), "block(s) more"], " "))
248+ else throw(makeString(["you should wait", toString(needBlocks), "blocks more to perform the action"], " "))
249249 case _ =>
250250 true
251251 }
275275 let needBlocks = (permittedHeight - height)
276276 if (isReadyforPutOneTkn)
277277 then true
278- else throw(makeString(["wait for", toString(needBlocks), "block(s) more"], " "))
278+ else throw(makeString(["you should wait", toString(needBlocks), "blocks more to perform the action"], " "))
279279 case _ =>
280280 true
281281 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let EMPTY = ""
77
88 let idxPoolAddress = 1
99
1010 let idxLPAsId = 3
1111
1212 let idxAmAsId = 4
1313
1414 let idxPrAsId = 5
1515
1616 let idxFactStakCntr = 1
1717
1818 let delay = "%s__delay"
1919
2020 func keyFactCntr () = "%s__factoryContract"
2121
2222
2323 func keyManagerPublicKey () = "%s__managerPublicKey"
2424
2525
2626 func keyPendingManagerPublicKey () = "%s__pendingManagerPublicKey"
2727
2828
2929 func keyPoolAddr () = "%s__poolAddress"
3030
3131
3232 func keyAmtAsset () = "%s__amountAsset"
3333
3434
3535 func keyPriceAsset () = "%s__priceAsset"
3636
3737
3838 func keyAdminPubKeys () = "%s__adminPubKeys"
3939
4040
4141 func keyAmp () = "%s__amp"
4242
4343
4444 func keyAmpHistory (height) = ("%s%d__amp__" + toString(height))
4545
4646
4747 func lastGetOneTknCall (caller) = makeString(["%s%s__lastGetOneTknCall", caller], SEP)
4848
4949
5050 func lastPutOneTknCall (caller) = makeString(["%s%s__lastPutOneTknCall", caller], SEP)
5151
5252
5353 func keyFactoryConfig () = "%s__factoryConfig"
5454
5555
5656 func keyPoolConfig (iAmtAs,iPrAs) = (((("%d%d%s__" + iAmtAs) + "__") + iPrAs) + "__config")
5757
5858
5959 func keyMappingsBaseAsset2internalId (bAStr) = ("%s%s%s__mappings__baseAsset2internalId__" + bAStr)
6060
6161
6262 func getStringOrFail (addr,key) = valueOrErrorMessage(getString(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
6363
6464
6565 func getIntOrFail (addr,key) = valueOrErrorMessage(getInteger(addr, key), makeString(["mandatory ", toString(addr), ".", key, " not defined"], ""))
6666
6767
6868 let poolContract = addressFromStringValue(getStringOrFail(this, keyPoolAddr()))
6969
7070 let factoryContract = addressFromStringValue(getStringOrFail(poolContract, keyFactCntr()))
7171
7272 func getPoolConfig () = {
7373 let amtAs = getStringOrFail(poolContract, keyAmtAsset())
7474 let priceAs = getStringOrFail(poolContract, keyPriceAsset())
7575 let iPriceAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(priceAs))
7676 let iAmtAs = getIntOrFail(factoryContract, keyMappingsBaseAsset2internalId(amtAs))
7777 split(getStringOrFail(factoryContract, keyPoolConfig(toString(iAmtAs), toString(iPriceAs))), SEP)
7878 }
7979
8080
8181 func getFactoryConfig () = split(getStringOrFail(factoryContract, keyFactoryConfig()), SEP)
8282
8383
8484 func managerPublicKeyOrUnit () = match getString(keyManagerPublicKey()) {
8585 case s: String =>
8686 fromBase58String(s)
8787 case _: Unit =>
8888 unit
8989 case _ =>
9090 throw("Match error")
9191 }
9292
9393
9494 func pendingManagerPublicKeyOrUnit () = match getString(keyPendingManagerPublicKey()) {
9595 case s: String =>
9696 fromBase58String(s)
9797 case _: Unit =>
9898 unit
9999 case _ =>
100100 throw("Match error")
101101 }
102102
103103
104104 func mustManager (i) = {
105105 let pd = throw("Permission denied")
106106 match managerPublicKeyOrUnit() {
107107 case pk: ByteVector =>
108108 if ((i.callerPublicKey == pk))
109109 then true
110110 else pd
111111 case _: Unit =>
112112 if ((i.caller == this))
113113 then true
114114 else pd
115115 case _ =>
116116 throw("Match error")
117117 }
118118 }
119119
120120
121121 func getAdmins () = match getString(keyAdminPubKeys()) {
122122 case s: String =>
123123 if ((size(s) == 0))
124124 then nil
125125 else split(s, SEP)
126126 case _ =>
127127 nil
128128 }
129129
130130
131131 func mustAdmin (i) = if (containsElement(getAdmins(), toBase58String(i.callerPublicKey)))
132132 then true
133133 else mustManager(i)
134134
135135
136136 func mustPool (i) = if ((i.caller == poolContract))
137137 then true
138138 else throw("caller must be the pool")
139139
140140
141141 @Callable(i)
142142 func constructor (poolAddress) = {
143143 let checkCaller = mustManager(i)
144144 if ((checkCaller == checkCaller))
145145 then [StringEntry(keyPoolAddr(), poolAddress)]
146146 else throw("Strict value is not equal to itself.")
147147 }
148148
149149
150150
151151 @Callable(i)
152152 func setManager (pendingManagerPublicKey) = {
153153 let checkCaller = mustManager(i)
154154 if ((checkCaller == checkCaller))
155155 then {
156156 let checkManagerPublicKey = fromBase58String(pendingManagerPublicKey)
157157 if ((checkManagerPublicKey == checkManagerPublicKey))
158158 then [StringEntry(keyPendingManagerPublicKey(), pendingManagerPublicKey)]
159159 else throw("Strict value is not equal to itself.")
160160 }
161161 else throw("Strict value is not equal to itself.")
162162 }
163163
164164
165165
166166 @Callable(i)
167167 func confirmManager () = {
168168 let pm = pendingManagerPublicKeyOrUnit()
169169 let hasPM = if (isDefined(pm))
170170 then true
171171 else throw("No pending manager")
172172 if ((hasPM == hasPM))
173173 then {
174174 let checkPM = if ((i.callerPublicKey == value(pm)))
175175 then true
176176 else throw("You are not pending manager")
177177 if ((checkPM == checkPM))
178178 then [StringEntry(keyManagerPublicKey(), toBase58String(value(pm))), DeleteEntry(keyPendingManagerPublicKey())]
179179 else throw("Strict value is not equal to itself.")
180180 }
181181 else throw("Strict value is not equal to itself.")
182182 }
183183
184184
185185
186186 @Callable(i)
187187 func setAdmins (adminPubKeys) = {
188188 let checkCaller = mustManager(i)
189189 if ((checkCaller == checkCaller))
190190 then [StringEntry(keyAdminPubKeys(), makeString(adminPubKeys, SEP))]
191191 else throw("Strict value is not equal to itself.")
192192 }
193193
194194
195195
196196 @Callable(i)
197197 func unstakeAndGetOneTkn (amount,exchResult,notUsed,outAmount,outAssetId,slippage) = {
198198 let checkPayments = if ((size(i.payments) != 0))
199199 then throw("No pmnts expd")
200200 else true
201201 if ((checkPayments == checkPayments))
202202 then {
203203 let cfg = getPoolConfig()
204204 let factoryCfg = getFactoryConfig()
205205 let lpAssetId = fromBase58String(cfg[idxLPAsId])
206206 let staking = valueOrErrorMessage(addressFromString(factoryCfg[idxFactStakCntr]), "Wr st addr")
207207 let unstakeInv = invoke(staking, "unstake", [toBase58String(lpAssetId), amount], nil)
208208 if ((unstakeInv == unstakeInv))
209209 then {
210210 let getOneTkn = invoke(poolContract, "getOneTkn", [exchResult, notUsed, outAmount, outAssetId, slippage], [AttachedPayment(lpAssetId, amount)])
211211 if ((getOneTkn == getOneTkn))
212212 then nil
213213 else throw("Strict value is not equal to itself.")
214214 }
215215 else throw("Strict value is not equal to itself.")
216216 }
217217 else throw("Strict value is not equal to itself.")
218218 }
219219
220220
221221
222222 @Callable(i)
223223 func setAmp (amp) = {
224224 let checkCaller = mustAdmin(i)
225225 if ((checkCaller == checkCaller))
226226 then {
227227 let res1 = invoke(poolContract, "setS", [keyAmp(), amp], nil)
228228 let res2 = invoke(poolContract, "setS", [keyAmpHistory(height), amp], nil)
229229 $Tuple2(nil, $Tuple2(res1, res2))
230230 }
231231 else throw("Strict value is not equal to itself.")
232232 }
233233
234234
235235
236236 @Callable(i)
237237 func ensureCanGetOneTkn (caller) = {
238238 let checkCaller = mustPool(i)
239239 if ((checkCaller == checkCaller))
240240 then {
241241 let ensure = match getInteger(poolContract, lastGetOneTknCall(caller)) {
242242 case int: Int =>
243243 let permittedHeight = (int + value(getInteger(poolContract, delay)))
244244 let isReadyforGetOneTkn = (height >= permittedHeight)
245245 let needBlocks = (permittedHeight - height)
246246 if (isReadyforGetOneTkn)
247247 then true
248- else throw(makeString(["wait for", toString(needBlocks), "block(s) more"], " "))
248+ else throw(makeString(["you should wait", toString(needBlocks), "blocks more to perform the action"], " "))
249249 case _ =>
250250 true
251251 }
252252 if ((ensure == ensure))
253253 then {
254254 let setI = invoke(poolContract, "setI", [lastPutOneTknCall(caller), height], nil)
255255 if ((setI == setI))
256256 then nil
257257 else throw("Strict value is not equal to itself.")
258258 }
259259 else throw("Strict value is not equal to itself.")
260260 }
261261 else throw("Strict value is not equal to itself.")
262262 }
263263
264264
265265
266266 @Callable(i)
267267 func ensureCanPutOneTkn (caller) = {
268268 let checkCaller = mustPool(i)
269269 if ((checkCaller == checkCaller))
270270 then {
271271 let ensure = match getInteger(poolContract, lastGetOneTknCall(caller)) {
272272 case int: Int =>
273273 let permittedHeight = (int + value(getInteger(poolContract, delay)))
274274 let isReadyforPutOneTkn = (height >= permittedHeight)
275275 let needBlocks = (permittedHeight - height)
276276 if (isReadyforPutOneTkn)
277277 then true
278- else throw(makeString(["wait for", toString(needBlocks), "block(s) more"], " "))
278+ else throw(makeString(["you should wait", toString(needBlocks), "blocks more to perform the action"], " "))
279279 case _ =>
280280 true
281281 }
282282 if ((ensure == ensure))
283283 then {
284284 let setI = invoke(poolContract, "setI", [lastPutOneTknCall(caller), height], nil)
285285 if ((setI == setI))
286286 then nil
287287 else throw("Strict value is not equal to itself.")
288288 }
289289 else throw("Strict value is not equal to itself.")
290290 }
291291 else throw("Strict value is not equal to itself.")
292292 }
293293
294294
295295 @Verifier(tx)
296296 func verify () = {
297297 let targetPublicKey = match managerPublicKeyOrUnit() {
298298 case pk: ByteVector =>
299299 pk
300300 case _: Unit =>
301301 tx.senderPublicKey
302302 case _ =>
303303 throw("Match error")
304304 }
305305 sigVerify(tx.bodyBytes, tx.proofs[0], targetPublicKey)
306306 }
307307

github/deemru/w8io/169f3d6 
84.38 ms