tx · GDLZLbMagQmQHPfKU2PPg8VnG8tQAbrSVCWjzPSGG2Ne

3MxAqViYbBQxN5AgCi7FWbfxzMs1PAeLxM9:  -0.01000000 Waves

2020.11.25 13:55 [1280840] smart account 3MxAqViYbBQxN5AgCi7FWbfxzMs1PAeLxM9 > SELF 0.00000000 Waves

{ "type": 13, "id": "GDLZLbMagQmQHPfKU2PPg8VnG8tQAbrSVCWjzPSGG2Ne", "fee": 1000000, "feeAssetId": null, "timestamp": 1606301727272, "version": 1, "sender": "3MxAqViYbBQxN5AgCi7FWbfxzMs1PAeLxM9", "senderPublicKey": "AeGx68q8k1JqaMgQdCWubWsEdihgL2J6DW2vVwtXZNkU", "proofs": [ "48PfKRo6vgy127Qwa8ZR9bfi6vUWm2PgTbsA4R87ozCUTqTt1R8yCCSjW1tbgrqFp2nkms53dA2SP9gRF3oHZodk" ], "script": "base64:AAIEAAAAAAAAACwIAhIHCgUBAQEBARIFCgMICAgSAwoBCBIECgIIARIDCgEBEgMKAQESAwoBAQAAAA0AAAAAEmlzc3VlUGVyY2VudGlsZUtleQIAAAAPaXNzdWVQZXJjZW50aWxlAAAAABNyZWRlZW1QZXJjZW50aWxlS2V5AgAAABByZWRlZW1QZXJjZW50aWxlAAAAAAttaW5Jc3N1ZUtleQIAAAAIbWluSXNzdWUAAAAADG1pblJlZGVlbUtleQIAAAAJbWluUmVkZWVtAAAAAAptaW5Qb29sS2V5AgAAAAdtaW5Qb29sAAAAAAx3aGl0ZWxpc3RLZXkCAAAADmlzc3VlV2hpdGVMaXN0AAAAABNyZWJhbGFuY2VQZXJjZW50aWxlAgAAABRfcmViYWxhbmNlUGVyY2VudGlsZQAAAAAacGVyY2VudGlsZUFjdGl2YXRpb25IZWlnaHQCAAAAGnBlcmNlbnRpbGVBY3RpdmF0aW9uSGVpZ2h0AAAAAApmZWVBZGRyS2V5AgAAAApmZWVBZGRyZXNzAAAAAA5zdGFraW5nQWRkcktleQIAAAAOc3Rha2luZ0FkZHJlc3MAAAA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AAABNyZWJhbGFuY2VQZXJjZW50aWxlBQAAAAJyUAUAAAADbmlsAAAAAWkBAAAAJnNldFJlYmFsYW5jZVBlcmNlbnRpbGVBY3RpdmF0aW9uSGVpZ2h0AAAAAQAAAAFoAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAAL29ubHkgc2VsZiBjYW4gY2hhbmdlIHBlcmNlbnRpbGVBY3RpdmF0aW9uSGVpZ2h0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABpwZXJjZW50aWxlQWN0aXZhdGlvbkhlaWdodAUAAAABaAUAAAADbmlsAAAAAWkBAAAAC3NldFdhdmVzRmVlAAAAAQAAAAFmAwkBAAAAAiE9AAAAAggFAAAAAWkAAAAGY2FsbGVyBQAAAAR0aGlzCQAAAgAAAAECAAAAJm9ubHkgc2VsZiBjYW4gY2hhbmdlIHdhdmVzUGFjZW1ha2VyRmVlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAABR3YXZlc1BhY2VtYWtlckZlZUtleQUAAAABZgUAAAADbmlsAAAAAWkBAAAACnNldFVzZG5GZWUAAAABAAAAAWYDCQEAAAACIT0AAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABHRoaXMJAAACAAAAAQIAAAAlb25seSBzZWxmIGNhbiBjaGFuZ2UgdXNkblBhY2VtYWtlckZlZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAATdXNkblBhY2VtYWtlckZlZUtleQUAAAABZgUAAAADbmlsAAAAAJEGgyE=", "chainId": 84, "height": 1280840, "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 rebalancePercentile = "_rebalancePercentile"
17+
18+let percentileActivationHeight = "percentileActivationHeight"
19+
20+let feeAddrKey = "feeAddress"
21+
22+let stakingAddrKey = "stakingAddress"
23+
24+let daemonPubKeyKey = "daemonPublicKey"
25+
26+let wavesPacemakerFeeKey = "wavesPacemakerFee"
27+
28+let usdnPacemakerFeeKey = "usdnPacemakerFee"
29+
30+@Callable(inv)
31+func setParams (iP,rP,mI,mR,mP) = if ((inv.caller != this))
32+ then throw("only self can change params")
33+ else if (if (if (if (if ((0 > iP))
34+ then true
35+ else (0 > rP))
36+ then true
37+ else (0 > mI))
38+ then true
39+ else (0 > mR))
40+ then true
41+ else (0 > mP))
42+ then throw("something < 0")
43+ else [IntegerEntry(issuePercentileKey, iP), IntegerEntry(redeemPercentileKey, rP), IntegerEntry(minIssueKey, mI), IntegerEntry(minRedeemKey, mR), IntegerEntry(minPoolKey, mP)]
44+
45+
46+
47+@Callable(i)
48+func setAddr (feeAddr,stakingAddr,daemonPK) = if ((i.caller != this))
49+ then throw("only self can set addr")
50+ else if ((addressFromString(feeAddr) == unit))
51+ then throw("bad fee address")
52+ else if ((addressFromString(stakingAddr) == unit))
53+ then throw("bad staking address")
54+ else [StringEntry(feeAddrKey, feeAddr), StringEntry(stakingAddrKey, stakingAddr), StringEntry(daemonPubKeyKey, daemonPK)]
55+
56+
57+
58+@Callable(i)
59+func setWhitelist (l) = if ((i.caller != this))
60+ then throw("only self can change whitelist")
61+ else [StringEntry(whitelistKey, l)]
62+
63+
64+
65+@Callable(i)
66+func setRebalancePercentile (addr,rP) = if ((i.caller != this))
67+ then throw("only self can change rebalancePercentile")
68+ else if (!(isDefined(addressFromString(addr))))
69+ then throw("bad address")
70+ else [IntegerEntry((addr + rebalancePercentile), rP)]
71+
72+
73+
74+@Callable(i)
75+func setRebalancePercentileActivationHeight (h) = if ((i.caller != this))
76+ then throw("only self can change percentileActivationHeight")
77+ else [IntegerEntry(percentileActivationHeight, h)]
78+
79+
80+
81+@Callable(i)
82+func setWavesFee (f) = if ((i.caller != this))
83+ then throw("only self can change wavesPacemakerFee")
84+ else [IntegerEntry(wavesPacemakerFeeKey, f)]
85+
86+
87+
88+@Callable(i)
89+func setUsdnFee (f) = if ((i.caller != this))
90+ then throw("only self can change usdnPacemakerFee")
91+ else [IntegerEntry(usdnPacemakerFeeKey, f)]
92+
93+

github/deemru/w8io/026f985 
14.02 ms