tx · 6tm3FEzFiEWuXmmcRvR4y9UtoHFkENiKGkxcZPNPj9d1

3MvvqJeN3pieAJGmV1sVQ7VBo6jUvUopAgQ:  -0.01000000 Waves

2020.10.12 16:27 [1217396] smart account 3MvvqJeN3pieAJGmV1sVQ7VBo6jUvUopAgQ > SELF 0.00000000 Waves

{ "type": 13, "id": "6tm3FEzFiEWuXmmcRvR4y9UtoHFkENiKGkxcZPNPj9d1", "fee": 1000000, "feeAssetId": null, "timestamp": 1602509275267, "version": 1, "sender": "3MvvqJeN3pieAJGmV1sVQ7VBo6jUvUopAgQ", "senderPublicKey": "4HxJtcNDYzeXNXqqyJxWEyyY62uCJxeRn4JHsSRW8P9S", "proofs": [ "29wn9fiGW5qz8suYMWasVSk6r1eM1PvMPV3vWwqzCbERFsbGx5r4kmHT7y6KuDZpNFvJcn6SCobDNb2UmQf1w9gV" ], "script": "base64:AAIEAAAAAAAAABcIAhIHCgUBAQEBARIFCgMICAgSAwoBCAAAAAkAAAAAEmlzc3VlUGVyY2VudGlsZUtleQIAAAAPaXNzdWVQZXJjZW50aWxlAAAAABNyZWRlZW1QZXJjZW50aWxlS2V5AgAAABByZWRlZW1QZXJjZW50aWxlAAAAAAttaW5Jc3N1ZUtleQIAAAAIbWluSXNzdWUAAAAADG1pblJlZGVlbUtleQIAAAAJbWluUmVkZWVtAAAAAAptaW5Qb29sS2V5AgAAAAdtaW5Qb29sAAAAAAx3aGl0ZWxpc3RLZXkCAAAADmlzc3VlV2hpdGVMaXN0AAAAAApmZWVBZGRyS2V5AgAAAApmZWVBZGRyZXNzAAAAAA5zdGFraW5nQWRkcktleQIAAAAOc3Rha2luZ0FkZHJlc3MAAAAAD2RhZW1vblB1YktleUtleQIAAAAPZGFlbW9uUHVibGljS2V5AAAAAwAAAANpbnYBAAAACXNldFBhcmFtcwAAAAUAAAACaVAAAAACclAAAAACbUkAAAACbVIAAAACbVADCQEAAAACIT0AAAACCAUAAAADaW52AAAABmNhbGxlcgUAAAAEdGhpcwk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AETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADnN0YWtpbmdBZGRyS2V5BQAAAAtzdGFraW5nQWRkcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAA9kYWVtb25QdWJLZXlLZXkFAAAACGRhZW1vblBLBQAAAANuaWwAAAABaQEAAAAMc2V0V2hpdGVsaXN0AAAAAQAAAAFsAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAAHm9ubHkgc2VsZiBjYW4gY2hhbmdlIHdoaXRlbGlzdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAx3aGl0ZWxpc3RLZXkFAAAAAWwFAAAAA25pbAAAAAAK9pbb", "chainId": 84, "height": 1217396, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 4 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let issuePercentileKey = "issuePercentile"
5+
6+let redeemPercentileKey = "redeemPercentile"
7+
8+let minIssueKey = "minIssue"
9+
10+let minRedeemKey = "minRedeem"
11+
12+let minPoolKey = "minPool"
13+
14+let whitelistKey = "issueWhiteList"
15+
16+let feeAddrKey = "feeAddress"
17+
18+let stakingAddrKey = "stakingAddress"
19+
20+let daemonPubKeyKey = "daemonPublicKey"
21+
22+@Callable(inv)
23+func setParams (iP,rP,mI,mR,mP) = if ((inv.caller != this))
24+ then throw("only self can change params")
25+ else if (if (if (if (if ((0 > iP))
26+ then true
27+ else (0 > rP))
28+ then true
29+ else (0 > mI))
30+ then true
31+ else (0 > mR))
32+ then true
33+ else (0 > mP))
34+ then throw("something < 0")
35+ else [IntegerEntry(issuePercentileKey, iP), IntegerEntry(redeemPercentileKey, rP), IntegerEntry(minIssueKey, mI), IntegerEntry(minRedeemKey, mR), IntegerEntry(minPoolKey, mP)]
36+
37+
38+
39+@Callable(i)
40+func setAddr (feeAddr,stakingAddr,daemonPK) = if ((i.caller != this))
41+ then throw("only self can set addr")
42+ else if ((addressFromString(feeAddr) == unit))
43+ then throw("bad fee address")
44+ else if ((addressFromString(stakingAddr) == unit))
45+ then throw("bad staking address")
46+ else [StringEntry(feeAddrKey, feeAddr), StringEntry(stakingAddrKey, stakingAddr), StringEntry(daemonPubKeyKey, daemonPK)]
47+
48+
49+
50+@Callable(i)
51+func setWhitelist (l) = if ((i.caller != this))
52+ then throw("only self can change whitelist")
53+ else [StringEntry(whitelistKey, l)]
54+
55+

github/deemru/w8io/026f985 
13.79 ms