tx · AoWCoxJ26T9LSHrydyXi5iTkBKZf2zowoDdm7qNrznM7

3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9:  -0.04000000 Waves

2021.08.25 00:11 [1672923] smart account 3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9 > SELF 0.00000000 Waves

{ "type": 13, "id": "AoWCoxJ26T9LSHrydyXi5iTkBKZf2zowoDdm7qNrznM7", "fee": 4000000, "feeAssetId": null, "timestamp": 1629839453286, "version": 2, "chainId": 84, "sender": "3NAToHPcRGMR4M2pUpy6gPcpiMX5via7vf9", "senderPublicKey": "5fe3Hm6UB8fRqvLYhGeeNdy7rEgwpxWjdEFPgnNwSRCz", "proofs": [ "Y5Kp7xkxKHNNDyZ3Hy6M1FeLYwJNAeVXR1GunUywbYeGJxijSCr7bjRQsPoKiswB1MvGiNa36yY6LYnVopLKkAJ" ], "script": "base64:AAIFAAAAAAAAABAIAhIECgIIBBIGCgQICAgIAAAAJgAAAAAKYmFzZUZhY3RvcgAAAAAAAAAD6AAAAAAJYmFzZUluZGV4AAAjhvJvwQAAAAAAAA1ibG9ja3NQZXJZZWFyAAAAAAAACAUgAAAAAAZjb25maWcJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACBQAAAAR0aGlzAgAAAA1jb25maWdBZGRyZXNzAgAAADFObyBjb25maWcgYWRkcmVzcyBjb3VsZCBiZSBmb3VuZCBpbiBkYXRhIHN0b3JhZ2UhAAAAAAVhZG1pbgkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEFAAAABmNvbmZpZwIAAAAFYWRtaW4CAAAAME5vIGFkbWluIGFkZHJlc3MgY291bGQgYmUgZm91bmQgaW4gZGF0YSBzdG9yYWdlIQAAAAALd2F2ZXRyb2xsZXIJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABB0AAAACCQEAAAARQGV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AAAAAAAFAAAAA25pbAkAAAIAAAABAgAAABNQb29sIGFscmVhZHkgc2V0dXAhAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmc8ub7", "height": 1672923, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7MBNuUuJ5mXuH84EAeHpxCxsqYz5k4jGbgdUfxRXGXSk Next: HxE5qSpgNJmC9ARAUoGDHMaSzDK9VdvDzLk4AKh6h8Cm Diff:
OldNewDifferences
124124
125125
126126 @Callable(Z)
127-func setup (af,ag,ah,ai) = if (if (!(isDefined("config")))
128- then !(isDefined("admin"))
127+func setup (af,ag,ah,ai) = if (if (!(isDefined(getString(this, "config"))))
128+ then !(isDefined(getString(this, "admin")))
129129 else false)
130130 then {
131131 let aj = Issue(ah, ai, 0, 8, true)
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 = valueOrErrorMessage(getString(this, "configAddress"), "No config address could be found in data storage!")
1111
1212 let e = valueOrErrorMessage(getString(addressFromStringValue(d), "admin"), "No admin address could be found in data storage!")
1313
1414 let f = valueOrErrorMessage(getString(addressFromStringValue(d), "wavetroller"), "No wavetroller address could be found in data storage!")
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(addressFromStringValue(d), (g + "_ReserveFactor")), (("No key " + (g + "_ReserveFactor")) + " was found"))
2929
3030 let n = valueOrErrorMessage(getInteger(this, "totalBorrow"), "No key totalBorrow was found")
3131
3232 let o = valueOrErrorMessage(getInteger(this, "totalSupply"), "No key totalSupply was found")
3333
3434 let p = valueOrErrorMessage(getInteger(this, "totalReserve"), "No key totalReserve was found")
3535
3636 let q = valueOrErrorMessage(getInteger(this, "dTokenSupply"), "No key dTokenSupply was found")
3737
3838 let r = valueOrErrorMessage(getInteger(this, "dTokenDecimals"), "No key dTokenDecimals was found")
3939
4040 let s = valueOrErrorMessage(getString(this, "dTokenId"), "No key dTokenId was found")
4141
4242 let t = valueOrErrorMessage(getInteger(this, "storedHeight"), "No key storedHeight was found")
4343
4444 let u = valueOrErrorMessage(getInteger(this, "storedIndex"), "No key storedIndex was found")
4545
4646 func v (w) = if ((addressFromStringValue(e) == w))
4747 then true
4848 else false
4949
5050
5151 func x (w) = if ((addressFromStringValue(f) == w))
5252 then true
5353 else false
5454
5555
5656 func y (z,A) = StringEntry(z, A)
5757
5858
5959 func B (z,C) = IntegerEntry(z, C)
6060
6161
6262 func D (E) = valueOrElse(getInteger(this, (E + "_tokenBalance")), 0)
6363
6464
6565 let F = fraction(n, a, o)
6666
6767 let G = {
6868 let H = [F, j]
6969 let I = min(H)
7070 let J = [0, (F - j)]
7171 let K = max(J)
7272 ((fraction(i, I, a) + fraction(k, K, a)) + l)
7373 }
7474
7575 let L = fraction(fraction(G, F, a), (a - m), a)
7676
7777 let M = fraction(G, b, (c * a))
7878
7979 let N = (height - t)
8080
8181 let O = fraction(u, (b + (M * N)), b, CEILING)
8282
8383 let P = fraction(n, O, u)
8484
8585 let Q = fraction(n, (M * N), b)
8686
8787 let R = (o + fraction((a - m), Q, a))
8888
8989 let S = (p + fraction(m, Q, a))
9090
9191 let T = if ((q > 0))
9292 then {
9393 let U = ((18 - 8) + h)
9494 if ((10 > U))
9595 then fraction(R, (1 * pow(10, 2, U, 1, 18, CEILING)), q)
9696 else fraction(R, (1 * pow(10, 2, U, 2, 18, CEILING)), q)
9797 }
9898 else {
9999 let V = (h + 6)
100100 if ((10 > V))
101101 then fraction(2, (1 * pow(10, 2, V, 1, 18, CEILING)), 1)
102102 else fraction(2, (1 * pow(10, 2, V, 2, 18, CEILING)), 1)
103103 }
104104
105105 func W (X) = {
106106 let U = ((18 - 8) + h)
107107 let Y = if ((10 > U))
108108 then 1
109109 else 2
110110 fraction(X, (1 * pow(10, 2, U, Y, 18, CEILING)), T)
111111 }
112112
113113
114114 @Callable(Z)
115115 func deposit (aa,ab) = if (x(Z.caller))
116116 then {
117117 let ac = W(Z.payments[0].amount)
118118 let ad = (q + ac)
119119 let ae = (D(aa) + ac)
120120 [Reissue(fromBase58String(s), ac, true), B("dTokenSupply", ad), B((aa + "_tokenBalance"), ae), BooleanEntry((aa + "_useAsCollateral"), ab), B("totalBorrow", P), B("totalSupply", (R + Z.payments[0].amount)), B("totalReserve", S), B("storedIndex", O), B("storedHeight", height), ScriptTransfer(Z.caller, ac, fromBase58String(s))]
121121 }
122122 else throw("Address does not match with wavetroller address!")
123123
124124
125125
126126 @Callable(Z)
127-func setup (af,ag,ah,ai) = if (if (!(isDefined("config")))
128- then !(isDefined("admin"))
127+func setup (af,ag,ah,ai) = if (if (!(isDefined(getString(this, "config"))))
128+ then !(isDefined(getString(this, "admin")))
129129 else false)
130130 then {
131131 let aj = Issue(ah, ai, 0, 8, true)
132132 let ak = calculateAssetId(aj)
133133 [y("assetId", af), y("configAddress", ag), IntegerEntry("totalBorrow", 0), IntegerEntry("totalSupply", 0), IntegerEntry("totalReserve", 0), IntegerEntry("storedIndex", b), IntegerEntry("storedHeight", height), y("dTokenName", ah), y("dTokenId", toBase58String(ak)), IntegerEntry("dTokenDecimals", 8), IntegerEntry("dTokenSupply", 0)]
134134 }
135135 else throw("Pool already setup!")
136136
137137
138138 @Verifier(al)
139139 func am () = sigVerify(al.bodyBytes, al.proofs[0], al.senderPublicKey)
140140

github/deemru/w8io/169f3d6 
33.42 ms