tx · BhSajcoDX9txW5hB9j3LDxpMYYE2swUEJ9B6QfQtt7Hb 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo: -0.01900000 Waves 2022.09.24 11:29 [2242995] smart account 3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo > SELF 0.00000000 Waves
{ "type": 13, "id": "BhSajcoDX9txW5hB9j3LDxpMYYE2swUEJ9B6QfQtt7Hb", "fee": 1900000, "feeAssetId": null, "timestamp": 1664008251128, "version": 2, "chainId": 84, "sender": "3N34Zi5VD4m9az4kEXWDJngkMHMTpqLcoqo", "senderPublicKey": "AmXrJ1inc5jpKhf6D9aDcRU8QWHZXBJdBBvz9VsKDe9x", "proofs": [ "DA2d3PYLU2SxqZa8nFMPbiCkPysBTszXjuZRrQsxMR8tg9eBn8n8jqiVmyqMgdhcC9RvpACLECxfyV4Cru37FFF" ], "script": "base64:AAIEAAAAAAAAAA8IAhIDCgEBEgASBAoCAQEAAAAKAAAAAAtDT0RFQXNzZXRJRAEAAAAgw7tamQ+/dXoyJwRZ/Fb5N4jdONzqCnQ4LyXft9O80qAAAAAAC3hVU0RBc3NldElEAQAAACDQu787dB6wjEoXRsYU1VtSEiSLVpFEqrKAkPqKytHJdwAAAAALU3Rha2luZ0RhcHABAAAAIP1BmwSx4bIxRW9G92Fp+LHjR7RGmJ4CHLHEY95r1tU/AAAAABJUcmVhc3VyeUZlZUFkZHJlc3MBAAAAIFKD2aCL15CSOzPl4EBEchtzseD8Xh+YHSzFnrJIx+IgAAAAAAtTdGFydEhlaWdodAAAAAAAABw6kAAAAAAPbWluaW11bWxvY2tkYXlzCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAABJNaW5pbXVtX0RheXNfUmFuZ2UAAAAAD21heGltdW1sb2NrZGF5cwkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAASTWF4aW11bV9EYXlzX1JhbmdlAAAAAAZvbmVkYXkAAAA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mlnaHRzAgAAACEgaGFzIHJpZ2h0cyB0byBjaGFuZ2UgRGF5cyBSYW5nZS4DCQAAZgAAAAIFAAAADE1pbmltdW1fZGF5cwUAAAASTWluaW11bV9EYXlzX1JhbmdlCQAAAgAAAAECAAAAPE1pbmltdW0gZGF5cyByYW5nZSBtdXN0IGJlIG1vcmUgdGhhbiA2IGFuZCBpbiBiZXR3ZWVuIDctMjAwLgMJAABmAAAAAgUAAAASTWF4aW11bV9EYXlzX1JhbmdlBQAAAAxNYXhpbXVtX2RheXMJAAACAAAAAQIAAAAoTWF4aW11bSBkYXlzIHJhbmdlIGNhbid0IGV4Y2VlZCB0aGUgMjAwLgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAASTWluaW11bV9EYXlzX1JhbmdlBQAAABJNaW5pbXVtX0RheXNfUmFuZ2UJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAEk1heGltdW1fRGF5c19SYW5nZQUAAAASTWF4aW11bV9EYXlzX1JhbmdlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQWixu4=", "height": 2242995, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AHdaMetRytcFTtV1woAbXUsfeWEo51PpWvcXrwQ5HPW Next: 8AwB9SWCVRH4UQcgTE6gnC8sNRzfWCuptiLvdQKjaKpm Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = base58' | |
4 | + | let a = base58'EB4CUQH4fHzzQt9YjcHtA6T7uosHNH9RnQKHgBdZHPCB' | |
5 | 5 | ||
6 | - | let b = base58' | |
6 | + | let b = base58'F3or3Nn6NTcSkRvzqtoCoyuCfdqNSuP8rjLboS2AemPL' | |
7 | 7 | ||
8 | - | let c = base58' | |
8 | + | let c = base58'J3cAptAPQxVqpEz6Rch57JeKpbns48s1a6HoeQG9aX4J' | |
9 | 9 | ||
10 | - | let d = base58' | |
10 | + | let d = base58'6Z73KxcX3sugpiStpSRXxKxTmWqCaLVwFeM6kwyiKVDR' | |
11 | 11 | ||
12 | - | let e = | |
12 | + | let e = 1850000 | |
13 | 13 | ||
14 | - | let f = | |
14 | + | let f = getIntegerValue(this, "Minimum_Days_Range") | |
15 | 15 | ||
16 | - | let g = ( | |
16 | + | let g = getIntegerValue(this, "Maximum_Days_Range") | |
17 | 17 | ||
18 | - | let h = | |
18 | + | let h = 1440 | |
19 | 19 | ||
20 | - | let i = | |
20 | + | let i = (height - e) | |
21 | 21 | ||
22 | - | let j = | |
22 | + | let j = (fraction(10000000000, 1, i) + 6000) | |
23 | 23 | ||
24 | - | let k = 1440 | |
25 | - | ||
26 | - | let l = (height - h) | |
27 | - | ||
28 | - | let m = (fraction(10000000000, 1, l) + 6000) | |
29 | - | ||
30 | - | @Callable(n) | |
31 | - | func Deposit (o) = { | |
32 | - | let p = if ((size(n.payments) == 1)) | |
33 | - | then n.payments[0] | |
24 | + | @Callable(k) | |
25 | + | func Deposit (l) = { | |
26 | + | let m = if ((size(k.payments) == 1)) | |
27 | + | then k.payments[0] | |
34 | 28 | else throw((("No Payments Attached Please Attach " + toBase58String(a)) + " Asset Only.")) | |
35 | - | let | |
36 | - | let | |
37 | - | let | |
38 | - | let | |
39 | - | let | |
40 | - | let | |
41 | - | let | |
42 | - | if ($isInstanceOf( | |
29 | + | let n = toBase58String(k.caller.bytes) | |
30 | + | let o = ((((j * m.amount) * l) / 365) / 1000) | |
31 | + | let p = (i * 100000) | |
32 | + | let q = (h * l) | |
33 | + | let r = (height + q) | |
34 | + | let s = { | |
35 | + | let t = getIntegerValue(this, "Total_Txns:") | |
36 | + | if ($isInstanceOf(t, "Int")) | |
43 | 37 | then { | |
44 | - | let | |
45 | - | | |
38 | + | let u = t | |
39 | + | u | |
46 | 40 | } | |
47 | 41 | else 0 | |
48 | 42 | } | |
49 | - | let | |
50 | - | let | |
51 | - | let | |
52 | - | if ($isInstanceOf( | |
43 | + | let v = (s + 1) | |
44 | + | let w = { | |
45 | + | let t = getInteger(this, "Total_Burned_CODE:") | |
46 | + | if ($isInstanceOf(t, "Int")) | |
53 | 47 | then { | |
54 | - | let | |
55 | - | | |
48 | + | let u = t | |
49 | + | u | |
56 | 50 | } | |
57 | 51 | else 0 | |
58 | 52 | } | |
59 | - | let | |
60 | - | let | |
61 | - | let | |
62 | - | let | |
63 | - | let | |
64 | - | let | |
65 | - | if ($isInstanceOf( | |
53 | + | let x = (w + m.amount) | |
54 | + | let y = valueOrErrorMessage(getInteger(addressFromPublicKey(c), ("Deposit_height_Of_" + n)), "Your Address not Found on Staking DApp") | |
55 | + | let z = valueOrErrorMessage(getInteger(addressFromPublicKey(c), ("Total_Lock_Blocks_Of_" + n)), "Your Address not Found on Staking DApp") | |
56 | + | let A = (z - y) | |
57 | + | let B = { | |
58 | + | let t = getInteger(this, ("Deposit_Amount_Of_" + n)) | |
59 | + | if ($isInstanceOf(t, "Int")) | |
66 | 60 | then { | |
67 | - | let | |
68 | - | | |
61 | + | let u = t | |
62 | + | u | |
69 | 63 | } | |
70 | 64 | else 0 | |
71 | 65 | } | |
72 | - | let | |
73 | - | let | |
74 | - | let | |
75 | - | if ($isInstanceOf( | |
66 | + | let C = (B + m.amount) | |
67 | + | let D = { | |
68 | + | let t = getInteger(this, ("No_Of_Deposits_" + n)) | |
69 | + | if ($isInstanceOf(t, "Int")) | |
76 | 70 | then { | |
77 | - | let | |
78 | - | | |
71 | + | let u = t | |
72 | + | u | |
79 | 73 | } | |
80 | 74 | else 0 | |
81 | 75 | } | |
82 | - | let | |
83 | - | if (( | |
84 | - | then throw((("DApp is Not Started Yet please Wait until " + toString(( | |
85 | - | else if (( | |
76 | + | let E = (D + 1) | |
77 | + | if ((e > height)) | |
78 | + | then throw((("DApp is Not Started Yet please Wait until " + toString((e - height))) + " blocks")) | |
79 | + | else if ((m.assetId != a)) | |
86 | 80 | then throw((("Incorrect asset attached, please attach " + toBase58String(a)) + " asset only")) | |
87 | - | else if (( | |
88 | - | then throw(((("Choose Locking days in between " + toString(( | |
89 | - | else if (( | |
90 | - | then throw(((((("You Entered days to " + toString( | |
91 | - | else if ((100000 > | |
81 | + | else if ((f >= l)) | |
82 | + | then throw(((("Choose Locking days in between " + toString((f + 1))) + " to ") + toString(g))) | |
83 | + | else if ((l > g)) | |
84 | + | then throw(((((("You Entered days to " + toString(l)) + ", Please Enter no. of days in between ") + toString((f + 1))) + " to ") + toString(g))) | |
85 | + | else if ((100000 > m.amount)) | |
92 | 86 | then throw("Please Attach minimum 0.001 CODE Token To Issue More CODE Asset.") | |
93 | - | else if (( | |
94 | - | then throw((("You can attach maximum " + toString( | |
95 | - | else if (( | |
96 | - | then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString( | |
97 | - | else if (( | |
87 | + | else if ((m.amount > p)) | |
88 | + | then throw((("You can attach maximum " + toString(p)) + "/10^8 CODE.")) | |
89 | + | else if ((m.amount > o)) | |
90 | + | then throw((((("Your Stake Output is lower than input, please increase no. of days (" + toString(o)) + "/") + toString(m.amount)) + ")/10^8 CODE.")) | |
91 | + | else if ((A != 129600)) | |
98 | 92 | then throw("You are Not Eligible to Mint CODE. It need minimum 90 Days Staking.") | |
99 | - | else if (( | |
93 | + | else if ((D == 1)) | |
100 | 94 | then throw("You Already Have an Active Staking, Please Wait until Mature.") | |
101 | - | else [Burn(a, | |
95 | + | else [Burn(a, m.amount), IntegerEntry("Total_Burned_CODE:", x), IntegerEntry("Total_Txns:", v), IntegerEntry("Inflation", j), IntegerEntry("Block_Passed", i), IntegerEntry(("No_Of_Deposits_" + n), E), IntegerEntry(("Deposit_height_Of_" + n), height), IntegerEntry(("Total_Lock_Blocks_Of_" + n), r), IntegerEntry(("Deposit_Amount_Of_" + n), C), IntegerEntry(("Rewards_Of_" + n), o), StringEntry("message", "<h1>CODE Staked Successfully!</h1><br>")] | |
102 | 96 | } | |
103 | 97 | ||
104 | 98 | ||
105 | 99 | ||
106 | - | @Callable( | |
100 | + | @Callable(k) | |
107 | 101 | func Withdraw () = { | |
108 | - | let q = toBase58String(n.caller.bytes) | |
109 | - | let I = 1200000000000 | |
110 | - | let J = 24000000 | |
111 | - | let K = 19 | |
112 | - | let L = valueOrErrorMessage(getInteger(addressFromPublicKey(b), ("Deposit_Amount_Of_" + q)), "Your Address not Found on Staking DApp") | |
113 | - | let M = 500 | |
114 | - | let N = ((J - (fraction(L, 1000000, I) * 19)) / 10000) | |
115 | - | let O = getIntegerValue(this, ("Deposit_Amount_Of_" + q)) | |
116 | - | let P = (((getIntegerValue(this, ("Rewards_Of_" + q)) - O) * N) / 10000) | |
117 | - | let Q = (((getIntegerValue(this, ("Rewards_Of_" + q)) - O) * M) / 10000) | |
118 | - | let v = { | |
119 | - | let w = getIntegerValue(this, "Total_Txns:") | |
120 | - | if ($isInstanceOf(w, "Int")) | |
102 | + | let n = toBase58String(k.caller.bytes) | |
103 | + | let F = 1200000000000 | |
104 | + | let G = 24000000 | |
105 | + | let H = 19 | |
106 | + | let I = valueOrErrorMessage(getInteger(addressFromPublicKey(c), ("Deposit_Amount_Of_" + n)), "Your Address not Found on Staking DApp") | |
107 | + | let J = 500 | |
108 | + | let K = ((G - (fraction(I, 1000000, F) * 19)) / 10000) | |
109 | + | let L = 51800000 | |
110 | + | let m = value(k.payments[0]) | |
111 | + | let M = getIntegerValue(this, ("Deposit_Amount_Of_" + n)) | |
112 | + | let N = (((getIntegerValue(this, ("Rewards_Of_" + n)) - M) * K) / 10000) | |
113 | + | let O = (((getIntegerValue(this, ("Rewards_Of_" + n)) - M) * J) / 10000) | |
114 | + | let s = { | |
115 | + | let t = getIntegerValue(this, "Total_Txns:") | |
116 | + | if ($isInstanceOf(t, "Int")) | |
121 | 117 | then { | |
122 | - | let | |
123 | - | | |
118 | + | let u = t | |
119 | + | u | |
124 | 120 | } | |
125 | 121 | else 0 | |
126 | 122 | } | |
127 | - | let | |
128 | - | let | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
123 | + | let v = (s + 1) | |
124 | + | let P = { | |
125 | + | let t = getIntegerValue(this, "Total_CODE_Claimed:") | |
126 | + | if ($isInstanceOf(t, "Int")) | |
131 | 127 | then { | |
132 | - | let | |
133 | - | | |
128 | + | let u = t | |
129 | + | u | |
134 | 130 | } | |
135 | 131 | else 0 | |
136 | 132 | } | |
137 | - | let | |
138 | - | let | |
139 | - | let | |
140 | - | if ($isInstanceOf( | |
133 | + | let Q = (P + getIntegerValue(this, ("Rewards_Of_" + n))) | |
134 | + | let R = { | |
135 | + | let t = getIntegerValue(this, "Total_Issued_CODE:") | |
136 | + | if ($isInstanceOf(t, "Int")) | |
141 | 137 | then { | |
142 | - | let | |
143 | - | | |
138 | + | let u = t | |
139 | + | u | |
144 | 140 | } | |
145 | 141 | else 0 | |
146 | 142 | } | |
147 | - | let U = (T + getIntegerValue(this, ("Rewards_Of_" + q))) | |
148 | - | let B = valueOrErrorMessage(getInteger(addressFromPublicKey(b), ("Deposit_height_Of_" + q)), "Your Address not Found on Staking DApp") | |
149 | - | let C = valueOrErrorMessage(getInteger(addressFromPublicKey(b), ("Total_Lock_Blocks_Of_" + q)), "Your Address not Found on Staking DApp") | |
150 | - | let D = (C - B) | |
151 | - | if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + q)) > height)) | |
152 | - | then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + q)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + q)) - height))) + " blocks.")) | |
153 | - | else if ((O == 0)) | |
154 | - | then throw("You Have Already Withdraw your CODE Amount.") | |
155 | - | else if ((D != 129600)) | |
156 | - | 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.") | |
157 | - | else if ((L >= 1199999999999)) | |
158 | - | then [IntegerEntry("Total_Txns:", y), IntegerEntry("Total_CODE_Claimed:", S), IntegerEntry("Total_Issued_CODE:", U), IntegerEntry("Fee_%_Charge", M), IntegerEntry("Fee_Amount", Q), Reissue(a, getIntegerValue(this, ("Rewards_Of_" + q)), true), ScriptTransfer(n.caller, (getIntegerValue(this, ("Rewards_Of_" + q)) - Q), a), ScriptTransfer(addressFromPublicKey(c), Q, a), IntegerEntry(("No_Of_Deposits_" + q), 0), IntegerEntry(("Deposit_height_Of_" + q), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + q), 0), IntegerEntry(("Deposit_Amount_Of_" + q), 0), IntegerEntry(("Rewards_Of_" + q), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
159 | - | else [IntegerEntry("Total_Txns:", y), IntegerEntry("Total_CODE_Claimed:", S), IntegerEntry("Total_Issued_CODE:", U), IntegerEntry("Fee_%_Charge", N), IntegerEntry("Fee_Amount", P), Reissue(a, getIntegerValue(this, ("Rewards_Of_" + q)), true), ScriptTransfer(n.caller, (getIntegerValue(this, ("Rewards_Of_" + q)) - P), a), ScriptTransfer(addressFromPublicKey(c), P, a), IntegerEntry(("No_Of_Deposits_" + q), 0), IntegerEntry(("Deposit_height_Of_" + q), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + q), 0), IntegerEntry(("Deposit_Amount_Of_" + q), 0), IntegerEntry(("Rewards_Of_" + q), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
143 | + | let S = (R + getIntegerValue(this, ("Rewards_Of_" + n))) | |
144 | + | let y = valueOrErrorMessage(getInteger(addressFromPublicKey(c), ("Deposit_height_Of_" + n)), "Your Address not Found on Staking DApp") | |
145 | + | let z = valueOrErrorMessage(getInteger(addressFromPublicKey(c), ("Total_Lock_Blocks_Of_" + n)), "Your Address not Found on Staking DApp") | |
146 | + | let A = (z - y) | |
147 | + | if ((m.assetId != b)) | |
148 | + | then throw((("Wrong Asset Attached for Payment, please Attach 0.518 xUSD (" + toBase58String(b)) + ")")) | |
149 | + | else if ((m.amount != L)) | |
150 | + | then throw("Please Attach Exact 0.518 xUSD.") | |
151 | + | else if ((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + n)) > height)) | |
152 | + | then throw((((("Your " + toString(getIntegerValue(this, ("Rewards_Of_" + n)))) + "/10^8 CODE are Still Maturing. Token will be Unlocked after ") + toString((getIntegerValue(this, ("Total_Lock_Blocks_Of_" + n)) - height))) + " blocks.")) | |
153 | + | else if ((M == 0)) | |
154 | + | then throw("You Have Already Withdraw your CODE Amount.") | |
155 | + | else if ((A != 129600)) | |
156 | + | 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.") | |
157 | + | else if ((I >= 1199999999999)) | |
158 | + | then [IntegerEntry("Total_Txns:", v), IntegerEntry("Total_CODE_Claimed:", Q), IntegerEntry("Total_Issued_CODE:", S), IntegerEntry("Fee_%_Charge", J), IntegerEntry("Fee_Amount", O), Reissue(a, getIntegerValue(this, ("Rewards_Of_" + n)), true), ScriptTransfer(k.caller, (getIntegerValue(this, ("Rewards_Of_" + n)) - O), a), ScriptTransfer(addressFromPublicKey(d), O, a), IntegerEntry(("No_Of_Deposits_" + n), 0), IntegerEntry(("Deposit_height_Of_" + n), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + n), 0), IntegerEntry(("Deposit_Amount_Of_" + n), 0), IntegerEntry(("Rewards_Of_" + n), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
159 | + | else [IntegerEntry("Total_Txns:", v), IntegerEntry("Total_CODE_Claimed:", Q), IntegerEntry("Total_Issued_CODE:", S), IntegerEntry("Fee_%_Charge", K), IntegerEntry("Fee_Amount", N), Reissue(a, getIntegerValue(this, ("Rewards_Of_" + n)), true), ScriptTransfer(k.caller, (getIntegerValue(this, ("Rewards_Of_" + n)) - N), a), ScriptTransfer(addressFromPublicKey(d), N, a), IntegerEntry(("No_Of_Deposits_" + n), 0), IntegerEntry(("Deposit_height_Of_" + n), 0), IntegerEntry(("Total_Lock_Blocks_Of_" + n), 0), IntegerEntry(("Deposit_Amount_Of_" + n), 0), IntegerEntry(("Rewards_Of_" + n), 0), StringEntry("message", "<h1>CODE UnStaked Successfully!</h1><br>")] | |
160 | 160 | } | |
161 | 161 | ||
162 | 162 | ||
163 | - | @Verifier(V) | |
164 | - | func W () = sigVerify(V.bodyBytes, V.proofs[0], V.senderPublicKey) | |
163 | + | ||
164 | + | @Callable(k) | |
165 | + | func SetDaysRange (T,U) = { | |
166 | + | let V = toBase58String(k.caller.bytes) | |
167 | + | let W = getStringValue(this, "DApp_Admin_Rights") | |
168 | + | let X = 7 | |
169 | + | let Y = 200 | |
170 | + | if ((W != V)) | |
171 | + | then throw((("I know You are not An Admin. Only " + W) + " has rights to change Days Range.")) | |
172 | + | else if ((X > T)) | |
173 | + | then throw("Minimum days range must be more than 6 and in between 7-200.") | |
174 | + | else if ((U > Y)) | |
175 | + | then throw("Maximum days range can't exceed the 200.") | |
176 | + | else [IntegerEntry("Minimum_Days_Range", T), IntegerEntry("Maximum_Days_Range", U)] | |
177 | + | } | |
178 | + | ||
179 | + | ||
180 | + | @Verifier(Z) | |
181 | + | func aa () = sigVerify(Z.bodyBytes, Z.proofs[0], Z.senderPublicKey) | |
165 | 182 |
github/deemru/w8io/169f3d6 73.96 ms ◑