tx · GEhenWYsgEV4FrAT9kf8XLsjEe1HP27Ssj5Abs1KdWKe 3MyfKzBNordUSxbv54zj1hxm98ojcDvaiXU: -0.04000000 Waves 2021.09.03 21:52 [1687248] smart account 3MyfKzBNordUSxbv54zj1hxm98ojcDvaiXU > SELF 0.00000000 Waves
{ "type": 13, "id": "GEhenWYsgEV4FrAT9kf8XLsjEe1HP27Ssj5Abs1KdWKe", "fee": 4000000, "feeAssetId": null, "timestamp": 1630695185608, "version": 2, "chainId": 84, "sender": "3MyfKzBNordUSxbv54zj1hxm98ojcDvaiXU", "senderPublicKey": "EhGswdVQkp8SXCWyKvRCUKYDidTrRjnzTPa8CZk6GYgN", "proofs": [ "5r8trnGU7oiAjdsT3A29SwSqzu1svbkqXxpircsX6TTd5uoUMwitG9arvNPzmXJvYLi5DdtN2fpget76TBenEnHP" ], "script": "base64:AAIFAAAAAAAAACEIAhIECgIIBBIDCgEIEgMKAQgSBwoFCAgBCAgSBAoCCAEAAAAqAAAAAApiYXNlRmFjdG9yAAAAAAAAAAPoAAAAAAliYXNlSW5kZXgAACOG8m/BAAAAAAAADWJsb2Nrc1BlclllYXIAAAAAAAAIBSAAAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAA1jb25maWdBZGRyZXNzAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAAAAAAAALd2F2ZXRyb2xsZXIJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGY29uZmlnAgAAAAt3YXZldHJvbGxlcgIAAAAAAAAAAAphc3NldElkU3ViCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAAA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AAA5kVG9rZW5EZWNpbWFscwAAAAAAAAAACAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAMZFRva2VuU3VwcGx5AAAAAAAAAAAABQAAAANuaWwJAAACAAAAAQIAAAATUG9vbCBhbHJlYWR5IHNldHVwIQAAAAFpAQAAABF3cml0ZUludGVnZXJFbnRyeQAAAAIAAAADa2V5AAAABWVudHJ5AwkBAAAADmlzQWRtaW5BZGRyZXNzAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAAXQ2FsbGVyIGlzIG5vdCBhbiBhZG1pbiEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleaiJuQw=", "height": 1687248, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5iAVKj56dUnqCGbofVFBKpPip5tSFBM6zMgZgN1ZsZv9 Next: 35be9FbRqrz9KCkjbGSAYMwi1UxRwJ6a3FF72WKjueqU Diff:
Old | New | Differences | |
---|---|---|---|
172 | 172 | else throw("Pool already setup!") | |
173 | 173 | ||
174 | 174 | ||
175 | - | @Verifier(at) | |
176 | - | func au () = sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey) | |
175 | + | ||
176 | + | @Callable(ae) | |
177 | + | func writeIntegerEntry (D,at) = if (x(ae.caller)) | |
178 | + | then [IntegerEntry(D, at)] | |
179 | + | else throw("Caller is not an admin!") | |
180 | + | ||
181 | + | ||
182 | + | @Verifier(au) | |
183 | + | func av () = sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey) | |
177 | 184 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 1000 | |
5 | 5 | ||
6 | 6 | let b = 10000000000000000 | |
7 | 7 | ||
8 | 8 | let c = 525600 | |
9 | 9 | ||
10 | 10 | let d = valueOrElse(getString(this, "configAddress"), "") | |
11 | 11 | ||
12 | 12 | let e = valueOrElse(getString(addressFromStringValue(d), "admin"), "") | |
13 | 13 | ||
14 | 14 | let f = valueOrElse(getString(addressFromStringValue(d), "wavetroller"), "") | |
15 | 15 | ||
16 | 16 | let g = valueOrErrorMessage(getString(this, "assetId"), "No assetId could be found in data storage!") | |
17 | 17 | ||
18 | 18 | let h = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Decimals")), (("No key " + (g + "_Decimals")) + " was found")) | |
19 | 19 | ||
20 | 20 | let i = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Multiplier")), (("No key " + (g + "_Multiplier")) + " was found")) | |
21 | 21 | ||
22 | 22 | let j = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Kink")), (("No key " + (g + "_Kink")) + " was found")) | |
23 | 23 | ||
24 | 24 | let k = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_JumpMultiplier")), (("No key " + (g + "_JumpMultiplier")) + " was found")) | |
25 | 25 | ||
26 | 26 | let l = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_BaseRate")), (("No key " + (g + "_BaseRate")) + " was found")) | |
27 | 27 | ||
28 | 28 | let m = valueOrErrorMessage(getInteger(this, "baseExchangeRate"), "No key baseExchangeRate was found") | |
29 | 29 | ||
30 | 30 | let n = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_ReserveFactor")), (("No key " + (g + "_ReserveFactor")) + " was found")) | |
31 | 31 | ||
32 | 32 | let o = valueOrElse(getInteger(this, "totalBorrow"), 0) | |
33 | 33 | ||
34 | 34 | let p = valueOrElse(getInteger(this, "totalSupply"), 0) | |
35 | 35 | ||
36 | 36 | let q = valueOrElse(getInteger(this, "totalReserve"), 0) | |
37 | 37 | ||
38 | 38 | let r = valueOrErrorMessage(getInteger(this, "dTokenSupply"), "No key dTokenSupply was found") | |
39 | 39 | ||
40 | 40 | let s = valueOrErrorMessage(getInteger(this, "dTokenDecimals"), "No key dTokenDecimals was found") | |
41 | 41 | ||
42 | 42 | let t = valueOrErrorMessage(getString(this, "dTokenId"), "No key dTokenId was found") | |
43 | 43 | ||
44 | 44 | let u = valueOrErrorMessage(getString(this, "dTokenName"), "No key dTokenName was found") | |
45 | 45 | ||
46 | 46 | let v = valueOrElse(getInteger(this, "storedHeight"), height) | |
47 | 47 | ||
48 | 48 | let w = valueOrElse(getInteger(this, "storedIndex"), 10000000000000000) | |
49 | 49 | ||
50 | 50 | func x (y) = if ((addressFromStringValue(e) == y)) | |
51 | 51 | then true | |
52 | 52 | else false | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func z (y) = if ((addressFromStringValue(f) == y)) | |
56 | 56 | then true | |
57 | 57 | else false | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func A (B) = if ((B == g)) | |
61 | 61 | then true | |
62 | 62 | else false | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func C (D,E) = StringEntry(D, E) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func F (D,G) = IntegerEntry(D, G) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func H (I) = valueOrElse(getInteger(this, (I + "_locked")), 0) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let J = if ((p > 0)) | |
75 | 75 | then fraction(o, a, p) | |
76 | 76 | else 0 | |
77 | 77 | ||
78 | 78 | let K = { | |
79 | 79 | let L = [J, j] | |
80 | 80 | let M = min(L) | |
81 | 81 | let N = [0, (J - j)] | |
82 | 82 | let O = max(N) | |
83 | 83 | ((fraction(i, M, a) + fraction(k, O, a)) + l) | |
84 | 84 | } | |
85 | 85 | ||
86 | 86 | let P = fraction(fraction(K, J, a), (a - n), a) | |
87 | 87 | ||
88 | 88 | let Q = fraction(K, b, (c * a)) | |
89 | 89 | ||
90 | 90 | let R = (height - v) | |
91 | 91 | ||
92 | 92 | let S = fraction(w, (b + (Q * R)), b, CEILING) | |
93 | 93 | ||
94 | 94 | let T = fraction(o, S, w) | |
95 | 95 | ||
96 | 96 | let U = fraction(o, (Q * R), b) | |
97 | 97 | ||
98 | 98 | let V = (p + fraction((a - n), U, a)) | |
99 | 99 | ||
100 | 100 | let W = (q + fraction(n, U, a)) | |
101 | 101 | ||
102 | 102 | let X = if ((r > 0)) | |
103 | 103 | then { | |
104 | 104 | let Y = ((18 - s) + h) | |
105 | 105 | let Z = pow(10, 0, Y, 0, 0, CEILING) | |
106 | 106 | fraction(V, Z, r) | |
107 | 107 | } | |
108 | 108 | else m | |
109 | 109 | ||
110 | 110 | func aa (ab) = { | |
111 | 111 | let Y = ((18 - s) + h) | |
112 | 112 | let Z = pow(10, 0, Y, 0, 0, CEILING) | |
113 | 113 | fraction(ab, Z, X) | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ac (ad) = { | |
118 | 118 | let Y = ((18 - s) + h) | |
119 | 119 | let Z = pow(10, 0, Y, 0, 0, CEILING) | |
120 | 120 | fraction(ad, X, Z) | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | @Callable(ae) | |
125 | 125 | func deposit (af,ag) = if (z(ae.caller)) | |
126 | 126 | then { | |
127 | 127 | let ah = aa(ae.payments[0].amount) | |
128 | 128 | let ai = (r + ah) | |
129 | 129 | if (ag) | |
130 | 130 | then { | |
131 | 131 | let aj = (H(af) + ah) | |
132 | 132 | $Tuple2([F((af + "_locked"), aj), F("dTokenSupply", ai), F("totalBorrow", T), F("totalSupply", (V + ae.payments[0].amount)), F("totalReserve", W), F("storedIndex", S), F("storedHeight", height), Reissue(fromBase58String(t), ah, true)], ((toString(ae.payments[0].amount) + u) + "were successfully locked")) | |
133 | 133 | } | |
134 | 134 | else $Tuple2([F("dTokenSupply", ai), F("totalBorrow", T), F("totalSupply", (V + ae.payments[0].amount)), F("totalReserve", W), F("storedIndex", S), F("storedHeight", height), Reissue(fromBase58String(t), ah, true), ScriptTransfer(ae.caller, ah, fromBase58String(t))], ah) | |
135 | 135 | } | |
136 | 136 | else throw("Address does not match with wavetroller address!") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(ae) | |
141 | 141 | func withdraw (af) = if (z(ae.caller)) | |
142 | 142 | then { | |
143 | 143 | let ak = (V - T) | |
144 | 144 | let al = ac(ae.payments[0].amount) | |
145 | 145 | if ((ak >= al)) | |
146 | 146 | then $Tuple2([F("dTokenSupply", (r - ae.payments[0].amount)), F("totalBorrow", T), F("totalSupply", (V - al)), F("totalReserve", W), F("storedIndex", S), F("storedHeight", height), Burn(fromBase58String(t), ae.payments[0].amount), if ((g == "WAVES")) | |
147 | 147 | then ScriptTransfer(ae.caller, al, unit) | |
148 | 148 | else ScriptTransfer(ae.caller, al, fromBase58String(g))], al) | |
149 | 149 | else throw("Pool liquidity is not sufficient!") | |
150 | 150 | } | |
151 | 151 | else throw("Address does not match with wavetroller address!") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | ||
155 | 155 | @Callable(ae) | |
156 | 156 | func lockAsCollateral (af) = if (z(ae.caller)) | |
157 | 157 | then { | |
158 | 158 | let am = (H(af) + ae.payments[0].amount) | |
159 | 159 | $Tuple2([F((af + "_locked"), am), F("totalBorrow", T), F("totalSupply", V), F("totalReserve", W), F("storedIndex", S), F("storedHeight", height)], ((toString(ae.payments[0].amount) + u) + "were successfully locked")) | |
160 | 160 | } | |
161 | 161 | else throw("Address does not match with wavetroller address!") | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | ||
165 | 165 | @Callable(ae) | |
166 | 166 | func setup (an,ao,m,ap,aq) = if (!(isDefined(getString(this, "configAddress")))) | |
167 | 167 | then { | |
168 | 168 | let ar = Issue(ap, aq, 0, 8, true) | |
169 | 169 | let as = calculateAssetId(ar) | |
170 | 170 | [ar, C("assetId", an), C("configAddress", ao), IntegerEntry("totalBorrow", 0), IntegerEntry("totalSupply", 0), IntegerEntry("totalReserve", 0), IntegerEntry("storedIndex", b), IntegerEntry("storedHeight", height), IntegerEntry("baseExchangeRate", m), C("dTokenName", ap), C("dTokenId", toBase58String(as)), IntegerEntry("dTokenDecimals", 8), IntegerEntry("dTokenSupply", 0)] | |
171 | 171 | } | |
172 | 172 | else throw("Pool already setup!") | |
173 | 173 | ||
174 | 174 | ||
175 | - | @Verifier(at) | |
176 | - | func au () = sigVerify(at.bodyBytes, at.proofs[0], at.senderPublicKey) | |
175 | + | ||
176 | + | @Callable(ae) | |
177 | + | func writeIntegerEntry (D,at) = if (x(ae.caller)) | |
178 | + | then [IntegerEntry(D, at)] | |
179 | + | else throw("Caller is not an admin!") | |
180 | + | ||
181 | + | ||
182 | + | @Verifier(au) | |
183 | + | func av () = sigVerify(au.bodyBytes, au.proofs[0], au.senderPublicKey) | |
177 | 184 |
github/deemru/w8io/026f985 37.38 ms ◑