tx · 8tD4CebUWBfq9nu7ZBAQykAdwzq6XbvEGSdNukkYh7ku

3Mpv5ddvvBDKQN6pHsHZ6Jy74wb3J1vmHrw:  -0.02000000 Waves

2023.08.20 08:43 [2718537] smart account 3Mpv5ddvvBDKQN6pHsHZ6Jy74wb3J1vmHrw > SELF 0.00000000 Waves

{ "type": 13, "id": "8tD4CebUWBfq9nu7ZBAQykAdwzq6XbvEGSdNukkYh7ku", "fee": 2000000, "feeAssetId": null, "timestamp": 1692510236151, "version": 2, "chainId": 84, "sender": "3Mpv5ddvvBDKQN6pHsHZ6Jy74wb3J1vmHrw", "senderPublicKey": "Apv79thF7LfxCEFRESoEAeqHQnhmt45geC8enb3ukDX", "proofs": [ "39t2gRDXvGfojDj2fL7qV4uYWYyr3Lnb2sizCkSun5B1kYxDLk9utGKLzApEZRbk7wR248PPseLo6oDkLjNyVogw" ], "script": "base64:AAIFAAAAAAAAABkIAhIDCgEBEgASBAoCAQESAwoBARIDCgEIAAAAEgAAAAAHVmVyc2lvbgIAAAAFMy4wLjAAAAAAEWNvbnZlcnRlcl9hZGRyZXNzAgAAACMzSnR1VXd0UWpFWFNqRVJlclZoeDdabWZYUFBLTG5TRDMzMgAAAAAdYXV0b2J1eWJhY2tfY29udHJvbGxlcl9wdWJrZXkBAAAAIKci+crygPDqWB1X5E7UFHDUqRWyrJ6pW+xO+6Xy89s+AAAAABJjb250cm9sbGVyX2FkZHJlc3MJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEFAAAAHWF1dG9idXliYWNrX2NvbnRyb2xsZXJfcHVia2V5AAAAAAtDT0RFQXNzZXRJRAEAAAAgw7tamQ+/dXoyJwRZ/Fb5N4jdONzqCnQ4LyXft9O80qAAAAAAEkNPREVMSUNFTlNFQXNzZXRJRAEAAAAg7lVnAjcLvxekcB3/CobKfYc33HvjWL4A3RwDawGZ3Q4AAAAAC1N0YWtpbmdEYXBwAQAAACD9QZsEseGyMUVvRvdhafix40e0RpieAhyxxGPea9b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AAABJUcmlnZ2VyRm9yQXV0b1N3YXAAAAABAAAAB0Fzc2V0SUQDCQAAZgAAAAIAAAAAAAAAAAEJAAPwAAAAAgUAAAAEdGhpcwkAAlkAAAABBQAAAAdBc3NldElECQAAAgAAAAEJAAEsAAAAAgUAAAAHQXNzZXRJRAIAAAAkIGhhcyBub3QgRW5vdWdoIEJhbGFuY2UgVG8gVHJhbnNmZXIuAwkAAGYAAAACAAAAAAAAAAABCQABMQAAAAEFAAAAB0Fzc2V0SUQJAAACAAAAAQIAAAAXQXNzZXRJRCBDYW4ndCBiZSBCbGFuay4JAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAARY29udmVydGVyX2FkZHJlc3MJAAPwAAAAAgUAAAAEdGhpcwkAAlkAAAABBQAAAAdBc3NldElECQACWQAAAAEFAAAAB0Fzc2V0SUQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5UcbH9g==", "height": 2718537, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5zVvbGCqhcC4kLLUx5QFdbKCgGZ6hBzFqunE73LjsF6o Next: 8hkaJXqW4HiXiy7sZPT9pwHyASgLN68F8ZKMGQfvMPCU Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3.0.0"
55
6-let b = base58'CFS24Rd5VmayXgJRCaGq1CfrQY9aRNbQEMFcM8r6vsUZ'
6+let b = "3JtuUwtQjEXSjERerVhx7ZmfXPPKLnSD332"
77
8-let c = addressFromPublicKey(b)
8+let c = base58'CFS24Rd5VmayXgJRCaGq1CfrQY9aRNbQEMFcM8r6vsUZ'
99
10-let d = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
10+let d = addressFromPublicKey(c)
1111
12-let e = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
12+let e = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
1313
14-let f = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
14+let f = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
1515
16-let g = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
16+let g = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
1717
18-let h = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
18+let h = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1919
20-let i = 20
20+let i = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
2121
22-let j = 1850000
22+let j = 20
2323
24-let k = getIntegerValue(this, "Minimum_Days_Range")
24+let k = 1850000
2525
26-let l = getIntegerValue(this, "Maximum_Days_Range")
26+let l = getIntegerValue(this, "Minimum_Days_Range")
2727
28-let m = 100000
28+let m = getIntegerValue(this, "Maximum_Days_Range")
2929
30-let n = 1000000
30+let n = 100000
3131
32-let o = 1440
32+let o = 1000000
3333
34-let p = (height - j)
34+let p = 1440
3535
36-let q = (fraction(10000000000, 1, p) + 6000)
36+let q = (height - k)
3737
38-@Callable(r)
39-func Deposit (s) = {
40- let t = if ((size(r.payments) == 1))
41- then r.payments[0]
42- else throw((("No Payments Attached Please Attach " + toBase58String(d)) + " Asset Only."))
43- let u = toBase58String(r.caller.bytes)
44- let v = ((((q * t.amount) * s) / 365) / 1000)
45- let w = (p * 100000)
46- let x = (o * s)
47- let y = (height + x)
48- let z = fraction(l, (w * q), (365 * 1000))
49- let A = fraction(z, 1000000, w)
50- let B = {
51- let C = getIntegerValue(this, "Total_Txns:")
52- if ($isInstanceOf(C, "Int"))
38+let r = (fraction(10000000000, 1, q) + 6000)
39+
40+@Callable(s)
41+func Deposit (t) = {
42+ let u = if ((size(s.payments) == 1))
43+ then s.payments[0]
44+ else throw((("No Payments Attached Please Attach " + toBase58String(e)) + " Asset Only."))
45+ let v = toBase58String(s.caller.bytes)
46+ let w = ((((r * u.amount) * t) / 365) / 1000)
47+ let x = (q * 100000)
48+ let y = (p * t)
49+ let z = (height + y)
50+ let A = fraction(m, (x * r), (365 * 1000))
51+ let B = fraction(A, 1000000, x)
52+ let C = {
53+ let D = getIntegerValue(this, "Total_Txns:")
54+ if ($isInstanceOf(D, "Int"))
5355 then {
54- let D = C
55- D
56+ let E = D
57+ E
5658 }
5759 else 0
5860 }
59- let E = (B + 1)
60- let F = {
61- let C = getInteger(this, "Total_Burned_CODE:")
62- if ($isInstanceOf(C, "Int"))
61+ let F = (C + 1)
62+ let G = {
63+ let D = getInteger(this, "Total_Burned_CODE:")
64+ if ($isInstanceOf(D, "Int"))
6365 then {
64- let D = C
65- D
66+ let E = D
67+ E
6668 }
6769 else 0
6870 }
69- let G = (F + t.amount)
70- let H = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_height_Of_" + u)), "Your Address not Found on Staking DApp")
71- let I = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Total_Lock_Blocks_Of_" + u)), "Your Address not Found on Staking DApp")
72- let J = (I - H)
73- let K = assetBalance(Address(r.caller.bytes), e)
74- let L = {
75- let C = getInteger(this, ("Deposit_Amount_Of_" + u))
76- if ($isInstanceOf(C, "Int"))
71+ let H = (G + u.amount)
72+ let I = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_height_Of_" + v)), "Your Address not Found on Staking DApp")
73+ let J = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Total_Lock_Blocks_Of_" + v)), "Your Address not Found on Staking DApp")
74+ let K = (J - I)
75+ let L = assetBalance(Address(s.caller.bytes), f)
76+ let M = {
77+ let D = getInteger(this, ("Deposit_Amount_Of_" + v))
78+ if ($isInstanceOf(D, "Int"))
7779 then {
78- let D = C
79- D
80+ let E = D
81+ E
8082 }
8183 else 0
8284 }
83- let M = (L + t.amount)
84- let N = {
85- let C = getInteger(this, ("No_Of_Deposits_" + u))
86- if ($isInstanceOf(C, "Int"))
85+ let N = (M + u.amount)
86+ let O = {
87+ let D = getInteger(this, ("No_Of_Deposits_" + v))
88+ if ($isInstanceOf(D, "Int"))
8789 then {
88- let D = C
89- D
90+ let E = D
91+ E
9092 }
9193 else 0
9294 }
93- let O = (N + 1)
94- let P = {
95- let C = getInteger(this, "Expansion_Counter")
96- if ($isInstanceOf(C, "Int"))
95+ let P = (O + 1)
96+ let Q = {
97+ let D = getInteger(this, "Expansion_Counter")
98+ if ($isInstanceOf(D, "Int"))
9799 then {
98- let D = C
99- D
100+ let E = D
101+ E
100102 }
101103 else 0
102104 }
103- let Q = (P + 1)
104- if ((K != 1))
105+ let R = (Q + 1)
106+ if ((L != 1))
105107 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
106- else if ((K > 1))
108+ else if ((L > 1))
107109 then throw("You Own Multiple CODE License on Same Address.")
108- else if ((j > height))
109- then throw((("DApp is Not Started Yet please Wait until " + toString((j - height))) + " blocks"))
110- else if ((t.assetId != d))
111- then throw((("Incorrect asset attached, please attach " + toBase58String(d)) + " asset only"))
112- else if ((k >= s))
113- then throw(((("Choose Locking days in between " + toString((k + 1))) + " to ") + toString(l)))
114- else if ((s > l))
115- then throw(((((("You Entered days to " + toString(s)) + ", Please Enter no. of days in between ") + toString((k + 1))) + " to ") + toString(l)))
116- else if ((m > t.amount))
110+ else if ((k > height))
111+ then throw((("DApp is Not Started Yet please Wait until " + toString((k - height))) + " blocks"))
112+ else if ((u.assetId != e))
113+ then throw((("Incorrect asset attached, please attach " + toBase58String(e)) + " asset only"))
114+ else if ((l >= t))
115+ then throw(((("Choose Locking days in between " + toString((l + 1))) + " to ") + toString(m)))
116+ else if ((t > m))
117+ then throw(((((("You Entered days to " + toString(t)) + ", Please Enter no. of days in between ") + toString((l + 1))) + " to ") + toString(m)))
118+ else if ((n > u.amount))
117119 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
118- else if ((t.amount > w))
119- then throw((("You can attach maximum " + toString(w)) + "/10^8 CODE."))
120- else if ((J != 129600))
120+ else if ((u.amount > x))
121+ then throw((("You can attach maximum " + toString(x)) + "/10^8 CODE."))
122+ else if ((K != 129600))
121123 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
122- else if ((N == 1))
124+ else if ((O == 1))
123125 then throw("You Already Have an Active Staking, Please Wait until Mature.")
124- else if ((n > A))
125- then [StringEntry("Version", a), IntegerEntry("Expansion_Counter", Q), StringEntry(((toString(Q) + "_Expansion_Updator_") + toString(height)), u), StringEntry("message", (((("New Days Range Expended from " + toString(l)) + " To ") + toString((l + 1))) + " Days. Please Restake CODE.")), IntegerEntry("Maximum_Days_Range", (l + 1)), IntegerEntry("Minimum_Days_Range", (k + 1)), ScriptTransfer(r.caller, t.amount, d)]
126- else [Burn(d, t.amount), IntegerEntry("Total_Burned_CODE:", G), IntegerEntry("Total_Txns:", E), IntegerEntry("Inflation", q), IntegerEntry("Block_Passed", p), IntegerEntry("Burn_Factor", A), IntegerEntry(("No_Of_Deposits_" + u), O), IntegerEntry(("Deposit_height_Of_" + u), height), IntegerEntry(("Total_Lock_Blocks_Of_" + u), y), IntegerEntry(("Deposit_Amount_Of_" + u), M), IntegerEntry(("Rewards_Of_" + u), v), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")]
126+ else if ((o > B))
127+ then [StringEntry("Version", a), IntegerEntry("Expansion_Counter", R), StringEntry(((toString(R) + "_Expansion_Updator_") + toString(height)), v), StringEntry("message", (((("New Days Range Expended from " + toString(m)) + " To ") + toString((m + 1))) + " Days. Please Restake CODE.")), IntegerEntry("Maximum_Days_Range", (m + 1)), IntegerEntry("Minimum_Days_Range", (l + 1)), ScriptTransfer(s.caller, u.amount, e)]
128+ else [Burn(e, u.amount), IntegerEntry("Total_Burned_CODE:", H), IntegerEntry("Total_Txns:", F), IntegerEntry("Inflation", r), IntegerEntry("Block_Passed", q), IntegerEntry("Burn_Factor", B), IntegerEntry(("No_Of_Deposits_" + v), P), IntegerEntry(("Deposit_height_Of_" + v), height), IntegerEntry(("Total_Lock_Blocks_Of_" + v), z), IntegerEntry(("Deposit_Amount_Of_" + v), N), IntegerEntry(("Rewards_Of_" + v), w), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")]
127129 }
128130
129131
130132
131-@Callable(r)
133+@Callable(s)
132134 func Withdraw () = {
133- let u = toBase58String(r.caller.bytes)
134- let R = 1200000000000
135- let S = 24000000
136- let T = 19
137- let U = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_Amount_Of_" + u)), "Your Address not Found on Staking DApp")
138- let V = 500
139- let W = ((S - (fraction(U, 1000000, R) * 19)) / 10000)
140- let X = getIntegerValue(this, "Claim_Fee")
141- let t = value(r.payments[0])
142- let Y = getIntegerValue(this, ("Deposit_Amount_Of_" + u))
143- let Z = (((getIntegerValue(this, ("Rewards_Of_" + u)) - Y) * W) / 10000)
144- let aa = (((getIntegerValue(this, ("Rewards_Of_" + u)) - Y) * V) / 10000)
145- let B = {
146- let C = getIntegerValue(this, "Total_Txns:")
147- if ($isInstanceOf(C, "Int"))
135+ let v = toBase58String(s.caller.bytes)
136+ let S = 1200000000000
137+ let T = 24000000
138+ let U = 19
139+ let V = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_Amount_Of_" + v)), "Your Address not Found on Staking DApp")
140+ let W = 500
141+ let X = ((T - (fraction(V, 1000000, S) * 19)) / 10000)
142+ let Y = getIntegerValue(this, "Claim_Fee")
143+ let u = value(s.payments[0])
144+ let Z = getIntegerValue(this, ("Deposit_Amount_Of_" + v))
145+ let aa = (((getIntegerValue(this, ("Rewards_Of_" + v)) - Z) * X) / 10000)
146+ let ab = (((getIntegerValue(this, ("Rewards_Of_" + v)) - Z) * W) / 10000)
147+ let C = {
148+ let D = getIntegerValue(this, "Total_Txns:")
149+ if ($isInstanceOf(D, "Int"))
148150 then {
149- let D = C
150- D
151+ let E = D
152+ E
151153 }
152154 else 0
153155 }
154- let E = (B + 1)
155- let ab = {
156- let C = getIntegerValue(this, "Total_CODE_Claimed:")
157- if ($isInstanceOf(C, "Int"))
156+ let F = (C + 1)
157+ let ac = {
158+ let D = getIntegerValue(this, "Total_CODE_Claimed:")
159+ if ($isInstanceOf(D, "Int"))
158160 then {
159- let D = C
160- D
161+ let E = D
162+ E
161163 }
162164 else 0
163165 }
164- let ac = (ab + getIntegerValue(this, ("Rewards_Of_" + u)))
165- let ad = {
166- let C = getIntegerValue(this, "Total_Issued_CODE:")
167- if ($isInstanceOf(C, "Int"))
166+ let ad = (ac + getIntegerValue(this, ("Rewards_Of_" + v)))
167+ let ae = {
168+ let D = getIntegerValue(this, "Total_Issued_CODE:")
169+ if ($isInstanceOf(D, "Int"))
168170 then {
169- let D = C
170- D
171+ let E = D
172+ E
171173 }
172174 else 0
173175 }
174- let ae = (ad + getIntegerValue(this, ("Rewards_Of_" + u)))
175- let af = {
176- let C = getIntegerValue(this, "Total_Claim_Fee_In_TN")
177- if ($isInstanceOf(C, "Int"))
176+ let af = (ae + getIntegerValue(this, ("Rewards_Of_" + v)))
177+ let ag = {
178+ let D = getIntegerValue(this, "Total_Claim_Fee_In_TN")
179+ if ($isInstanceOf(D, "Int"))
178180 then {
179- let D = C
180- D
181+ let E = D
182+ E
181183 }
182184 else 0
183185 }
184- let ag = (af + X)
185- let H = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_height_Of_" + u)), "Your Address not Found on Staking DApp")
186- let I = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Total_Lock_Blocks_Of_" + u)), "Your Address not Found on Staking DApp")
187- let J = (I - H)
188- if (isDefined(t.assetId))
189- then throw((("Wrong Asset Attached for Payment, please Attach " + toString(X)) + "/10^8 TN."))
190- else if ((t.amount != X))
191- then throw((("Please Attach Exact " + toString(X)) + "/10^8 TN."))
192- else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + u)) > height))
193- then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + u)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + u)) - height))) + " blocks."))
194- else if ((Y == 0))
186+ let ah = (ag + Y)
187+ let I = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_height_Of_" + v)), "Your Address not Found on Staking DApp")
188+ let J = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Total_Lock_Blocks_Of_" + v)), "Your Address not Found on Staking DApp")
189+ let K = (J - I)
190+ if (isDefined(u.assetId))
191+ then throw((("Wrong Asset Attached for Payment, please Attach " + toString(Y)) + "/10^8 TN."))
192+ else if ((u.amount != Y))
193+ then throw((("Please Attach Exact " + toString(Y)) + "/10^8 TN."))
194+ else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + v)) > height))
195+ then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + v)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + v)) - height))) + " blocks."))
196+ else if ((Z == 0))
195197 then throw("You Have Already Withdraw your CODE Amount.")
196- else if ((J != 129600))
198+ else if ((K != 129600))
197199 then throw("You are Not Eligible to Withdraw CODE. It need minimum 90 Days Staking at A4A DApp. Probably you already have Claimed Your Stake or you Overwrite the Smart Contract with less than 90 days.")
198- else if ((U >= 1199999999999))
199- then [IntegerEntry("Total_Txns:", E), IntegerEntry("Total_CODE_Claimed:", ac), IntegerEntry("Total_Issued_CODE:", ae), IntegerEntry("Total_Claim_Fee_In_TN", ag), IntegerEntry("Fee_%_Charge", V), IntegerEntry("Fee_Amount", aa), Reissue(d, getIntegerValue(this, ("Rewards_Of_" + u)), true), ScriptTransfer(r.caller, (getIntegerValue(this, ("Rewards_Of_" + u)) - aa), d), ScriptTransfer(addressFromPublicKey(g), fraction(aa, 80, 100), d), ScriptTransfer(addressFromPublicKey(h), fraction(aa, i, 100), d), IntegerEntry(("No_Of_Deposits_" + u), 0), IntegerEntry(("Deposit_height_Of_" + u), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + u), 0), IntegerEntry(("Deposit_Amount_Of_" + u), 0), IntegerEntry(("Rewards_Of_" + u), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
200- else [IntegerEntry("Total_Txns:", E), IntegerEntry("Total_CODE_Claimed:", ac), IntegerEntry("Total_Issued_CODE:", ae), IntegerEntry("Total_Claim_Fee_In_TN", ag), IntegerEntry("Fee_%_Charge", W), IntegerEntry("Fee_Amount", Z), Reissue(d, getIntegerValue(this, ("Rewards_Of_" + u)), true), ScriptTransfer(r.caller, (getIntegerValue(this, ("Rewards_Of_" + u)) - Z), d), ScriptTransfer(addressFromPublicKey(g), fraction(Z, 80, 100), d), ScriptTransfer(addressFromPublicKey(h), fraction(Z, i, 100), d), IntegerEntry(("No_Of_Deposits_" + u), 0), IntegerEntry(("Deposit_height_Of_" + u), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + u), 0), IntegerEntry(("Deposit_Amount_Of_" + u), 0), IntegerEntry(("Rewards_Of_" + u), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
200+ else if ((V >= 1199999999999))
201+ then [IntegerEntry("Total_Txns:", F), IntegerEntry("Total_CODE_Claimed:", ad), IntegerEntry("Total_Issued_CODE:", af), IntegerEntry("Total_Claim_Fee_In_TN", ah), IntegerEntry("Fee_%_Charge", W), IntegerEntry("Fee_Amount", ab), Reissue(e, getIntegerValue(this, ("Rewards_Of_" + v)), true), ScriptTransfer(s.caller, (getIntegerValue(this, ("Rewards_Of_" + v)) - ab), e), ScriptTransfer(addressFromPublicKey(h), fraction(ab, 80, 100), e), ScriptTransfer(addressFromPublicKey(i), fraction(ab, j, 100), e), IntegerEntry(("No_Of_Deposits_" + v), 0), IntegerEntry(("Deposit_height_Of_" + v), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + v), 0), IntegerEntry(("Deposit_Amount_Of_" + v), 0), IntegerEntry(("Rewards_Of_" + v), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
202+ else [IntegerEntry("Total_Txns:", F), IntegerEntry("Total_CODE_Claimed:", ad), IntegerEntry("Total_Issued_CODE:", af), IntegerEntry("Total_Claim_Fee_In_TN", ah), IntegerEntry("Fee_%_Charge", X), IntegerEntry("Fee_Amount", aa), Reissue(e, getIntegerValue(this, ("Rewards_Of_" + v)), true), ScriptTransfer(s.caller, (getIntegerValue(this, ("Rewards_Of_" + v)) - aa), e), ScriptTransfer(addressFromPublicKey(h), fraction(aa, 80, 100), e), ScriptTransfer(addressFromPublicKey(i), fraction(aa, j, 100), e), IntegerEntry(("No_Of_Deposits_" + v), 0), IntegerEntry(("Deposit_height_Of_" + v), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + v), 0), IntegerEntry(("Deposit_Amount_Of_" + v), 0), IntegerEntry(("Rewards_Of_" + v), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
201203 }
202204
203205
204206
205-@Callable(r)
206-func SetDaysRange (ah,ai) = {
207- let aj = toBase58String(r.caller.bytes)
208- let ak = getStringValue(this, "DApp_Admin_Rights")
209- let al = 7
210- let am = 200
211- if ((ak != aj))
212- then throw((("I know You are not An Admin. Only " + ak) + " has rights to change Days Range."))
213- else if ((al > ah))
207+@Callable(s)
208+func SetDaysRange (ai,aj) = {
209+ let ak = toBase58String(s.caller.bytes)
210+ let al = getStringValue(this, "DApp_Admin_Rights")
211+ let am = 7
212+ let an = 200
213+ if ((al != ak))
214+ then throw((("I know You are not An Admin. Only " + al) + " has rights to change Days Range."))
215+ else if ((am > ai))
214216 then throw("Minimum days range must be more than 6 and in between 7-200.")
215- else if ((ai > am))
217+ else if ((aj > an))
216218 then throw("Maximum days range can't exceed the 200.")
217- else if ((ah > ai))
218- then throw((((("Minimum days range can't be exceed the value of Maximum days range. Choose the Range between [" + toString(al)) + "-") + toString(am)) + "]"))
219- else [IntegerEntry("Minimum_Days_Range", ah), IntegerEntry("Maximum_Days_Range", ai)]
219+ else if ((ai > aj))
220+ then throw((((("Minimum days range can't be exceed the value of Maximum days range. Choose the Range between [" + toString(am)) + "-") + toString(an)) + "]"))
221+ else [IntegerEntry("Minimum_Days_Range", ai), IntegerEntry("Maximum_Days_Range", aj)]
220222 }
221223
222224
223225
224-@Callable(r)
225-func SetClaimFee (X) = {
226- let aj = toBase58String(r.caller.bytes)
227- let ak = getStringValue(this, "DApp_Admin_Rights")
228- let an = 100000000
229- let ao = 100000000000
230- if ((ak != aj))
231- then throw((("I know You are not An Admin. Only " + ak) + " has rights to change Claim Fee."))
232- else if ((an > X))
233- then throw((("Minimum Claim fee is " + toString(an)) + " TN [int-format]."))
234- else if ((X > ao))
235- then throw((("Maximum Claim fee can't be more than " + toString(ao)) + " TN. [int-format]"))
236- else [IntegerEntry("Claim_Fee", X)]
226+@Callable(s)
227+func SetClaimFee (Y) = {
228+ let ak = toBase58String(s.caller.bytes)
229+ let al = getStringValue(this, "DApp_Admin_Rights")
230+ let ao = 100000000
231+ let ap = 100000000000
232+ if ((al != ak))
233+ then throw((("I know You are not An Admin. Only " + al) + " has rights to change Claim Fee."))
234+ else if ((ao > Y))
235+ then throw((("Minimum Claim fee is " + toString(ao)) + " TN [int-format]."))
236+ else if ((Y > ap))
237+ then throw((("Maximum Claim fee can't be more than " + toString(ap)) + " TN. [int-format]"))
238+ else [IntegerEntry("Claim_Fee", Y)]
237239 }
238240
239241
240242
241-@Callable(r)
242-func SwapWavesToTN () = {
243- let t = if ((size(r.payments) == 1))
244- then r.payments[0]
245- else throw("Token is required as Attached payment")
246- let ap = addressFromStringValue("3JjH6bhCEcN3JduEjACmBvLQ1eQvXSnAuyi")
247- let aq = base58'EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y'
248- let ar = "TN"
249- let as = 2001
250- let at = "global_TN_balance"
251- let au = getIntegerValue(ap, at)
252- let av = "global_EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y_balance"
253- let aw = getIntegerValue(ap, av)
254- let ax = fraction(aw, au, (aw + t.amount))
255- let ay = (au - ax)
256- let az = fraction(ay, as, 100000)
257- let aA = (ay - az)
258- let aB = fraction(t.amount, 100000000, aA)
259- let aC = AttachedPayment(aq, t.amount)
260- let aD = invoke(ap, "swap", [ar, aA], [aC])
261- if ((r.caller != c))
262- then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
263- else if ((aD == aD))
264- then if ((aD == aD))
265- then nil
266- else throw("Strict value is not equal to itself.")
267- else throw("Strict value is not equal to itself.")
268- }
243+@Callable(s)
244+func TriggerForAutoSwap (aq) = if ((1 > assetBalance(this, fromBase58String(aq))))
245+ then throw((aq + " has not Enough Balance To Transfer."))
246+ else if ((1 > size(aq)))
247+ then throw("AssetID Can't be Blank.")
248+ else [ScriptTransfer(addressFromStringValue(b), assetBalance(this, fromBase58String(aq)), fromBase58String(aq))]
269249
270250
271-@Verifier(aE)
272-func aF () = sigVerify(aE.bodyBytes, aE.proofs[0], aE.senderPublicKey)
251+@Verifier(ar)
252+func as () = sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
273253
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "3.0.0"
55
6-let b = base58'CFS24Rd5VmayXgJRCaGq1CfrQY9aRNbQEMFcM8r6vsUZ'
6+let b = "3JtuUwtQjEXSjERerVhx7ZmfXPPKLnSD332"
77
8-let c = addressFromPublicKey(b)
8+let c = base58'CFS24Rd5VmayXgJRCaGq1CfrQY9aRNbQEMFcM8r6vsUZ'
99
10-let d = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
10+let d = addressFromPublicKey(c)
1111
12-let e = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
12+let e = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB'
1313
14-let f = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
14+let f = base58'H3MZcnjakUsXycTbuR1BtZbyXj8C4RAPgdoeoTMGczjX'
1515
16-let g = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
16+let g = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J'
1717
18-let h = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
18+let h = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR'
1919
20-let i = 20
20+let i = base58'8d4zGuTjT3h67Z4DatzMXdXXW1GvoQhMTjwCGFxJuene'
2121
22-let j = 1850000
22+let j = 20
2323
24-let k = getIntegerValue(this, "Minimum_Days_Range")
24+let k = 1850000
2525
26-let l = getIntegerValue(this, "Maximum_Days_Range")
26+let l = getIntegerValue(this, "Minimum_Days_Range")
2727
28-let m = 100000
28+let m = getIntegerValue(this, "Maximum_Days_Range")
2929
30-let n = 1000000
30+let n = 100000
3131
32-let o = 1440
32+let o = 1000000
3333
34-let p = (height - j)
34+let p = 1440
3535
36-let q = (fraction(10000000000, 1, p) + 6000)
36+let q = (height - k)
3737
38-@Callable(r)
39-func Deposit (s) = {
40- let t = if ((size(r.payments) == 1))
41- then r.payments[0]
42- else throw((("No Payments Attached Please Attach " + toBase58String(d)) + " Asset Only."))
43- let u = toBase58String(r.caller.bytes)
44- let v = ((((q * t.amount) * s) / 365) / 1000)
45- let w = (p * 100000)
46- let x = (o * s)
47- let y = (height + x)
48- let z = fraction(l, (w * q), (365 * 1000))
49- let A = fraction(z, 1000000, w)
50- let B = {
51- let C = getIntegerValue(this, "Total_Txns:")
52- if ($isInstanceOf(C, "Int"))
38+let r = (fraction(10000000000, 1, q) + 6000)
39+
40+@Callable(s)
41+func Deposit (t) = {
42+ let u = if ((size(s.payments) == 1))
43+ then s.payments[0]
44+ else throw((("No Payments Attached Please Attach " + toBase58String(e)) + " Asset Only."))
45+ let v = toBase58String(s.caller.bytes)
46+ let w = ((((r * u.amount) * t) / 365) / 1000)
47+ let x = (q * 100000)
48+ let y = (p * t)
49+ let z = (height + y)
50+ let A = fraction(m, (x * r), (365 * 1000))
51+ let B = fraction(A, 1000000, x)
52+ let C = {
53+ let D = getIntegerValue(this, "Total_Txns:")
54+ if ($isInstanceOf(D, "Int"))
5355 then {
54- let D = C
55- D
56+ let E = D
57+ E
5658 }
5759 else 0
5860 }
59- let E = (B + 1)
60- let F = {
61- let C = getInteger(this, "Total_Burned_CODE:")
62- if ($isInstanceOf(C, "Int"))
61+ let F = (C + 1)
62+ let G = {
63+ let D = getInteger(this, "Total_Burned_CODE:")
64+ if ($isInstanceOf(D, "Int"))
6365 then {
64- let D = C
65- D
66+ let E = D
67+ E
6668 }
6769 else 0
6870 }
69- let G = (F + t.amount)
70- let H = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_height_Of_" + u)), "Your Address not Found on Staking DApp")
71- let I = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Total_Lock_Blocks_Of_" + u)), "Your Address not Found on Staking DApp")
72- let J = (I - H)
73- let K = assetBalance(Address(r.caller.bytes), e)
74- let L = {
75- let C = getInteger(this, ("Deposit_Amount_Of_" + u))
76- if ($isInstanceOf(C, "Int"))
71+ let H = (G + u.amount)
72+ let I = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_height_Of_" + v)), "Your Address not Found on Staking DApp")
73+ let J = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Total_Lock_Blocks_Of_" + v)), "Your Address not Found on Staking DApp")
74+ let K = (J - I)
75+ let L = assetBalance(Address(s.caller.bytes), f)
76+ let M = {
77+ let D = getInteger(this, ("Deposit_Amount_Of_" + v))
78+ if ($isInstanceOf(D, "Int"))
7779 then {
78- let D = C
79- D
80+ let E = D
81+ E
8082 }
8183 else 0
8284 }
83- let M = (L + t.amount)
84- let N = {
85- let C = getInteger(this, ("No_Of_Deposits_" + u))
86- if ($isInstanceOf(C, "Int"))
85+ let N = (M + u.amount)
86+ let O = {
87+ let D = getInteger(this, ("No_Of_Deposits_" + v))
88+ if ($isInstanceOf(D, "Int"))
8789 then {
88- let D = C
89- D
90+ let E = D
91+ E
9092 }
9193 else 0
9294 }
93- let O = (N + 1)
94- let P = {
95- let C = getInteger(this, "Expansion_Counter")
96- if ($isInstanceOf(C, "Int"))
95+ let P = (O + 1)
96+ let Q = {
97+ let D = getInteger(this, "Expansion_Counter")
98+ if ($isInstanceOf(D, "Int"))
9799 then {
98- let D = C
99- D
100+ let E = D
101+ E
100102 }
101103 else 0
102104 }
103- let Q = (P + 1)
104- if ((K != 1))
105+ let R = (Q + 1)
106+ if ((L != 1))
105107 then throw("You Need to Mint a CODE License from DApp Address 3JeqfvcGZxJbuSpCB5cFhV2Bb8fdV4WzZzZ.")
106- else if ((K > 1))
108+ else if ((L > 1))
107109 then throw("You Own Multiple CODE License on Same Address.")
108- else if ((j > height))
109- then throw((("DApp is Not Started Yet please Wait until " + toString((j - height))) + " blocks"))
110- else if ((t.assetId != d))
111- then throw((("Incorrect asset attached, please attach " + toBase58String(d)) + " asset only"))
112- else if ((k >= s))
113- then throw(((("Choose Locking days in between " + toString((k + 1))) + " to ") + toString(l)))
114- else if ((s > l))
115- then throw(((((("You Entered days to " + toString(s)) + ", Please Enter no. of days in between ") + toString((k + 1))) + " to ") + toString(l)))
116- else if ((m > t.amount))
110+ else if ((k > height))
111+ then throw((("DApp is Not Started Yet please Wait until " + toString((k - height))) + " blocks"))
112+ else if ((u.assetId != e))
113+ then throw((("Incorrect asset attached, please attach " + toBase58String(e)) + " asset only"))
114+ else if ((l >= t))
115+ then throw(((("Choose Locking days in between " + toString((l + 1))) + " to ") + toString(m)))
116+ else if ((t > m))
117+ then throw(((((("You Entered days to " + toString(t)) + ", Please Enter no. of days in between ") + toString((l + 1))) + " to ") + toString(m)))
118+ else if ((n > u.amount))
117119 then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.")
118- else if ((t.amount > w))
119- then throw((("You can attach maximum " + toString(w)) + "/10^8 CODE."))
120- else if ((J != 129600))
120+ else if ((u.amount > x))
121+ then throw((("You can attach maximum " + toString(x)) + "/10^8 CODE."))
122+ else if ((K != 129600))
121123 then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.")
122- else if ((N == 1))
124+ else if ((O == 1))
123125 then throw("You Already Have an Active Staking, Please Wait until Mature.")
124- else if ((n > A))
125- then [StringEntry("Version", a), IntegerEntry("Expansion_Counter", Q), StringEntry(((toString(Q) + "_Expansion_Updator_") + toString(height)), u), StringEntry("message", (((("New Days Range Expended from " + toString(l)) + " To ") + toString((l + 1))) + " Days. Please Restake CODE.")), IntegerEntry("Maximum_Days_Range", (l + 1)), IntegerEntry("Minimum_Days_Range", (k + 1)), ScriptTransfer(r.caller, t.amount, d)]
126- else [Burn(d, t.amount), IntegerEntry("Total_Burned_CODE:", G), IntegerEntry("Total_Txns:", E), IntegerEntry("Inflation", q), IntegerEntry("Block_Passed", p), IntegerEntry("Burn_Factor", A), IntegerEntry(("No_Of_Deposits_" + u), O), IntegerEntry(("Deposit_height_Of_" + u), height), IntegerEntry(("Total_Lock_Blocks_Of_" + u), y), IntegerEntry(("Deposit_Amount_Of_" + u), M), IntegerEntry(("Rewards_Of_" + u), v), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")]
126+ else if ((o > B))
127+ then [StringEntry("Version", a), IntegerEntry("Expansion_Counter", R), StringEntry(((toString(R) + "_Expansion_Updator_") + toString(height)), v), StringEntry("message", (((("New Days Range Expended from " + toString(m)) + " To ") + toString((m + 1))) + " Days. Please Restake CODE.")), IntegerEntry("Maximum_Days_Range", (m + 1)), IntegerEntry("Minimum_Days_Range", (l + 1)), ScriptTransfer(s.caller, u.amount, e)]
128+ else [Burn(e, u.amount), IntegerEntry("Total_Burned_CODE:", H), IntegerEntry("Total_Txns:", F), IntegerEntry("Inflation", r), IntegerEntry("Block_Passed", q), IntegerEntry("Burn_Factor", B), IntegerEntry(("No_Of_Deposits_" + v), P), IntegerEntry(("Deposit_height_Of_" + v), height), IntegerEntry(("Total_Lock_Blocks_Of_" + v), z), IntegerEntry(("Deposit_Amount_Of_" + v), N), IntegerEntry(("Rewards_Of_" + v), w), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")]
127129 }
128130
129131
130132
131-@Callable(r)
133+@Callable(s)
132134 func Withdraw () = {
133- let u = toBase58String(r.caller.bytes)
134- let R = 1200000000000
135- let S = 24000000
136- let T = 19
137- let U = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_Amount_Of_" + u)), "Your Address not Found on Staking DApp")
138- let V = 500
139- let W = ((S - (fraction(U, 1000000, R) * 19)) / 10000)
140- let X = getIntegerValue(this, "Claim_Fee")
141- let t = value(r.payments[0])
142- let Y = getIntegerValue(this, ("Deposit_Amount_Of_" + u))
143- let Z = (((getIntegerValue(this, ("Rewards_Of_" + u)) - Y) * W) / 10000)
144- let aa = (((getIntegerValue(this, ("Rewards_Of_" + u)) - Y) * V) / 10000)
145- let B = {
146- let C = getIntegerValue(this, "Total_Txns:")
147- if ($isInstanceOf(C, "Int"))
135+ let v = toBase58String(s.caller.bytes)
136+ let S = 1200000000000
137+ let T = 24000000
138+ let U = 19
139+ let V = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_Amount_Of_" + v)), "Your Address not Found on Staking DApp")
140+ let W = 500
141+ let X = ((T - (fraction(V, 1000000, S) * 19)) / 10000)
142+ let Y = getIntegerValue(this, "Claim_Fee")
143+ let u = value(s.payments[0])
144+ let Z = getIntegerValue(this, ("Deposit_Amount_Of_" + v))
145+ let aa = (((getIntegerValue(this, ("Rewards_Of_" + v)) - Z) * X) / 10000)
146+ let ab = (((getIntegerValue(this, ("Rewards_Of_" + v)) - Z) * W) / 10000)
147+ let C = {
148+ let D = getIntegerValue(this, "Total_Txns:")
149+ if ($isInstanceOf(D, "Int"))
148150 then {
149- let D = C
150- D
151+ let E = D
152+ E
151153 }
152154 else 0
153155 }
154- let E = (B + 1)
155- let ab = {
156- let C = getIntegerValue(this, "Total_CODE_Claimed:")
157- if ($isInstanceOf(C, "Int"))
156+ let F = (C + 1)
157+ let ac = {
158+ let D = getIntegerValue(this, "Total_CODE_Claimed:")
159+ if ($isInstanceOf(D, "Int"))
158160 then {
159- let D = C
160- D
161+ let E = D
162+ E
161163 }
162164 else 0
163165 }
164- let ac = (ab + getIntegerValue(this, ("Rewards_Of_" + u)))
165- let ad = {
166- let C = getIntegerValue(this, "Total_Issued_CODE:")
167- if ($isInstanceOf(C, "Int"))
166+ let ad = (ac + getIntegerValue(this, ("Rewards_Of_" + v)))
167+ let ae = {
168+ let D = getIntegerValue(this, "Total_Issued_CODE:")
169+ if ($isInstanceOf(D, "Int"))
168170 then {
169- let D = C
170- D
171+ let E = D
172+ E
171173 }
172174 else 0
173175 }
174- let ae = (ad + getIntegerValue(this, ("Rewards_Of_" + u)))
175- let af = {
176- let C = getIntegerValue(this, "Total_Claim_Fee_In_TN")
177- if ($isInstanceOf(C, "Int"))
176+ let af = (ae + getIntegerValue(this, ("Rewards_Of_" + v)))
177+ let ag = {
178+ let D = getIntegerValue(this, "Total_Claim_Fee_In_TN")
179+ if ($isInstanceOf(D, "Int"))
178180 then {
179- let D = C
180- D
181+ let E = D
182+ E
181183 }
182184 else 0
183185 }
184- let ag = (af + X)
185- let H = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Deposit_height_Of_" + u)), "Your Address not Found on Staking DApp")
186- let I = valueOrErrorMessage(getInteger(addressFromPublicKey(f), ("Total_Lock_Blocks_Of_" + u)), "Your Address not Found on Staking DApp")
187- let J = (I - H)
188- if (isDefined(t.assetId))
189- then throw((("Wrong Asset Attached for Payment, please Attach " + toString(X)) + "/10^8 TN."))
190- else if ((t.amount != X))
191- then throw((("Please Attach Exact " + toString(X)) + "/10^8 TN."))
192- else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + u)) > height))
193- then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + u)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + u)) - height))) + " blocks."))
194- else if ((Y == 0))
186+ let ah = (ag + Y)
187+ let I = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Deposit_height_Of_" + v)), "Your Address not Found on Staking DApp")
188+ let J = valueOrErrorMessage(getInteger(addressFromPublicKey(g), ("Total_Lock_Blocks_Of_" + v)), "Your Address not Found on Staking DApp")
189+ let K = (J - I)
190+ if (isDefined(u.assetId))
191+ then throw((("Wrong Asset Attached for Payment, please Attach " + toString(Y)) + "/10^8 TN."))
192+ else if ((u.amount != Y))
193+ then throw((("Please Attach Exact " + toString(Y)) + "/10^8 TN."))
194+ else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + v)) > height))
195+ then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + v)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + v)) - height))) + " blocks."))
196+ else if ((Z == 0))
195197 then throw("You Have Already Withdraw your CODE Amount.")
196- else if ((J != 129600))
198+ else if ((K != 129600))
197199 then throw("You are Not Eligible to Withdraw CODE. It need minimum 90 Days Staking at A4A DApp. Probably you already have Claimed Your Stake or you Overwrite the Smart Contract with less than 90 days.")
198- else if ((U >= 1199999999999))
199- then [IntegerEntry("Total_Txns:", E), IntegerEntry("Total_CODE_Claimed:", ac), IntegerEntry("Total_Issued_CODE:", ae), IntegerEntry("Total_Claim_Fee_In_TN", ag), IntegerEntry("Fee_%_Charge", V), IntegerEntry("Fee_Amount", aa), Reissue(d, getIntegerValue(this, ("Rewards_Of_" + u)), true), ScriptTransfer(r.caller, (getIntegerValue(this, ("Rewards_Of_" + u)) - aa), d), ScriptTransfer(addressFromPublicKey(g), fraction(aa, 80, 100), d), ScriptTransfer(addressFromPublicKey(h), fraction(aa, i, 100), d), IntegerEntry(("No_Of_Deposits_" + u), 0), IntegerEntry(("Deposit_height_Of_" + u), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + u), 0), IntegerEntry(("Deposit_Amount_Of_" + u), 0), IntegerEntry(("Rewards_Of_" + u), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
200- else [IntegerEntry("Total_Txns:", E), IntegerEntry("Total_CODE_Claimed:", ac), IntegerEntry("Total_Issued_CODE:", ae), IntegerEntry("Total_Claim_Fee_In_TN", ag), IntegerEntry("Fee_%_Charge", W), IntegerEntry("Fee_Amount", Z), Reissue(d, getIntegerValue(this, ("Rewards_Of_" + u)), true), ScriptTransfer(r.caller, (getIntegerValue(this, ("Rewards_Of_" + u)) - Z), d), ScriptTransfer(addressFromPublicKey(g), fraction(Z, 80, 100), d), ScriptTransfer(addressFromPublicKey(h), fraction(Z, i, 100), d), IntegerEntry(("No_Of_Deposits_" + u), 0), IntegerEntry(("Deposit_height_Of_" + u), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + u), 0), IntegerEntry(("Deposit_Amount_Of_" + u), 0), IntegerEntry(("Rewards_Of_" + u), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
200+ else if ((V >= 1199999999999))
201+ then [IntegerEntry("Total_Txns:", F), IntegerEntry("Total_CODE_Claimed:", ad), IntegerEntry("Total_Issued_CODE:", af), IntegerEntry("Total_Claim_Fee_In_TN", ah), IntegerEntry("Fee_%_Charge", W), IntegerEntry("Fee_Amount", ab), Reissue(e, getIntegerValue(this, ("Rewards_Of_" + v)), true), ScriptTransfer(s.caller, (getIntegerValue(this, ("Rewards_Of_" + v)) - ab), e), ScriptTransfer(addressFromPublicKey(h), fraction(ab, 80, 100), e), ScriptTransfer(addressFromPublicKey(i), fraction(ab, j, 100), e), IntegerEntry(("No_Of_Deposits_" + v), 0), IntegerEntry(("Deposit_height_Of_" + v), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + v), 0), IntegerEntry(("Deposit_Amount_Of_" + v), 0), IntegerEntry(("Rewards_Of_" + v), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
202+ else [IntegerEntry("Total_Txns:", F), IntegerEntry("Total_CODE_Claimed:", ad), IntegerEntry("Total_Issued_CODE:", af), IntegerEntry("Total_Claim_Fee_In_TN", ah), IntegerEntry("Fee_%_Charge", X), IntegerEntry("Fee_Amount", aa), Reissue(e, getIntegerValue(this, ("Rewards_Of_" + v)), true), ScriptTransfer(s.caller, (getIntegerValue(this, ("Rewards_Of_" + v)) - aa), e), ScriptTransfer(addressFromPublicKey(h), fraction(aa, 80, 100), e), ScriptTransfer(addressFromPublicKey(i), fraction(aa, j, 100), e), IntegerEntry(("No_Of_Deposits_" + v), 0), IntegerEntry(("Deposit_height_Of_" + v), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + v), 0), IntegerEntry(("Deposit_Amount_Of_" + v), 0), IntegerEntry(("Rewards_Of_" + v), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")]
201203 }
202204
203205
204206
205-@Callable(r)
206-func SetDaysRange (ah,ai) = {
207- let aj = toBase58String(r.caller.bytes)
208- let ak = getStringValue(this, "DApp_Admin_Rights")
209- let al = 7
210- let am = 200
211- if ((ak != aj))
212- then throw((("I know You are not An Admin. Only " + ak) + " has rights to change Days Range."))
213- else if ((al > ah))
207+@Callable(s)
208+func SetDaysRange (ai,aj) = {
209+ let ak = toBase58String(s.caller.bytes)
210+ let al = getStringValue(this, "DApp_Admin_Rights")
211+ let am = 7
212+ let an = 200
213+ if ((al != ak))
214+ then throw((("I know You are not An Admin. Only " + al) + " has rights to change Days Range."))
215+ else if ((am > ai))
214216 then throw("Minimum days range must be more than 6 and in between 7-200.")
215- else if ((ai > am))
217+ else if ((aj > an))
216218 then throw("Maximum days range can't exceed the 200.")
217- else if ((ah > ai))
218- then throw((((("Minimum days range can't be exceed the value of Maximum days range. Choose the Range between [" + toString(al)) + "-") + toString(am)) + "]"))
219- else [IntegerEntry("Minimum_Days_Range", ah), IntegerEntry("Maximum_Days_Range", ai)]
219+ else if ((ai > aj))
220+ then throw((((("Minimum days range can't be exceed the value of Maximum days range. Choose the Range between [" + toString(am)) + "-") + toString(an)) + "]"))
221+ else [IntegerEntry("Minimum_Days_Range", ai), IntegerEntry("Maximum_Days_Range", aj)]
220222 }
221223
222224
223225
224-@Callable(r)
225-func SetClaimFee (X) = {
226- let aj = toBase58String(r.caller.bytes)
227- let ak = getStringValue(this, "DApp_Admin_Rights")
228- let an = 100000000
229- let ao = 100000000000
230- if ((ak != aj))
231- then throw((("I know You are not An Admin. Only " + ak) + " has rights to change Claim Fee."))
232- else if ((an > X))
233- then throw((("Minimum Claim fee is " + toString(an)) + " TN [int-format]."))
234- else if ((X > ao))
235- then throw((("Maximum Claim fee can't be more than " + toString(ao)) + " TN. [int-format]"))
236- else [IntegerEntry("Claim_Fee", X)]
226+@Callable(s)
227+func SetClaimFee (Y) = {
228+ let ak = toBase58String(s.caller.bytes)
229+ let al = getStringValue(this, "DApp_Admin_Rights")
230+ let ao = 100000000
231+ let ap = 100000000000
232+ if ((al != ak))
233+ then throw((("I know You are not An Admin. Only " + al) + " has rights to change Claim Fee."))
234+ else if ((ao > Y))
235+ then throw((("Minimum Claim fee is " + toString(ao)) + " TN [int-format]."))
236+ else if ((Y > ap))
237+ then throw((("Maximum Claim fee can't be more than " + toString(ap)) + " TN. [int-format]"))
238+ else [IntegerEntry("Claim_Fee", Y)]
237239 }
238240
239241
240242
241-@Callable(r)
242-func SwapWavesToTN () = {
243- let t = if ((size(r.payments) == 1))
244- then r.payments[0]
245- else throw("Token is required as Attached payment")
246- let ap = addressFromStringValue("3JjH6bhCEcN3JduEjACmBvLQ1eQvXSnAuyi")
247- let aq = base58'EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y'
248- let ar = "TN"
249- let as = 2001
250- let at = "global_TN_balance"
251- let au = getIntegerValue(ap, at)
252- let av = "global_EzwaF58ssALcUCZ9FbyeD1GTSteoZAQZEDTqBAXHfq8y_balance"
253- let aw = getIntegerValue(ap, av)
254- let ax = fraction(aw, au, (aw + t.amount))
255- let ay = (au - ax)
256- let az = fraction(ay, as, 100000)
257- let aA = (ay - az)
258- let aB = fraction(t.amount, 100000000, aA)
259- let aC = AttachedPayment(aq, t.amount)
260- let aD = invoke(ap, "swap", [ar, aA], [aC])
261- if ((r.caller != c))
262- then throw((("This Address is not Authorized. Only " + toString(c)) + " is Authorized Address to Sign it."))
263- else if ((aD == aD))
264- then if ((aD == aD))
265- then nil
266- else throw("Strict value is not equal to itself.")
267- else throw("Strict value is not equal to itself.")
268- }
243+@Callable(s)
244+func TriggerForAutoSwap (aq) = if ((1 > assetBalance(this, fromBase58String(aq))))
245+ then throw((aq + " has not Enough Balance To Transfer."))
246+ else if ((1 > size(aq)))
247+ then throw("AssetID Can't be Blank.")
248+ else [ScriptTransfer(addressFromStringValue(b), assetBalance(this, fromBase58String(aq)), fromBase58String(aq))]
269249
270250
271-@Verifier(aE)
272-func aF () = sigVerify(aE.bodyBytes, aE.proofs[0], aE.senderPublicKey)
251+@Verifier(ar)
252+func as () = sigVerify(ar.bodyBytes, ar.proofs[0], ar.senderPublicKey)
273253

github/deemru/w8io/026f985 
128.63 ms