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