tx · mcKi5QLx39G5TTJEEef2F5EMizqciQFsd5J345xa2Tw 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx: -0.01400000 Waves 2022.09.12 23:09 [2226348] smart account 3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx > SELF 0.00000000 Waves
{ "type": 13, "id": "mcKi5QLx39G5TTJEEef2F5EMizqciQFsd5J345xa2Tw", "fee": 1400000, "feeAssetId": null, "timestamp": 1663013400122, "version": 2, "chainId": 84, "sender": "3MqxNQues3HH3kBjuzTSnJ7UKwmS9hgnxxx", "senderPublicKey": "3karvhVe3LgRMXprezaPpdeYknh9ju1rETVV3zdunQ1p", "proofs": [ "5K1C4Hz3xERg1GMUodE6YZW79EqHw9aM9YHuEv5DTJidmkoHrHoJwoJK9xNNGfpNsL4k6uyTQ73mFF333VK8Vrqz" ], "script": "base64:AAIEAAAAAAAAAA0IAhIDCgEIEgQKAggIAAAAAQAAAAALQ09ERUFzc2V0SUQBAAAAIAhlhLcP8IpqGvPiaOguCJAkw9MnWAPNLPYuXgvf2hWkAAAAAgAAAAFpAQAAAAhSZWNoYXJnZQAAAAEAAAAIVXNlck5hbWUEAAAABHBtdDEJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAABHBtdDIJAQAAAAV2YWx1ZQAAAAEJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAEEAAAAEURlcG9zaXRDT0RFQW1vdW50BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAACFVzZXJOYW1lAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAAFG5ld0RlcG9zaXRDT0RFQW1vdW50CQAAZAAAAAIFAAAAEURlcG9zaXRDT0RFQW1vdW50CAUAAAAEcG10MQAAAAZhbW91bnQDCQEAAAACIT0A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AAAEdGhpcwIAAAARREFwcF9BZG1pbl9SaWdodHMEAAAAC2dldFVzZXJOYW1lCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwUAAAAIVXNlck5hbWUCAAAAOlRlbGVncmFtIElEIG5vdCBmb3VuZCwgUGxlYXNlIENyb3NzIENoZWNrIHlvdSBFbmNyeXB0ZWQgSUQDCQEAAAACIT0AAAACBQAAAAthZG1pbnJpZ2h0cwUAAAANY2FsbGVyYWRkcmVzcwkAAAIAAAABCQABLAAAAAIJAAEsAAAAAgIAAAAiSSBrbm93IFlvdSBhcmUgbm90IEFuIEFkbWluLiBPbmx5IAUAAAALYWRtaW5yaWdodHMCAAAAHyBoYXMgcmlnaHRzIHRvIHdpdGhkcmF3IFRva2Vucy4JAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQUAAAAIVXNlck5hbWUJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAPV2l0aGRyYXdBZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzBQAAAAhVc2VyTmFtZQUAAAALQ09ERUFzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5GlbUcw==", "height": 2226348, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2YZMD387UnEUR4Ykr1ybku6GE9XintCgEKkxEFajgnaX Next: none Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | then throw("Amount attached is Less than 10 CODE.") | |
24 | 24 | else if (isDefined(e.assetId)) | |
25 | 25 | then throw("Incorrect asset attached for Payment[2], please attach TN only.") | |
26 | - | else if ((fraction(d.amount, 1000, | |
26 | + | else if ((fraction(d.amount, 1000, 16666666) > e.amount)) | |
27 | 27 | then throw((("Incorrect amount of payment[2] attached, please attach minimum " + toString(fraction(d.amount, 1000, 1666))) + "/100000000. [TN]")) | |
28 | 28 | else [IntegerEntry(c, i)] | |
29 | 29 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'Zn3cLHW7aAVPm5aACcTjvg7e7iEy2cKDtbowok5qa9H' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func Recharge (c) = { | |
8 | 8 | let d = value(b.payments[0]) | |
9 | 9 | let e = value(b.payments[1]) | |
10 | 10 | let f = { | |
11 | 11 | let g = getInteger(this, c) | |
12 | 12 | if ($isInstanceOf(g, "Int")) | |
13 | 13 | then { | |
14 | 14 | let h = g | |
15 | 15 | h | |
16 | 16 | } | |
17 | 17 | else 0 | |
18 | 18 | } | |
19 | 19 | let i = (f + d.amount) | |
20 | 20 | if ((d.assetId != a)) | |
21 | 21 | then throw("Incorrect asset attached for in payment[1], please attach minimum 10 CODE Token.") | |
22 | 22 | else if ((1000000000 > d.amount)) | |
23 | 23 | then throw("Amount attached is Less than 10 CODE.") | |
24 | 24 | else if (isDefined(e.assetId)) | |
25 | 25 | then throw("Incorrect asset attached for Payment[2], please attach TN only.") | |
26 | - | else if ((fraction(d.amount, 1000, | |
26 | + | else if ((fraction(d.amount, 1000, 16666666) > e.amount)) | |
27 | 27 | then throw((("Incorrect amount of payment[2] attached, please attach minimum " + toString(fraction(d.amount, 1000, 1666))) + "/100000000. [TN]")) | |
28 | 28 | else [IntegerEntry(c, i)] | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | ||
33 | 33 | @Callable(b) | |
34 | 34 | func Withdraw (c,j) = { | |
35 | 35 | let k = toBase58String(b.caller.bytes) | |
36 | 36 | let l = getStringValue(this, "DApp_Admin_Rights") | |
37 | 37 | let m = valueOrErrorMessage(getString(this, c), "Telegram ID not found, Please Cross Check you Encrypted ID") | |
38 | 38 | if ((l != k)) | |
39 | 39 | then throw((("I know You are not An Admin. Only " + l) + " has rights to withdraw Tokens.")) | |
40 | 40 | else [DeleteEntry(c), ScriptTransfer(addressFromStringValue(j), getIntegerValue(this, c), a)] | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Verifier(n) | |
45 | 45 | func o () = sigVerify(n.bodyBytes, n.proofs[0], n.senderPublicKey) | |
46 | 46 |
github/deemru/w8io/169f3d6 33.10 ms ◑