tx · 5b21zdMqf2sbpgBmpPoMFDEvssfCvG675sBYAQP8mt1n

3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR:  -0.01000000 Waves

2021.12.22 22:53 [1845915] smart account 3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR > SELF 0.00000000 Waves

{ "type": 13, "id": "5b21zdMqf2sbpgBmpPoMFDEvssfCvG675sBYAQP8mt1n", "fee": 1000000, "feeAssetId": null, "timestamp": 1640202831884, "version": 2, "chainId": 84, "sender": "3MyswDZXU8YcgX1dfuQgAjitWPJ3cggU2PR", "senderPublicKey": "JBFUVQjjvtMqXZeeeJLQyEP8RPmvMWbZHyCfGFnrmWJZ", "proofs": [ "2vbwnUopug9J4xzuQuK666wDSEfAsMzDWNKuLegMeidLfJCPkqfD9PBSefXUaafPeMPQSabT8j81CaR94D3PZEvS" ], "script": "base64:AAIFAAAAAAAAAgcIAhIFCgMICAgaFAoBQRIPY2FsY1RvdGFsUmV3YXJkGg8KAUISCm5ld0JhbGFuY2UaEgoBQxINbmV3U2F2ZVJld2FyZBoGCgFhEgFpGgsKAWISBmFjdGlvbhoJCgFjEgR0eXBlGhAKAWQSC3ZhbHVlQWN0aW9uGhIKAWUSDXRyYW5zYWN0aW9uSWQaFwoBZhISY3VycmVudFdhbGxldEJ5dGVzGg4KAWcSCXBheUFtb3VudBoSCgFoEg1jdXJyZW50V2FsbGV0GgwKAWkSB25hbWVOZnQaDgoBahIJdGltZXN0YW1wGhAKAWsSC2V4YW5CYWxhbmNlGgwKAWwSByRtYXRjaDAaBgoBbRIBdBoMCgFuEgdiYWxhbmNlGg8KAW8SCmhpc3RvcmljSWQaFAoBcBIPaW5pdGlhbFBvd2VyTmZ0GgoKAXESBXBvd2VyGg0KAXISCG5mdFBvd2VyGhQKAXMSD3Jld2FyZFRpbWVzdGFtcBoPCgF0EgpzYXZlUmV3YXJkGhUKAXUSEG5ld1Rva2VuUHVyY2hhc2UaFQoBdhIQdG90YWxFeGFuQmFsYW5j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AAAAAWICAAAACFNlbmQgTkZUCQAAAAAAAAIFAAAAAWgCAAAAIzNON1ltMVdLM1phRnA3VmZqdno2S0ZSR0Y2QXhzQVhtNzZXBwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQUAAAABYwAAAAAAAAAAAQkAAlkAAAABBQAAAAFkBQAAAANuaWwDAwMJAAAAAAAAAgUAAAABYgIAAAAHUmVxdWVzdAkAAGYAAAACBQAAAAFBAAAAAAAAAAAABwkAAAAAAAACBQAAAAFnAAAAAAAAD0JABwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAA1iYWxhbmNlX2V4YW5fBQAAAAFoBQAAAAFCCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAAEXJld2FyZF90aW1lc3RhbXBfBQAAAAFoBQAAAAF4CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAICAAAADHNhdmVfcmV3YXJkXwUAAAABaAAAAAAAAAAAAAUAAAADbmlsCQAAAgAAAAECAAAAXldlIHdlcmUgdW5hYmxlIHRvIGZ1bGZpbGwgeW91ciByZXF1ZXN0ISBNYWtlIHN1cmUgeW91IGhhdmUgZW5vdWdoIGJhbGFuY2UgZm9yIHRoZSB0cmFuc2FjdGlvbiEAAAAAIQTigA==", "height": 1845915, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GQkSzkfpfKuDezTo4a9ZWEw2Y963pkrp7nMJz1F8svDG Next: 3pveFmMBGoRdhKfdtd8Zj4ZzfJbccCfMpV6rvyfvvTjY Diff:
OldNewDifferences
9898 let C = if ((q == 0))
9999 then 0
100100 else (t + A)
101- if ((b == "Buy Tokens"))
102- then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
103- else if (if ((b == "Buy NFT"))
104- then ((g / 100000) == p)
105- else false)
106- then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
107- else if (if (if ((b == "Send NFT"))
108- then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
101+ if (true)
102+ then throw(("payAmount: " + toString(g)))
103+ else if ((b == "Buy Tokens"))
104+ then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
105+ else if (if ((b == "Buy NFT"))
106+ then ((g / 100000) == p)
109107 else false)
110- then (g == 1000000)
111- else false)
112- then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
113- else if (if (if ((b == "Request"))
114- then (A > 0)
108+ then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
109+ else if (if (if ((b == "Send NFT"))
110+ then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
115111 else false)
116112 then (g == 1000000)
117113 else false)
118- then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
119- else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
114+ then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
115+ else if (if (if ((b == "Request"))
116+ then (A > 0)
117+ else false)
118+ then (g == 1000000)
119+ else false)
120+ then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
121+ else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
120122 }
121123
122124
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func start (b,c,d) = {
88 let e = toBase58String(a.transactionId)
99 let f = a.caller
1010 let g = value(a.payments[0].amount)
1111 let h = toBase58String(a.caller.bytes)
1212 let i = ((((((("nft_" + c) + "_") + take(e, 10)) + "_") + h) + "_") + e)
1313 let j = take(toString(lastBlock.timestamp), 10)
1414 let k = {
1515 let l = getInteger(this, ("exan_balance_" + h))
1616 if ($isInstanceOf(l, "Int"))
1717 then {
1818 let m = l
1919 m
2020 }
2121 else 0
2222 }
2323 let n = {
2424 let l = getInteger(this, ("balance_exan_" + h))
2525 if ($isInstanceOf(l, "Int"))
2626 then {
2727 let m = l
2828 m
2929 }
3030 else 0
3131 }
3232 let o = {
3333 let l = getInteger(this, "historicId")
3434 if ($isInstanceOf(l, "Int"))
3535 then {
3636 let m = l
3737 m
3838 }
3939 else 0
4040 }
4141 let p = {
4242 let l = getInteger(this, ("List_NFT_" + c))
4343 if ($isInstanceOf(l, "Int"))
4444 then {
4545 let m = l
4646 m
4747 }
4848 else 0
4949 }
5050 let q = {
5151 let l = getInteger(this, ("power_" + h))
5252 if ($isInstanceOf(l, "Int"))
5353 then {
5454 let m = l
5555 m
5656 }
5757 else 0
5858 }
5959 let r = {
6060 let l = getInteger(this, d)
6161 if ($isInstanceOf(l, "Int"))
6262 then {
6363 let m = l
6464 m
6565 }
6666 else 0
6767 }
6868 let s = {
6969 let l = getInteger(this, ("reward_timestamp_" + h))
7070 if ($isInstanceOf(l, "Int"))
7171 then {
7272 let m = l
7373 m
7474 }
7575 else 0
7676 }
7777 let t = {
7878 let l = getInteger(this, ("save_reward_" + h))
7979 if ($isInstanceOf(l, "Int"))
8080 then {
8181 let m = l
8282 m
8383 }
8484 else 0
8585 }
8686 let u = (a.payments[0].amount * 10000)
8787 let v = (k + u)
8888 let w = (q + p)
8989 let x = parseIntValue(j)
9090 let y = (x - s)
9191 let z = if ((q > 0))
9292 then (86400 / (q / 100))
9393 else 0
9494 let A = if ((z > 0))
9595 then ((y * 100000000) / z)
9696 else 0
9797 let B = ((n + A) + t)
9898 let C = if ((q == 0))
9999 then 0
100100 else (t + A)
101- if ((b == "Buy Tokens"))
102- then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
103- else if (if ((b == "Buy NFT"))
104- then ((g / 100000) == p)
105- else false)
106- then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
107- else if (if (if ((b == "Send NFT"))
108- then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
101+ if (true)
102+ then throw(("payAmount: " + toString(g)))
103+ else if ((b == "Buy Tokens"))
104+ then [IntegerEntry(("exan_balance_" + h), v), IntegerEntry(((("buy_tokens_" + h) + "_") + e), u)]
105+ else if (if ((b == "Buy NFT"))
106+ then ((g / 100000) == p)
109107 else false)
110- then (g == 1000000)
111- else false)
112- then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
113- else if (if (if ((b == "Request"))
114- then (A > 0)
108+ then [Issue(((take(c, 6) + "_") + take(e, 9)), "", 1, 0, false), IntegerEntry(i, p), IntegerEntry(("power_" + h), w), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), C)]
109+ else if (if (if ((b == "Send NFT"))
110+ then (h == "3N7Ym1WK3ZaFp7Vfjvz6KFRGF6AxsAXm76W")
115111 else false)
116112 then (g == 1000000)
117113 else false)
118- then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
119- else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
114+ then [ScriptTransfer(Address(fromBase58String(c)), 1, fromBase58String(d))]
115+ else if (if (if ((b == "Request"))
116+ then (A > 0)
117+ else false)
118+ then (g == 1000000)
119+ else false)
120+ then [IntegerEntry(("balance_exan_" + h), B), IntegerEntry(("reward_timestamp_" + h), x), IntegerEntry(("save_reward_" + h), 0)]
121+ else throw("We were unable to fulfill your request! Make sure you have enough balance for the transaction!")
120122 }
121123
122124

github/deemru/w8io/169f3d6 
30.24 ms