tx · 5wCDDatL1czT4qtDXVLkvgWPR8TvETLEMyb9XsacZpDN

3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv:  -0.01400000 Waves

2021.08.21 09:10 [1667716] smart account 3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv > SELF 0.00000000 Waves

{ "type": 13, "id": "5wCDDatL1czT4qtDXVLkvgWPR8TvETLEMyb9XsacZpDN", "fee": 1400000, "feeAssetId": null, "timestamp": 1629526236455, "version": 2, "chainId": 84, "sender": "3Mrnje6z2xa3xuXyU2Lk6ynKy8tsRnnt4Bv", "senderPublicKey": "28sGn7FYnmxceAmnGYiDiKuMK1QyXiqX8zQXfKDnrc8t", "proofs": [ "42tra8wQYSoEmrvMqsCnhZEHspPkk3getR9EEQxLyHMS5Wk6nD5kJtuAqQAujwSMdRhwHmKfVHX61RgPrrqUoqd2" ], "script": "base64:AAIEAAAAAAAAACEIAhIFCgMIAQESABIAEgMKAQgSAwoBCBIDCgEIEgMKAQgAAAAAAAAABwAAAAFpAQAAABVSZWdpc3RlclBhaXJGb3JWb3RpbmcAAAADAAAACEFzc2V0SUQxAAAABGRheXMAAAAMTGlzdGluZ1ByaWNlBAAAAARwbXQxCQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAABAAAAARwbXQyCQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABBAAAAApGZWVBZGRyZXNzAQAAACDjrdey1Io21qI8AxObYBZMNWPHMCK947HpXHsKae68IwQAAAARbWF4aW11bXZvdGluZ2RheXMAAAAAAAAAAFoEAAAADUJhbGxldEFzc2V0SUQBAAAAIC1vWwG5neVKbxqEaKeT7hMXlhgC7/FEdjB7WHX3k6igBAAAAAtVU0RUQXNzZXRJRAEAAAAgX1dpGMgKJ4Em8VuX7cTsTfnCu1nLEhiLhGCgX6b3/PMEAAAACmN1cnJlbnRLZXkJ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ZvdGluZ19QZXJpb2RfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Wb3Rlc19SZXF1aXJlZF8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAAE1ZvdGluZ19MaXN0aW5nX0ZlZV8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAICAAAADlZvdGluZ19TdGF0dXNfBQAAAAxFbnRlckFzc2V0SUQJAARMAAAAAgkBAAAAC0RlbGV0ZUVudHJ5AAAAAQkAASwAAAACAgAAAA9Wb3Rlc19SZWNlaXZlZF8FAAAADEVudGVyQXNzZXRJRAkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABCQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAlQcmljZV9PZl8FAAAADEVudGVyQXNzZXRJRAIAAAABXwkAAlgAAAABBQAAAAtVU0RUQXNzZXRJRAUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5550+2A==", "height": 1667716, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F9xVuUwQ7tPvhsEWyUycPx4AccLDc8GPQqtkzwTxkAq1 Next: 4t2brj6s86DBDehq87atr1ZzhEXYSjXY6LUERVt5vgs4 Diff:
OldNewDifferences
183183 let ae = ab
184184 let af = (aa * u.amount)
185185 let ag = (ab + 6)
186- let ah = pow(10, 0, ag, 0, 0, UP)
187- let ai = fraction(af, 1, ah)
188186 if ((K != G))
189187 then throw("Pair is not available in Whitelisted Asset.")
190188 else if ((N == ac))
193191 then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are Accepted.")
194192 else if ((u.assetId != fromBase58String(G)))
195193 then throw(("Incorrect asset attached, please attach or send " + G))
196- else [IntegerEntry(((("Price_Of_" + G) + "_") + toBase58String(j)), aa), ScriptTransfer(a.caller, ai, base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy')]
194+ else [IntegerEntry(((("Price_Of_" + G) + "_") + toBase58String(j)), aa), ScriptTransfer(a.caller, ag, base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy')]
197195 }
198196
199197
200198
201199 @Callable(a)
202200 func RemovePairEntry (G) = {
203- let aj = getStringValue(this, "Polarity_Admin_Rights")
201+ let ah = getStringValue(this, "Polarity_Admin_Rights")
204202 let j = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
205203 let J = getIntegerValue(this, ("Voting_End_Height_" + G))
206204 let K = getString(this, ("Pair_Under_Voting_" + G))
207205 let N = getStringValue(this, ("Voting_Status_" + G))
208206 let I = "Pass"
209207 let H = toBase58String(a.caller.bytes)
210- let ak = height
208+ let ai = height
211209 let Z = (J - height)
212210 if ((K != G))
213211 then throw("Pair is not available in Voting List.")
214- else if ((aj != H))
215- then throw((("I know You are not An Admin. Only " + aj) + " has rights to remove the pair."))
212+ else if ((ah != H))
213+ then throw((("I know You are not An Admin. Only " + ah) + " has rights to remove the pair."))
216214 else if ((J > height))
217215 then throw((("Voting Already Running. You can remove the pair after " + toString(Z)) + " Blocks"))
218216 else if ((N == I))
221219 }
222220
223221
224-@Verifier(al)
225-func am () = {
226- let P = al
227- sigVerify(al.bodyBytes, al.proofs[0], al.senderPublicKey)
222+@Verifier(aj)
223+func ak () = {
224+ let P = aj
225+ sigVerify(aj.bodyBytes, aj.proofs[0], aj.senderPublicKey)
228226 }
229227
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func RegisterPairForVoting (b,c,d) = {
88 let e = value(a.payments[0])
99 let f = value(a.payments[1])
1010 let g = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
1111 let h = 90
1212 let i = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
1313 let j = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
1414 let k = toBase58String(a.caller.bytes)
1515 let l = !(isDefined(f.assetId))
1616 let m = 1440
1717 let n = (m * c)
1818 let o = (n - 43199)
1919 let p = ((100000 + ((11574 * o) / 10000)) * 100000000)
2020 let q = (height + n)
2121 let r = getString(this, ("Pair_Under_Voting_" + b))
2222 let s = "Fail"
2323 let t = fromBase58String(b)
2424 if ((43 > size(b)))
2525 then throw("Wrong AssetID1 is Entered for Voting. Please Enter a Valid AssetID1. Probably you entered an ASSETID1 less than 43 Chars.")
2626 else if ((29 >= c))
2727 then throw("Enter no. of days in between 30 to 90.")
2828 else if ((c > h))
2929 then throw("You Entered days greater than 90 please Enter no. of days in between 1 to 90.")
3030 else if ((r == b))
3131 then throw("Pair Already Exist in Voting List.")
3232 else if ((size(a.payments) != 2))
3333 then throw("Two attached assets expected as payment. Kindly Attach payment1 = Ballet Token and payment2 = Token you want to add to List for Voting.")
3434 else if ((e.assetId != i))
3535 then throw("Incorrect asset attached for Voting in payment[1], please attach 1000 Ballet Token only.")
3636 else if ((40000000 > e.amount))
3737 then throw((((("You attached only " + toString(fraction(e.amount, 1, 100000000))) + ".") + toString(fraction(e.amount, 1, 10000000))) + " Ballet for Voting in payment[1], please attach 1000 Ballet Token only."))
3838 else if ((f.assetId != t))
3939 then throw("Asset String Attached in ASSETID1 is not matching with Payment2 AssetID.")
4040 else if ((l == true))
4141 then throw("You Attached TN Asset ID for Voting, please attach the Token You want to list in payment[2].")
4242 else if ((f.assetId == i))
4343 then throw("You Attached Ballet asset for Voting in both payments, please attach the Token You want to list in payment[2].")
4444 else [StringEntry(("Pair_Under_Voting_" + b), b), StringEntry(("Voting_Status_" + b), s), IntegerEntry(("Voting_Start_Height_" + b), height), IntegerEntry(("Voting_End_Height_" + b), q), IntegerEntry(("Voting_Period_" + b), n), IntegerEntry(("Voting_Listing_Fee_" + b), e.amount), IntegerEntry(("Votes_Required_" + b), p), IntegerEntry(("Votes_Received_" + b), 0), IntegerEntry(((("Price_Of_" + b) + "_") + toBase58String(j)), d), ScriptTransfer(addressFromPublicKey(g), e.amount, i)]
4545 }
4646
4747
4848
4949 @Callable(a)
5050 func IssueBallet () = {
5151 let u = value(a.payments[0])
5252 let k = toBase58String(a.caller.bytes)
5353 let i = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
5454 let v = getIntegerValue(this, "BALLET/TN")
5555 let w = fraction(100000, u.amount, v)
5656 let x = getIntegerValue(this, "Total_Issued_Ballet:")
5757 let y = (x + w)
5858 let z = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
5959 let A = (z + u.amount)
6060 let B = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
6161 let C = fraction(100000, A, y)
6262 let g = base58'GKmJ6BchUgQfwKp4mp5eX8Y9xLioYRm6e1gDfFgdAcCr'
6363 let D = 1
6464 let E = (100 - D)
6565 if (isDefined(u.assetId))
6666 then throw("Incorrect asset attached, please attach TN.")
6767 else if ((5000000 > u.amount))
6868 then throw("Please Attach minimum 0.05 TN To Issue Ballet Asset.")
6969 else [IntegerEntry("Total_Issued_Ballet:", y), IntegerEntry("Total_Ballet_Reserve_In_TN:", A), IntegerEntry("Ballet_Backup_Value_In_TN:", C), StringEntry("message", "<h1>Ballet Issued Successfully!</h1><br>"), Reissue(i, w, true), ScriptTransfer(a.caller, ((w * E) / 100), i), ScriptTransfer(addressFromPublicKey(g), ((w * D) / 100), i)]
7070 }
7171
7272
7373
7474 @Callable(a)
7575 func Liquidate () = {
7676 let k = toBase58String(a.callerPublicKey)
7777 let u = value(a.payments[0])
7878 let i = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
7979 let x = getIntegerValue(this, "Total_Issued_Ballet:")
8080 let y = (x - u.amount)
8181 let z = getIntegerValue(this, "Total_Ballet_Reserve_In_TN:")
8282 let B = getIntegerValue(this, "Ballet_Backup_Value_In_TN:")
8383 let F = fraction(B, u.amount, 100000)
8484 let A = (z - F)
8585 let C = fraction(100000, A, y)
8686 if ((u.assetId != i))
8787 then throw("Kindly Deposit Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
8888 else if ((100000 > u.amount))
8989 then throw("Attach Amount must be greater than 0.001 Ballet.")
9090 else [Burn(i, u.amount), IntegerEntry("Total_Issued_Ballet:", y), IntegerEntry("Total_Ballet_Reserve_In_TN:", A), IntegerEntry("Ballet_Backup_Value_In_TN:", C), StringEntry("message", "<h1>Ballet Liquidated Successfully!</h1><br>"), ScriptTransfer(a.caller, F, unit)]
9191 }
9292
9393
9494
9595 @Callable(a)
9696 func DoVoting (G) = {
9797 let u = if ((size(a.payments) == 1))
9898 then a.payments[0]
9999 else throw("Ballet Token is required as Attached payment")
100100 let H = toBase58String(a.caller.bytes)
101101 let i = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
102102 let I = "Pass"
103103 let J = getIntegerValue(this, ("Voting_End_Height_" + G))
104104 let K = getString(this, ("Pair_Under_Voting_" + G))
105105 let L = getIntegerValue(this, ("Votes_Required_" + G))
106106 let M = getIntegerValue(this, ("Votes_Received_" + G))
107107 let N = getStringValue(this, ("Voting_Status_" + G))
108108 let O = {
109109 let P = getInteger(this, ("Votes_Received_" + G))
110110 if ($isInstanceOf(P, "Int"))
111111 then {
112112 let Q = P
113113 Q
114114 }
115115 else 0
116116 }
117117 let R = (O + u.amount)
118118 let S = {
119119 let P = getInteger(this, ((("Votes_Received_" + H) + "_") + G))
120120 if ($isInstanceOf(P, "Int"))
121121 then {
122122 let T = P
123123 T
124124 }
125125 else 0
126126 }
127127 let U = (S + u.amount)
128128 let V = (M >= L)
129129 let W = valueOrErrorMessage(assetInfo(fromBase58String(G)), (("Asset " + G) + " doesn't exist"))
130130 let X = W.decimals
131131 if ((K != G))
132132 then throw("Pair is not available in Voting List.")
133133 else if ((height > J))
134134 then throw((("Voting timeline for " + G) + " is expired."))
135135 else if ((u.assetId != i))
136136 then throw("Kindly Attach Only 44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y (Ballet).")
137137 else if ((N == I))
138138 then throw((("Voting for " + G) + " pair is completed and it’s available in whitelist."))
139139 else if (V)
140140 then [StringEntry(("Voting_Status_" + G), I), IntegerEntry(("Decimals_of_" + G), X)]
141141 else [IntegerEntry(("Votes_Received_" + G), R), IntegerEntry(((("Votes_Received_" + H) + "_") + G), U)]
142142 }
143143
144144
145145
146146 @Callable(a)
147147 func WithdrawVotedTokens (G) = {
148148 let u = a.payments[0]
149149 let H = toBase58String(a.caller.bytes)
150150 let i = base58'44Mq8KqUhM94t93MiBq3S22iiuGczMxpKmse5dBy2w5y'
151151 let J = getIntegerValue(this, ("Voting_End_Height_" + G))
152152 let K = getString(this, ("Pair_Under_Voting_" + G))
153153 let Y = getIntegerValue(this, ((("Votes_Received_" + H) + "_") + G))
154154 let Z = (J - height)
155155 if ((K != G))
156156 then throw("Pair is not available in Voting List.")
157157 else if ((J > height))
158158 then throw((("Voting Already Running. You can withdraw your Ballet Token only after the expire of " + toString(Z)) + " Blocks"))
159159 else if ((0 >= Y))
160160 then throw("You don't have any dues of ballet balance in this Voting Pair.")
161161 else if (isDefined(u.assetId))
162162 then throw("Don't attach any asset. If you still want to support we accept only TN as payment.")
163163 else if ((u.amount != 10000000))
164164 then throw("Please attach 0.1 TN as a fee to release your token.")
165165 else [IntegerEntry(((("Votes_Received_" + H) + "_") + G), 0), ScriptTransfer(a.caller, Y, i)]
166166 }
167167
168168
169169
170170 @Callable(a)
171171 func SwapPairEntry (G) = {
172172 let H = toBase58String(a.caller.bytes)
173173 let u = if ((size(a.payments) == 1))
174174 then a.payments[0]
175175 else throw("Swap Token is required as Attached payment.")
176176 let j = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
177177 let K = getString(this, ("Pair_Under_Voting_" + G))
178178 let N = getStringValue(this, ("Voting_Status_" + G))
179179 let aa = getIntegerValue(this, ((("Price_Of_" + G) + "_") + toBase58String(j)))
180180 let ab = getIntegerValue(this, ("Decimals_of_" + G))
181181 let ac = "Fail"
182182 let ad = 1
183183 let ae = ab
184184 let af = (aa * u.amount)
185185 let ag = (ab + 6)
186- let ah = pow(10, 0, ag, 0, 0, UP)
187- let ai = fraction(af, 1, ah)
188186 if ((K != G))
189187 then throw("Pair is not available in Whitelisted Asset.")
190188 else if ((N == ac))
191189 then throw((G + " is not A Whitelisted Token Yet."))
192190 else if ((u.assetId == j))
193191 then throw("You can't Attach USDT as an Attached Payment. Only Whitelisted Tokens are Accepted.")
194192 else if ((u.assetId != fromBase58String(G)))
195193 then throw(("Incorrect asset attached, please attach or send " + G))
196- else [IntegerEntry(((("Price_Of_" + G) + "_") + toBase58String(j)), aa), ScriptTransfer(a.caller, ai, base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy')]
194+ else [IntegerEntry(((("Price_Of_" + G) + "_") + toBase58String(j)), aa), ScriptTransfer(a.caller, ag, base58'4noTADz7TX4HmjkCMpJAzkfuR6BKxDsSCzp3XJNZAcgy')]
197195 }
198196
199197
200198
201199 @Callable(a)
202200 func RemovePairEntry (G) = {
203- let aj = getStringValue(this, "Polarity_Admin_Rights")
201+ let ah = getStringValue(this, "Polarity_Admin_Rights")
204202 let j = base58'7RB3BWayeCVPq3kkpkeJZAFv2DYCB5gEwnutEpRofaw4'
205203 let J = getIntegerValue(this, ("Voting_End_Height_" + G))
206204 let K = getString(this, ("Pair_Under_Voting_" + G))
207205 let N = getStringValue(this, ("Voting_Status_" + G))
208206 let I = "Pass"
209207 let H = toBase58String(a.caller.bytes)
210- let ak = height
208+ let ai = height
211209 let Z = (J - height)
212210 if ((K != G))
213211 then throw("Pair is not available in Voting List.")
214- else if ((aj != H))
215- then throw((("I know You are not An Admin. Only " + aj) + " has rights to remove the pair."))
212+ else if ((ah != H))
213+ then throw((("I know You are not An Admin. Only " + ah) + " has rights to remove the pair."))
216214 else if ((J > height))
217215 then throw((("Voting Already Running. You can remove the pair after " + toString(Z)) + " Blocks"))
218216 else if ((N == I))
219217 then throw((G + " is now Whitelisted. So you can't remove it."))
220218 else [DeleteEntry(("Pair_Under_Voting_" + G)), DeleteEntry(("Voting_Start_Height_" + G)), DeleteEntry(("Voting_End_Height_" + G)), DeleteEntry(("Voting_Period_" + G)), DeleteEntry(("Votes_Required_" + G)), DeleteEntry(("Voting_Listing_Fee_" + G)), DeleteEntry(("Voting_Status_" + G)), DeleteEntry(("Votes_Received_" + G)), DeleteEntry(((("Price_Of_" + G) + "_") + toBase58String(j)))]
221219 }
222220
223221
224-@Verifier(al)
225-func am () = {
226- let P = al
227- sigVerify(al.bodyBytes, al.proofs[0], al.senderPublicKey)
222+@Verifier(aj)
223+func ak () = {
224+ let P = aj
225+ sigVerify(aj.bodyBytes, aj.proofs[0], aj.senderPublicKey)
228226 }
229227

github/deemru/w8io/169f3d6 
50.66 ms