tx · 3RDYs5hs1bpaHRARjRLoEUmTkGf4DzdTprMaAANdQF5G

3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv:  -0.01400000 Waves

2021.08.11 21:27 [1654059] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves

{ "type": 13, "id": "3RDYs5hs1bpaHRARjRLoEUmTkGf4DzdTprMaAANdQF5G", "fee": 1400000, "feeAssetId": null, "timestamp": 1628706500149, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "4LySb6C6V88dYnFXhGYmKoSR3wod49FKN5q1Lt2gvjEajwYCkRFxp4hN3cAkzf53DnfEvQ68HVqJSYuhKkNAwSmh" ], "script": "base64:AAIEAAAAAAAAAAwIAhIECgIIARIAEgAAAAABAQAAAA9jaGVja1ZvdGluZ1BhaXIAAAABAAAACEFzc2V0SUQxBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAACEFzc2V0SUQxAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAABE5PTkUAAAADAAAAAWkBAAAABlZvdGluZwAAAAIAAAAIQXNzZXRJRDEAAAAEZGF5cwQAAAAEcG10MQkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAAQAAAAEcG10MgkBAAAABXZhbHVlAAAAAQkAAZEAAAACCAUAAAABaQAAAAhwYXltZW50cwAAAAAAAAAAAQQAAAARbWF4aW11bXZvdGluZ2RheXMAAAAAAAAAAFoEAAAADUJhbGxldEFzc2V0SUQBAAAAIC1vWwG5neVKbxqEaKeT7hMXlhgC7/FEdjB7WHX3k6igBAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dp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vb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5YbfUNQ==", "height": 1654059, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DQcyxi5dKb6DfeQTWuwsmDxuhqMFp5SWyWPJ7y7mgLyY Next: GXe8DY6JiUGwX7tfVrRa2sRDW4yvAtNt7bGeXrXVujqj Diff:
OldNewDifferences
3232 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
3333 else if ((40000000 > g.amount))
3434 then throw((((("You attached only " + toString(fraction(g.amount, 1, 100000000))) + ".") + toString(fraction(g.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only."))
35- else if ((n == false))
35+ else if ((n == true))
3636 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
3737 else if ((h.assetId == j))
3838 then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b) = {
55 let c = getString(this, b)
66 if ($isInstanceOf(c, "String"))
77 then {
88 let d = c
99 d
1010 }
1111 else "NONE"
1212 }
1313
1414
1515 @Callable(e)
1616 func Voting (b,f) = {
1717 let g = value(e.payments[0])
1818 let h = value(e.payments[1])
1919 let i = 90
2020 let j = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
2121 let k = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
2222 let l = a(b)
2323 let m = toBase58String(e.caller.bytes)
2424 let n = !(isDefined(h.assetId))
2525 if ((l != "NONE"))
2626 then throw("This Voting Pair already Exist")
2727 else if ((44 > size(b)))
2828 then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 44 Chars.")
2929 else if ((size(e.payments) != 2))
3030 then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token You want to add to List for Voting.")
3131 else if ((g.assetId != j))
3232 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
3333 else if ((40000000 > g.amount))
3434 then throw((((("You attached only " + toString(fraction(g.amount, 1, 100000000))) + ".") + toString(fraction(g.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only."))
35- else if ((n == false))
35+ else if ((n == true))
3636 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
3737 else if ((h.assetId == j))
3838 then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
3939 else [StringEntry("TRDToUSDN_Swap_Address", m), IntegerEntry("TRDToUSDN_Swap_Height", height)]
4040 }
4141
4242
4343
4444 @Callable(e)
4545 func IssueBallet () = {
4646 let o = value(e.payments[0])
4747 let m = toBase58String(e.caller.bytes)
4848 let j = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
4949 let p = getIntegerValue(this, "BALLET/TN")
5050 let q = fraction(100000, o.amount, p)
5151 let r = getIntegerValue(this, "Total_Issued_Ballet:")
5252 let s = (r + q)
5353 let t = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
5454 let u = (t + o.amount)
5555 let v = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
5656 let w = fraction(100000, u, s)
5757 let x = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
5858 if (isDefined(o.assetId))
5959 then throw("Incorrect asset attached, please attach TN.")
6060 else if ((5000000 > o.amount))
6161 then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
6262 else [IntegerEntry("Total_Issued_Ballet:", s), IntegerEntry("Total_Ballet_Reserve_In_TN:", u), IntegerEntry("Ballet_Backup_Value_In_TN:", w), StringEntry("message", "<h1>Ballet Issued Successfully!</h1><br>"), Reissue(j, q, true), ScriptTransfer(e.caller, ((q * 99) / 100), j), ScriptTransfer(addressFromPublicKey(x), ((q * 1) / 100), j)]
6363 }
6464
6565
6666
6767 @Callable(e)
6868 func Liquidate () = {
6969 let m = toBase58String(e.callerPublicKey)
7070 let o = value(e.payments[0])
7171 let j = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
7272 let r = getIntegerValue(this, "Total_Issued_Ballet:")
7373 let s = (r - o.amount)
7474 let t = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
7575 let v = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
7676 let y = fraction(v, o.amount, 100000)
7777 let u = (t - y)
7878 let w = fraction(100000, u, s)
7979 if ((o.assetId != j))
8080 then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
8181 else if ((100000 > o.amount))
8282 then throw("Attach Amount must be greater than 0.001 Ballet.")
8383 else [Burn(j, o.amount), IntegerEntry("Total_Issued_Ballet:", s), IntegerEntry("Total_Ballet_Reserve_In_TN:", u), IntegerEntry("Ballet_Backup_Value_In_TN:", w), ScriptTransfer(e.caller, y, unit)]
8484 }
8585
8686
8787 @Verifier(z)
8888 func A () = {
8989 let c = z
9090 sigVerify(z.bodyBytes, z.proofs[0], z.senderPublicKey)
9191 }
9292

github/deemru/w8io/026f985 
25.90 ms