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/PAx5TxuEQAFYWRkcjQJAQdBZGRyZXNzAQEaAVcZiDKxZMIjSU6T4P8nfvBDp0B4zzdAcz8ABWFkZHI1CQEHQWRkcmVzcwEBGgFXKCGEQW56xL0T3uhEMOchlhWwX2XG30GsAQFpAQdkZWZhdWx0AAMDCQECIT0CCAUBaQxvcmlnaW5DYWxsZXIFDGFkbWluQWRkcmVzcwkBAiE9AggFAWkMb3JpZ2luQ2FsbGVyBQR0aGlzBwkAAgECEW9ubHkgYWRtaW4gY2FuIGRvBAFoBQZoZWlnaHQEBWVwb2NoCQBoAgkAaQIFAWgAoAsAoAsEBHdLZXkJAK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hbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQkArAICAgt3aXRoZHJhd246IAkApAMBBQl3aXRoZHJhd24BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQDaW52BQckbWF0Y2gwAwMJAAACCQCkCAEIBQNpbnYEZEFwcAUEdGhpcwkAZwIAwbqZBggFA2ludgNmZWUHBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYVstx8=", "chainId": 87, "height": 3441671, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HhDFWG6R6eLfD8iNGpAabkviC31JUeKrbmHtJP2JjJ8V Next: DKMec9U3b5Xj5WVjBctmvqqVGg1yPYA4KweqoJhxQtoS Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminAddress = Address(base58'3P6gGsVQbD2xgmaNxN7Rj3arohPsBxvo5GC')
55
66 let addr1 = Address(base58'3PJBzrtbUfsRpFAKKWiDDwagnr9rLiBz7ET')
77
88 let addr2 = Address(base58'3PCa8s6WG3qVXeX4cyvWQXSghXYETXun9jK')
99
1010 let addr3 = Address(base58'3PB8tNCP7deUkyuSSXEzGkmasweKFrtjqig')
1111
1212 let addr4 = Address(base58'3P4FtnFExzXrKELn73qaHX5aKJu88dqS7SN')
1313
1414 let addr5 = Address(base58'3P5b5uhHP63rccSzBR2qm2nHXPpL6CN2jS3')
1515
1616 @Callable(i)
1717 func default () = if (if ((i.originCaller != adminAddress))
1818 then (i.originCaller != this)
1919 else false)
2020 then throw("only admin can do")
2121 else {
2222 let h = height
2323 let epoch = ((h / 1440) * 1440)
2424 let wKey = ("w_" + toString(epoch))
2525 if (isDefined(getBoolean(this, wKey)))
2626 then throw(wKey)
2727 else {
2828 let key = (("total_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p_" + toString(epoch)) + "_withdrawn_within_epoch")
2929 let withdrawn = valueOrElse(getInteger(addressFromStringValue("3PKZk5TdPCLP2GZviipLFfK46ExTnwkRCBd"), key), 0)
3030 let maxWithdraw = valueOrElse(getInteger(this, "max"), 10000000000)
3131 if ((maxWithdraw > (withdrawn + 50000000)))
3232 then {
3333 let inv1 = invoke(addr1, "usdn_100", [1], nil)
3434 if ((inv1 == inv1))
3535 then {
3636 let inv2 = invoke(addr2, "usdn_100", [2], nil)
3737 if ((inv2 == inv2))
3838 then {
3939 let inv3 = invoke(addr3, "usdn_100", [3], nil)
4040 if ((inv3 == inv3))
4141 then {
4242 let inv4 = invoke(addr4, "usdn_100", [4], nil)
4343 if ((inv4 == inv4))
4444 then {
4545 let inv5 = invoke(addr5, "usdn_100", [5], nil)
4646 if ((inv5 == inv5))
4747 then [BooleanEntry(wKey, true)]
4848 else throw("Strict value is not equal to itself.")
4949 }
5050 else throw("Strict value is not equal to itself.")
5151 }
5252 else throw("Strict value is not equal to itself.")
5353 }
5454 else throw("Strict value is not equal to itself.")
5555 }
5656 else throw("Strict value is not equal to itself.")
5757 }
5858 else throw(("withdrawn: " + toString(withdrawn)))
5959 }
6060 }
6161
6262
6363 @Verifier(tx)
6464 func verify () = match tx {
6565 case inv: InvokeScriptTransaction =>
6666 if (if ((addressFromRecipient(inv.dApp) == this))
6767 then (13000001 >= inv.fee)
6868 else false)
6969 then true
7070 else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7171 case _ =>
7272 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
7373 }
7474

github/deemru/w8io/026f985 
59.83 ms