tx · bwrGFqhcWRveGf8urkrbDcNY2xwbih1NFcz4kUkURGM

3Myo52cEARR1oQwd86fnGfjuv2F8S2f95so:  -0.01000000 Waves

2021.11.23 15:26 [1803666] smart account 3Myo52cEARR1oQwd86fnGfjuv2F8S2f95so > SELF 0.00000000 Waves

{ "type": 13, "id": "bwrGFqhcWRveGf8urkrbDcNY2xwbih1NFcz4kUkURGM", "fee": 1000000, "feeAssetId": null, "timestamp": 1637670412470, "version": 1, "sender": "3Myo52cEARR1oQwd86fnGfjuv2F8S2f95so", "senderPublicKey": "By7oLKrQGtE1ikS6HNoJzERQQDY3WNBJva2bqkaWTfX1", "proofs": [ "GJF8vH2Qqq2d3NJ6jwAEKVHcjV5UqdrqQQrWeMAhACnSXk7iUGegQtvQwB6LejYXPP9mk3SNhSeYaZmjrRhzoe7" ], "script": "base64:AAIFAAAAAAAAAAwIAhIICgYIAQEBAQEAAAAUAAAAAANTRVACAAAAAl9fAQAAAA9nZXRTdHJpbmdPckZhaWwAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgIAAAAPbWFuZGF0b3J5IHRoaXMuBQAAAANrZXkCAAAADyBpcyBub3QgZGVmaW5lZAEAAAARa2V5RmFjdG9yeUFkZHJlc3MAAAAAAgAAABwlcyVzX19jb25maWdfX2ZhY3RvcnlBZGRyZXNzAAAAABhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAAAAAAAAAAAAEAAAAAGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAAAAAAAAAAAAIAAAAAFElkeEZhY3RvcnlDZmdJZG9EYXBwAAAAAAAAAAADAAAAABVJZHhGYWN0b3J5Q2ZnVGVhbURhcHAAAAAAAAAAAAQAAAAAGUlkeEZhY3RvcnlDZmdFbWlzc2lvbkRhcHAAAAAAAAAAAAUAAAAAFUlkeEZ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G9jawUAAAAMcmF0ZVBlckJsb2NrCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQEAAAAWa2V5UmF0ZVBlckJsb2NrQ3VycmVudAAAAAAFAAAADHJhdGVQZXJCbG9jawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAFWtleUVtaXNzaW9uU3RhcnRCbG9jawAAAAAFAAAAEmVtaXNzaW9uU3RhcnRCbG9jawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkBAAAAG2tleUVtaXNzaW9uRHVyYXRpb25JbkJsb2NrcwAAAAAFAAAAEGVtaXNzaW9uRHVyYXRpb24JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAQAAABNrZXlFbWlzc2lvbkVuZEJsb2NrAAAAAAkAAGQAAAACBQAAABJlbWlzc2lvblN0YXJ0QmxvY2sFAAAAEGVtaXNzaW9uRHVyYXRpb24JAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAEWtleUZhY3RvcnlBZGRyZXNzAAAAAAUAAAAOZmFjdG9yeUFkZHJlc3MFAAAAA25pbAAAAADRqt0I", "chainId": 84, "height": 1803666, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HG1Yy8idzVZHa24275FHggvmLx2KuqBTZ8iNkKwXEQSb Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let SEP = "__"
5+
6+func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), (("mandatory this." + key) + " is not defined"))
7+
8+
9+func keyFactoryAddress () = "%s%s__config__factoryAddress"
10+
11+
12+let IdxFactoryCfgStakingDapp = 1
13+
14+let IdxFactoryCfgBoostingDapp = 2
15+
16+let IdxFactoryCfgIdoDapp = 3
17+
18+let IdxFactoryCfgTeamDapp = 4
19+
20+let IdxFactoryCfgEmissionDapp = 5
21+
22+let IdxFactoryCfgRestDapp = 6
23+
24+let IdxFactoryCfgSlippageDapp = 7
25+
26+func keyFactoryConfig () = "%s__factoryConfig"
27+
28+
29+func keyFactoryLp2AssetsMapping (lpAssetStr) = makeString(["%s%s%s", lpAssetStr, "mappings__lpAsset2PoolContract"], SEP)
30+
31+
32+func readFactoryAddressOrFail () = addressFromStringValue(getStringOrFail(this, keyFactoryAddress()))
33+
34+
35+func keyRatePerBlockMaxCurrent () = "%s%s__ratePerBlockMax__current"
36+
37+
38+func keyRatePerBlockMaxStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlockMax__start", toString(timestamp), toString(block)], SEP)
39+
40+
41+func keyRatePerBlockCurrent () = "%s%s__ratePerBlock__current"
42+
43+
44+func keyRatePerBlockStartFrom (timestamp,block) = makeString(["%s%s%d%d__ratePerBlock__start", toString(timestamp), toString(block)], SEP)
45+
46+
47+func keyEmissionStartBlock () = "%s%s__emission__startBlock"
48+
49+
50+func keyEmissionDurationInBlocks () = "%s%s__emission__duration"
51+
52+
53+func keyEmissionEndBlock () = "%s%s__emission__endBlock"
54+
55+
56+@Callable(i)
57+func constructor (factoryAddress,ratePerBlockMax,ratePerBlock,emissionStartBlock,emissionDuration,emissionStartTimestamp) = if ((i.caller != this))
58+ then throw("permissions denied")
59+ else [IntegerEntry(keyRatePerBlockMaxStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlockMax), IntegerEntry(keyRatePerBlockMaxCurrent(), ratePerBlockMax), IntegerEntry(keyRatePerBlockStartFrom(emissionStartTimestamp, emissionStartBlock), ratePerBlock), IntegerEntry(keyRatePerBlockCurrent(), ratePerBlock), IntegerEntry(keyEmissionStartBlock(), emissionStartBlock), IntegerEntry(keyEmissionDurationInBlocks(), emissionDuration), IntegerEntry(keyEmissionEndBlock(), (emissionStartBlock + emissionDuration)), StringEntry(keyFactoryAddress(), factoryAddress)]
60+
61+

github/deemru/w8io/169f3d6 
17.36 ms