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/BAAAAAAAADWJsb2Nrc1BlclllYXIAAAAAAAAIBSAAAAAABmNvbmZpZwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAA1jb25maWdBZGRyZXNzAgAAAAAAAAAABWFkbWluCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAAAAAAAALd2F2ZXRyb2xsZXIJAQAAAAt2YWx1ZU9yRWxzZQAAAAIJAAQdAAAAAgkBAAAAEUBleHRyTmF0aXZlKDEwNjIpAAAAAQUAAAAGY29uZmlnAgAAAAt3YXZldHJvbGxlcgIAAAAAAAAAAAphc3NldElkU3ViCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAEdGhpcwIAA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AAAA5kVG9rZW5EZWNpbWFscwAAAAAAAAAACAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAMZFRva2VuU3VwcGx5AAAAAAAAAAAABQAAAANuaWwJAAACAAAAAQIAAAATUG9vbCBhbHJlYWR5IHNldHVwIQAAAAFpAQAAABF3cml0ZUludGVnZXJFbnRyeQAAAAIAAAADa2V5AAAABWVudHJ5AwkBAAAADmlzQWRtaW5BZGRyZXNzAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAANrZXkFAAAABWVudHJ5BQAAAANuaWwJAAACAAAAAQIAAAAXQ2FsbGVyIGlzIG5vdCBhbiBhZG1pbiEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleaiJuQw=", "height": 1687248, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5iAVKj56dUnqCGbofVFBKpPip5tSFBM6zMgZgN1ZsZv9 Next: 35be9FbRqrz9KCkjbGSAYMwi1UxRwJ6a3FF72WKjueqU Diff:
OldNewDifferences
172172 else throw("Pool already setup!")
173173
174174
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)
177184
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 1000
55
66 let b = 10000000000000000
77
88 let c = 525600
99
1010 let d = valueOrElse(getString(this, "configAddress"), "")
1111
1212 let e = valueOrElse(getString(addressFromStringValue(d), "admin"), "")
1313
1414 let f = valueOrElse(getString(addressFromStringValue(d), "wavetroller"), "")
1515
1616 let g = valueOrErrorMessage(getString(this, "assetId"), "No assetId could be found in data storage!")
1717
1818 let h = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Decimals")), (("No key " + (g + "_Decimals")) + " was found"))
1919
2020 let i = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Multiplier")), (("No key " + (g + "_Multiplier")) + " was found"))
2121
2222 let j = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_Kink")), (("No key " + (g + "_Kink")) + " was found"))
2323
2424 let k = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_JumpMultiplier")), (("No key " + (g + "_JumpMultiplier")) + " was found"))
2525
2626 let l = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_BaseRate")), (("No key " + (g + "_BaseRate")) + " was found"))
2727
2828 let m = valueOrErrorMessage(getInteger(this, "baseExchangeRate"), "No key baseExchangeRate was found")
2929
3030 let n = valueOrErrorMessage(getInteger(addressFromStringValue(d), (g + "_ReserveFactor")), (("No key " + (g + "_ReserveFactor")) + " was found"))
3131
3232 let o = valueOrElse(getInteger(this, "totalBorrow"), 0)
3333
3434 let p = valueOrElse(getInteger(this, "totalSupply"), 0)
3535
3636 let q = valueOrElse(getInteger(this, "totalReserve"), 0)
3737
3838 let r = valueOrErrorMessage(getInteger(this, "dTokenSupply"), "No key dTokenSupply was found")
3939
4040 let s = valueOrErrorMessage(getInteger(this, "dTokenDecimals"), "No key dTokenDecimals was found")
4141
4242 let t = valueOrErrorMessage(getString(this, "dTokenId"), "No key dTokenId was found")
4343
4444 let u = valueOrErrorMessage(getString(this, "dTokenName"), "No key dTokenName was found")
4545
4646 let v = valueOrElse(getInteger(this, "storedHeight"), height)
4747
4848 let w = valueOrElse(getInteger(this, "storedIndex"), 10000000000000000)
4949
5050 func x (y) = if ((addressFromStringValue(e) == y))
5151 then true
5252 else false
5353
5454
5555 func z (y) = if ((addressFromStringValue(f) == y))
5656 then true
5757 else false
5858
5959
6060 func A (B) = if ((B == g))
6161 then true
6262 else false
6363
6464
6565 func C (D,E) = StringEntry(D, E)
6666
6767
6868 func F (D,G) = IntegerEntry(D, G)
6969
7070
7171 func H (I) = valueOrElse(getInteger(this, (I + "_locked")), 0)
7272
7373
7474 let J = if ((p > 0))
7575 then fraction(o, a, p)
7676 else 0
7777
7878 let K = {
7979 let L = [J, j]
8080 let M = min(L)
8181 let N = [0, (J - j)]
8282 let O = max(N)
8383 ((fraction(i, M, a) + fraction(k, O, a)) + l)
8484 }
8585
8686 let P = fraction(fraction(K, J, a), (a - n), a)
8787
8888 let Q = fraction(K, b, (c * a))
8989
9090 let R = (height - v)
9191
9292 let S = fraction(w, (b + (Q * R)), b, CEILING)
9393
9494 let T = fraction(o, S, w)
9595
9696 let U = fraction(o, (Q * R), b)
9797
9898 let V = (p + fraction((a - n), U, a))
9999
100100 let W = (q + fraction(n, U, a))
101101
102102 let X = if ((r > 0))
103103 then {
104104 let Y = ((18 - s) + h)
105105 let Z = pow(10, 0, Y, 0, 0, CEILING)
106106 fraction(V, Z, r)
107107 }
108108 else m
109109
110110 func aa (ab) = {
111111 let Y = ((18 - s) + h)
112112 let Z = pow(10, 0, Y, 0, 0, CEILING)
113113 fraction(ab, Z, X)
114114 }
115115
116116
117117 func ac (ad) = {
118118 let Y = ((18 - s) + h)
119119 let Z = pow(10, 0, Y, 0, 0, CEILING)
120120 fraction(ad, X, Z)
121121 }
122122
123123
124124 @Callable(ae)
125125 func deposit (af,ag) = if (z(ae.caller))
126126 then {
127127 let ah = aa(ae.payments[0].amount)
128128 let ai = (r + ah)
129129 if (ag)
130130 then {
131131 let aj = (H(af) + ah)
132132 $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"))
133133 }
134134 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)
135135 }
136136 else throw("Address does not match with wavetroller address!")
137137
138138
139139
140140 @Callable(ae)
141141 func withdraw (af) = if (z(ae.caller))
142142 then {
143143 let ak = (V - T)
144144 let al = ac(ae.payments[0].amount)
145145 if ((ak >= al))
146146 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"))
147147 then ScriptTransfer(ae.caller, al, unit)
148148 else ScriptTransfer(ae.caller, al, fromBase58String(g))], al)
149149 else throw("Pool liquidity is not sufficient!")
150150 }
151151 else throw("Address does not match with wavetroller address!")
152152
153153
154154
155155 @Callable(ae)
156156 func lockAsCollateral (af) = if (z(ae.caller))
157157 then {
158158 let am = (H(af) + ae.payments[0].amount)
159159 $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"))
160160 }
161161 else throw("Address does not match with wavetroller address!")
162162
163163
164164
165165 @Callable(ae)
166166 func setup (an,ao,m,ap,aq) = if (!(isDefined(getString(this, "configAddress"))))
167167 then {
168168 let ar = Issue(ap, aq, 0, 8, true)
169169 let as = calculateAssetId(ar)
170170 [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)]
171171 }
172172 else throw("Pool already setup!")
173173
174174
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)
177184

github/deemru/w8io/026f985 
37.38 ms