tx · DbMGUxZC2SkJ4WSnRWKAzyuTFVctHq2xjfZvoP8ym5Uc 3PNJJ4SfXoc9p4PRWVD5nVXx92jxjbtPmcz: -0.00300000 Waves 2022.12.25 21:37 [3441671] smart account 3PNJJ4SfXoc9p4PRWVD5nVXx92jxjbtPmcz > SELF 0.00000000 Waves
{ "type": 13, "id": "DbMGUxZC2SkJ4WSnRWKAzyuTFVctHq2xjfZvoP8ym5Uc", "fee": 300000, "feeAssetId": null, "timestamp": 1671993489280, "version": 1, "sender": "3PNJJ4SfXoc9p4PRWVD5nVXx92jxjbtPmcz", "senderPublicKey": "AozXhqm6EWKxzKDXz7KtBFwCDRxZBa61HkYrDNXEcF9K", "proofs": [ "3yMbMc1DSNBeb3bWKmhUQALAnnhrbwDui9gWcvdi2sJ7j7929r222skZqC4RQQV6EmgYUuJ3Q3HToXNx3ziDgGvt" ], "script": "base64:BgIECAISAAYADGFkbWluQWRkcmVzcwkBB0FkZHJlc3MBARoBVzQU33FERt8wVNH3uJxzRQyrOiubTY4mYQAFYWRkcjEJAQdBZGRyZXNzAQEaAVeyXV7bJc3SVAQgzNDU0Zs4EEGiWZ499UwABWFkZHIyCQEHQWRkcmVzcwEBGgFXdLxysJoaW8fyJfsMU5BVmyjno3Df8Xm+AAVhZGRyMwkBB0FkZHJlc3MBARoBV2T90hXk0AbbxigHKOOa6kRL/PAx5TxuEQAFYWRkcjQJAQdBZGRyZXNzAQEaAVcZiDKxZMIjSU6T4P8nfvBDp0B4zzdAcz8ABWFkZHI1CQEHQWRkcmVzcwEBGgFXKCGEQW56xL0T3uhEMOchlhWwX2XG30GsAQFpAQdkZWZhdWx0AAMDCQECIT0CCAUBaQxvcmlnaW5DYWxsZXIFDGFkbWluQWRkcmVzcwkBAiE9AggFAWkMb3JpZ2luQ2FsbGVyBQR0aGlzBwkAAgECEW9ubHkgYWRtaW4gY2FuIGRvBAFoBQZoZWlnaHQEBWVwb2NoCQBoAgkAaQIFAWgAoAsAoAsEBHdLZXkJAKw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bCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQkArAICAgt3aXRoZHJhd246IAkApAMBBQl3aXRoZHJhd24BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQDaW52BQckbWF0Y2gwAwMJAAACCQCkCAEIBQNpbnYEZEFwcAUEdGhpcwkAZwIAwbqZBggFA2ludgNmZWUHBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYVstx8=", "chainId": 87, "height": 3441671, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HhDFWG6R6eLfD8iNGpAabkviC31JUeKrbmHtJP2JjJ8V Next: DKMec9U3b5Xj5WVjBctmvqqVGg1yPYA4KweqoJhxQtoS Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminAddress = Address(base58'3P6gGsVQbD2xgmaNxN7Rj3arohPsBxvo5GC') | |
5 | 5 | ||
6 | 6 | let addr1 = Address(base58'3PJBzrtbUfsRpFAKKWiDDwagnr9rLiBz7ET') | |
7 | 7 | ||
8 | 8 | let addr2 = Address(base58'3PCa8s6WG3qVXeX4cyvWQXSghXYETXun9jK') | |
9 | 9 | ||
10 | 10 | let addr3 = Address(base58'3PB8tNCP7deUkyuSSXEzGkmasweKFrtjqig') | |
11 | 11 | ||
12 | 12 | let addr4 = Address(base58'3P4FtnFExzXrKELn73qaHX5aKJu88dqS7SN') | |
13 | 13 | ||
14 | 14 | let addr5 = Address(base58'3P5b5uhHP63rccSzBR2qm2nHXPpL6CN2jS3') | |
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func default () = if (if ((i.originCaller != adminAddress)) | |
18 | 18 | then (i.originCaller != this) | |
19 | 19 | else false) | |
20 | 20 | then throw("only admin can do") | |
21 | 21 | else { | |
22 | 22 | let h = height | |
23 | 23 | let epoch = ((h / 1440) * 1440) | |
24 | 24 | let wKey = ("w_" + toString(epoch)) | |
25 | 25 | if (isDefined(getBoolean(this, wKey))) | |
26 | 26 | then throw(wKey) | |
27 | 27 | else { | |
28 | 28 | let key = (("total_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p_" + toString(epoch)) + "_withdrawn_within_epoch") | |
29 | 29 | let withdrawn = valueOrElse(getInteger(addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd"), key), 0) | |
30 | 30 | let maxWithdraw = valueOrElse(getInteger(this, "max"), 10000000000) | |
31 | 31 | if ((maxWithdraw > (withdrawn + 50000000))) | |
32 | 32 | then { | |
33 | 33 | let inv1 = invoke(addr1, "usdn_100", [1], nil) | |
34 | 34 | if ((inv1 == inv1)) | |
35 | 35 | then { | |
36 | 36 | let inv2 = invoke(addr2, "usdn_100", [2], nil) | |
37 | 37 | if ((inv2 == inv2)) | |
38 | 38 | then { | |
39 | 39 | let inv3 = invoke(addr3, "usdn_100", [3], nil) | |
40 | 40 | if ((inv3 == inv3)) | |
41 | 41 | then { | |
42 | 42 | let inv4 = invoke(addr4, "usdn_100", [4], nil) | |
43 | 43 | if ((inv4 == inv4)) | |
44 | 44 | then { | |
45 | 45 | let inv5 = invoke(addr5, "usdn_100", [5], nil) | |
46 | 46 | if ((inv5 == inv5)) | |
47 | 47 | then [BooleanEntry(wKey, true)] | |
48 | 48 | else throw("Strict value is not equal to itself.") | |
49 | 49 | } | |
50 | 50 | else throw("Strict value is not equal to itself.") | |
51 | 51 | } | |
52 | 52 | else throw("Strict value is not equal to itself.") | |
53 | 53 | } | |
54 | 54 | else throw("Strict value is not equal to itself.") | |
55 | 55 | } | |
56 | 56 | else throw("Strict value is not equal to itself.") | |
57 | 57 | } | |
58 | 58 | else throw(("withdrawn: " + toString(withdrawn))) | |
59 | 59 | } | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | @Verifier(tx) | |
64 | 64 | func verify () = match tx { | |
65 | 65 | case inv: InvokeScriptTransaction => | |
66 | 66 | if (if ((addressFromRecipient(inv.dApp) == this)) | |
67 | 67 | then (13000001 >= inv.fee) | |
68 | 68 | else false) | |
69 | 69 | then true | |
70 | 70 | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
71 | 71 | case _ => | |
72 | 72 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
73 | 73 | } | |
74 | 74 |
github/deemru/w8io/026f985 59.83 ms ◑