tx · EUHbLMjGCAdG2QccZhPaDufAEXeFmHEjXLbmpSZs9b66

3N4o2HTw9N9b1aw59zmfmvtSA3uUZTgRMRZ:  -0.01400000 Waves

2021.06.09 22:36 [1563261] smart account 3N4o2HTw9N9b1aw59zmfmvtSA3uUZTgRMRZ > SELF 0.00000000 Waves

{ "type": 13, "id": "EUHbLMjGCAdG2QccZhPaDufAEXeFmHEjXLbmpSZs9b66", "fee": 1400000, "feeAssetId": null, "timestamp": 1623267402723, "version": 2, "chainId": 84, "sender": "3N4o2HTw9N9b1aw59zmfmvtSA3uUZTgRMRZ", "senderPublicKey": "ShSztE3JWeTwsqzeYxpBsdD1GNeC5sSL3zbipUmxuR1", "proofs": [ "41QfLAiN11mK6sneP3wHapRvnvErgVzqp7b6JEZqjQM14F45wqHPCD4NANcr84nkVqALUyCodg2oUAWgiVxxdDVJ" ], "script": "base64:AAIDAAAAAAAAAAkIARIAEgMKAQgAAAAAAAAAAgAAAAFpAQAAAAlSS01UdG9LU1MAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAQAAAAGc2VuZGVyCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAAD3NlbmRlcnB1YmxpY2tleQkAAlgAAAABCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkEAAAABmFzc2V0MQEAAAAg7W6ezmGUnP3O5hqSHS3e4uYtkMJNmB8HvATDD5acfHEEAAAAB3R4bmhhc2gJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAMJAQAAAAIhPQAAAAIIBQAAAANwbXQAAAAHYXNzZXRJZAUAAAAGYXNzZXQxCQAAAgAAAAECAAAAWkluY29ycmVjdCBhc3NldCBhdHRhY2hlZCwgcGxlYXNlIHNlbmQgR3lxVFlEZWEzRFdCYUF5UXM1UzV1SDIyMjN1Y0VMWUZhekpwWkxDZk16blUgKFJLTVQpLgkBAAAACFdyaXRlU2V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AIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkGygJ8", "height": 1563261, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3nHbnMhNNhgDWPp5CrktiZhmU4CUSKiu5jQZXXEhA9sU Next: none Diff:
OldNewDifferences
2323 let i = getStringValue(this, (g + "_Sender_pubkey"))
2424 let j = getStringValue(this, (g + "_Sender_AssetID"))
2525 let k = getIntegerValue(this, (g + "_Sender_amount"))
26+ let l = fraction(100, k, 1)
2627 if ((h != i))
2728 then throw("You are not an authorized user to Withdraw Funds or Wrong Public Key.")
2829 else if ((k == 0))
2930 then throw("You Already Have Withdraw Funds from This TxnID.")
30- else ScriptResult(WriteSet([DataEntry((g + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((g + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(a.caller, k, unit)]))
31+ else ScriptResult(WriteSet([DataEntry((g + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((g + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(a.caller, l, unit)]))
3132 }
3233
3334
34-@Verifier(l)
35-func m () = {
36- let n = l
37- sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
35+@Verifier(m)
36+func n () = {
37+ let o = m
38+ sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
3839 }
3940
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func RKMTtoKSS () = {
88 let b = extract(a.payment)
99 let c = toBase58String(a.caller.bytes)
1010 let d = toBase58String(a.callerPublicKey)
1111 let e = base58'GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU'
1212 let f = toBase58String(a.transactionId)
1313 if ((b.assetId != e))
1414 then throw("Incorrect asset attached, please send GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU (RKMT).")
1515 else WriteSet([DataEntry("Sender_TxnID", f), DataEntry((f + "_Sender_Address"), c), DataEntry((f + "_Sender_pubkey"), d), DataEntry((f + "_Sender_amount"), b.amount), DataEntry((f + "_Sender_AssetID"), "GyqTYDea3DWBaAyQs5S5uH2223ucELYFazJpZLCfMznU"), DataEntry((f + "_Sender_Status"), "PENDING")])
1616 }
1717
1818
1919
2020 @Callable(a)
2121 func withdraw (g) = {
2222 let h = toBase58String(a.callerPublicKey)
2323 let i = getStringValue(this, (g + "_Sender_pubkey"))
2424 let j = getStringValue(this, (g + "_Sender_AssetID"))
2525 let k = getIntegerValue(this, (g + "_Sender_amount"))
26+ let l = fraction(100, k, 1)
2627 if ((h != i))
2728 then throw("You are not an authorized user to Withdraw Funds or Wrong Public Key.")
2829 else if ((k == 0))
2930 then throw("You Already Have Withdraw Funds from This TxnID.")
30- else ScriptResult(WriteSet([DataEntry((g + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((g + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(a.caller, k, unit)]))
31+ else ScriptResult(WriteSet([DataEntry((g + "_Sender_Status"), "WITHDRAW_COMPLETED"), DataEntry((g + "_Sender_amount"), 0)]), TransferSet([ScriptTransfer(a.caller, l, unit)]))
3132 }
3233
3334
34-@Verifier(l)
35-func m () = {
36- let n = l
37- sigVerify(l.bodyBytes, l.proofs[0], l.senderPublicKey)
35+@Verifier(m)
36+func n () = {
37+ let o = m
38+ sigVerify(m.bodyBytes, m.proofs[0], m.senderPublicKey)
3839 }
3940

github/deemru/w8io/169f3d6 
42.52 ms