tx · 29zsCWRgRdbFsiGkan944vy1JHEz2bp89zXwiGYG4k5G

3NB9QGKiAF3B8wiJZbRd2PfWJAX3rasvCAX:  -0.00700000 Waves

2022.07.16 22:17 [2142714] smart account 3NB9QGKiAF3B8wiJZbRd2PfWJAX3rasvCAX > SELF 0.00000000 Waves

{ "type": 13, "id": "29zsCWRgRdbFsiGkan944vy1JHEz2bp89zXwiGYG4k5G", "fee": 700000, "feeAssetId": null, "timestamp": 1657999040167, "version": 2, "chainId": 84, "sender": "3NB9QGKiAF3B8wiJZbRd2PfWJAX3rasvCAX", "senderPublicKey": "25HKr2HEfEF45LGmh3fFPR4WDxgLz6p97kmgYdD4nGtX", "proofs": [ "WsMhbfec5T8yKtD1aitdDXVLnNGRDbxB1vzPXUQJiSXMU9KCtYPoVpooggg9NF8CwK1Qz8q44kiCxRtUoWJEbEM" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAALAAAAAAtiYXNlQXNzZXRJZAkAAlkAAAABAgAAACxINVVVdVBKN1dCWHpqZzZaMWFoQlV4ajdWV29WRkZmRzNCTXp5QUFuUld0NgAAAAAKbWluVG9IYXRjaAAAAAAAAA9CQAAAAAAJbWluVG9CdXJuAAAAAAAAAABkAAAAAA5wb3dlckFzc2V0TmFtZQIAAAAFQm9tYmEAAAAAC2Rlc2NyaXB0aW9uAgAAAAxCbGFtYmEgVG9rZW4AAAAABmtQb3dlcgIAAAAMcG93ZXJBc3NldElkAAAAAAhiYXNlRGVjaQAAAAAAAA9CQAAAAAAFcmF0aW8AAAAAAAAAAGQBAAAACWdldEFtb3VudAAAAAEAAAAIYW1vdW50SW4JAABrAAAAAwUAAAAIYW1vdW50SW4FAAAABXJhdGlvBQAAAAhiYXNlRGVjaQEAAAAMZ2V0T3V0QW1vdW50AAAAAQAAAAhhbW91bnRJbgkAAGgAAAACCQAAaQAAAAIJAABrAAAAAwUAAAAIYW1vdW50SW4AAAAAAAAAAFAAAAAAAAAAAGQFAAAABXJhdGlvBQAAAA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0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmNa9iA", "height": 2142714, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3EDYFQ5Vaem2Fh6DcwcybfMjKtX9vT2ULTSwkfRgfGi7 Next: 5NtNUCbK3A5P3HF6PdotyQJm6a3cHT6x1fBLCaMDZivs Diff:
OldNewDifferences
3636
3737 @Callable(o)
3838 func hatchDucks () = if ((o.payments[0].assetId != a))
39- then throw("Only Bull EGG accepted!")
39+ then throw("Only BUGGS accepted!")
4040 else if ((b > o.payments[0].amount))
41- then throw("Min amount to invest is 100 Bull EGG")
41+ then throw("Min amount to invest is 100 BUGGS")
4242 else if ((l() == "Start"))
4343 then {
4444 let p = Issue(d, e, i(o.payments[0].amount), 0, true)
45-[p, StringEntry(f, toBase58String(calculateAssetId(p)))]
45+[p, StringEntry(f, toBase58String(calculateAssetId(p))), ScriptTransfer(o.caller, i(o.payments[0].amount), calculateAssetId(p))]
4646 }
4747 else {
4848 let q = fromBase58String(l())
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = fromBase58String("H5UUuPJ7WBXzjg6Z1ahBUxj7VWoVFFfG3BMzyAAnRWt6")
55
66 let b = 1000000
77
88 let c = 100
99
1010 let d = "Bomba"
1111
1212 let e = "Blamba Token"
1313
1414 let f = "powerAssetId"
1515
1616 let g = 1000000
1717
1818 let h = 100
1919
2020 func i (j) = fraction(j, h, g)
2121
2222
2323 func k (j) = ((fraction(j, 80, 100) / h) * g)
2424
2525
2626 func l () = {
2727 let m = getString(f)
2828 if ($isInstanceOf(m, "String"))
2929 then {
3030 let n = m
3131 n
3232 }
3333 else "Start"
3434 }
3535
3636
3737 @Callable(o)
3838 func hatchDucks () = if ((o.payments[0].assetId != a))
39- then throw("Only Bull EGG accepted!")
39+ then throw("Only BUGGS accepted!")
4040 else if ((b > o.payments[0].amount))
41- then throw("Min amount to invest is 100 Bull EGG")
41+ then throw("Min amount to invest is 100 BUGGS")
4242 else if ((l() == "Start"))
4343 then {
4444 let p = Issue(d, e, i(o.payments[0].amount), 0, true)
45-[p, StringEntry(f, toBase58String(calculateAssetId(p)))]
45+[p, StringEntry(f, toBase58String(calculateAssetId(p))), ScriptTransfer(o.caller, i(o.payments[0].amount), calculateAssetId(p))]
4646 }
4747 else {
4848 let q = fromBase58String(l())
4949 [Reissue(q, i(o.payments[0].amount), true), ScriptTransfer(o.caller, i(o.payments[0].amount), q)]
5050 }
5151
5252
5353
5454 @Callable(o)
5555 func burnDucks () = {
5656 let q = fromBase58String(l())
5757 if ((o.payments[0].assetId != q))
5858 then throw("Only Bomba accepted!")
5959 else if ((c > o.payments[0].amount))
6060 then throw("Min amount to burn is 100 Bomba")
6161 else [Burn(q, o.payments[0].amount), ScriptTransfer(o.caller, k(o.payments[0].amount), a)]
6262 }
6363
6464
6565 @Verifier(r)
6666 func s () = sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey)
6767

github/deemru/w8io/169f3d6 
47.15 ms