tx · HoxXNsq3ocoXKToVaq3SXRzpwq4JuNXHuegDQbAct35u

3MxSZ4FPq75Q3cQcf9VJkKFDJkeFpm5Ynm3:  -0.00700000 Waves

2022.07.10 10:12 [2133308] smart account 3MxSZ4FPq75Q3cQcf9VJkKFDJkeFpm5Ynm3 > SELF 0.00000000 Waves

{ "type": 13, "id": "HoxXNsq3ocoXKToVaq3SXRzpwq4JuNXHuegDQbAct35u", "fee": 700000, "feeAssetId": null, "timestamp": 1657437173573, "version": 2, "chainId": 84, "sender": "3MxSZ4FPq75Q3cQcf9VJkKFDJkeFpm5Ynm3", "senderPublicKey": "AdPVtTCVPZCuVF944iD1f5LJ9e4pjzpQ2rrxGEWt7Rbx", "proofs": [ "52iANA2UnshKJWhMYHnUaALzYfB4a5XHSoGFq3bqkpCgQJysBUaPZPSq2hkzyVskQjFfgYGR9xrzpPgSBT4SLoEr" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEBAAAACAAAAAAKZWdnQXNzZXRJZAEAAAAgF/4YCdBeNnPXi9mYwFve9iIGEZ5QZQVegfUQpkcQUdwAAAAAEGNvbGxlY3RvckFkZHJlc3MBAAAAGgFUAqwIk+AYdvRW0p5bt95mLATeRN8JIV7TAAAAAAVkZWxheQAAAAAAAAAAAgAAAAALbWF4RXhjaGFuZ2UAAAAAAAAAAAEAAAAADGV4Y2hhbmdlUmF0ZQAAAAAAAAAAAQEAAAANdHJ5R2V0SW50ZWdlcgAAAAEAAAADa2V5BAAAAAN2YWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWIFAAAAByRtYXRjaDAFAAAAAWIAAAAAAAAAAAAFAAAAA3ZhbAEAAAAMdHJ5R2V0U3RyaW5nAAAAAQAAAANrZXkEAAAAA3ZhbAQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtY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AggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleczgw20=", "height": 2133308, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C9ECzazDm8sdpiWHgdY5KiWz71Y2yQukjzhosyz2Gew1 Next: 2NFL6K3EzxQ4BrQwCbhJEJj3hfj53GWMgLkcdpAqZ8Ef Diff:
OldNewDifferences
5757 let q = f((("receiver_" + toString(m.originCaller)) + "_lastDay"))
5858 let r = f((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"))
5959 if ((height > (q + c)))
60- then if ((d > r))
60+ then if ((r > d))
6161 then throw("Max exchange limit reached. Please try after 24 hours.")
62- else if ((d > (r + n)))
62+ else if (((r + n) > d))
6363 then throw("Max exchange crossed. Please try with lower value.")
6464 else [IntegerEntry((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"), (r + n)), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_waveAmount"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_tokenAmount"), p), ScriptTransfer(Address(b), n, unit), ScriptTransfer(m.originCaller, p, a)]
6565 else [IntegerEntry((("receiver_" + toString(m.originCaller)) + "_lastDay"), height), IntegerEntry((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_waveAmount"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_tokenAmount"), p), ScriptTransfer(Address(b), n, unit), ScriptTransfer(m.originCaller, p, a)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'2cf6jyVG19oHU79R8iHfqFEesjstr3e7nSYEUhb2WagB'
55
66 let b = base58'3MpADDQFqadaCADNH9JDMQAGw9WEaMcymVU'
77
88 let c = 2
99
1010 let d = 1
1111
1212 let e = 1
1313
1414 func f (g) = {
1515 let h = {
1616 let i = getInteger(this, g)
1717 if ($isInstanceOf(i, "Int"))
1818 then {
1919 let j = i
2020 j
2121 }
2222 else 0
2323 }
2424 h
2525 }
2626
2727
2828 func k (g) = {
2929 let h = {
3030 let i = getString(this, g)
3131 if ($isInstanceOf(i, "String"))
3232 then {
3333 let j = i
3434 j
3535 }
3636 else ""
3737 }
3838 h
3939 }
4040
4141
4242 func l (g) = {
4343 let i = getBoolean(this, g)
4444 if ($isInstanceOf(i, "Boolean"))
4545 then {
4646 let j = i
4747 j
4848 }
4949 else false
5050 }
5151
5252
5353 @Callable(m)
5454 func exchangeToken (n) = {
5555 let o = toBase58String(m.transactionId)
5656 let p = (e * n)
5757 let q = f((("receiver_" + toString(m.originCaller)) + "_lastDay"))
5858 let r = f((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"))
5959 if ((height > (q + c)))
60- then if ((d > r))
60+ then if ((r > d))
6161 then throw("Max exchange limit reached. Please try after 24 hours.")
62- else if ((d > (r + n)))
62+ else if (((r + n) > d))
6363 then throw("Max exchange crossed. Please try with lower value.")
6464 else [IntegerEntry((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"), (r + n)), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_waveAmount"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_tokenAmount"), p), ScriptTransfer(Address(b), n, unit), ScriptTransfer(m.originCaller, p, a)]
6565 else [IntegerEntry((("receiver_" + toString(m.originCaller)) + "_lastDay"), height), IntegerEntry((("receiver_" + toString(m.originCaller)) + "_totalAmountInDay"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_waveAmount"), n), IntegerEntry((((("receiver_" + toString(m.originCaller)) + "_transactionId_") + o) + "_tokenAmount"), p), ScriptTransfer(Address(b), n, unit), ScriptTransfer(m.originCaller, p, a)]
6666 }
6767
6868
6969 @Verifier(s)
7070 func t () = sigVerify(s.bodyBytes, s.proofs[0], s.senderPublicKey)
7171

github/deemru/w8io/026f985 
45.68 ms