From 26a79d83401185be4b06af5c532b1489a500e766 Mon Sep 17 00:00:00 2001 From: marcdeb1 <29503179+marcdeb1@users.noreply.github.com> Date: Fri, 19 Oct 2018 23:00:50 +0800 Subject: [PATCH] Lbry addresses (#35) * Added logo to indicate addresses owned by LBRY --- src/Controller/MainController.php | 8 +++++--- src/Template/Main/stats.ctp | 5 +++++ webroot/img/lbry.png | Bin 0 -> 2651 bytes 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 webroot/img/lbry.png diff --git a/src/Controller/MainController.php b/src/Controller/MainController.php index 9c532d0..e301611 100644 --- a/src/Controller/MainController.php +++ b/src/Controller/MainController.php @@ -508,12 +508,13 @@ class MainController extends AppController { $richList = $this->Addresses->find()->where(['Address <>' => 'bHW58d37s1hBjj3wPBkn5zpCX3F8ZW3uWf'])->order(['Balance' => 'DESC'])->limit(500)->toArray(); $priceRate = 0; - $priceInfo = json_decode($this->redis->get(self::lbcPriceKey)); + //$priceInfo = json_decode($this->redis->get(self::lbcPriceKey)); + $priceInfo->price = 0.05; if (isset($priceInfo->price)) { $priceRate = $priceInfo->price; } - - // calculate percentages + + $lbryAddresses = ['rFLUohPG4tP3gZHYoyhvADCtrDMiaYb7Qd', 'r9PGXsejVJb9ZfMf3QVdDEJCzxkd9JLxzL', 'r9srwX7DEN7Mex3a8oR1mKSqQmLBizoJvi', 'bRo4FEeqqxY7nWFANsZsuKEWByEgkvz8Qt', 'bU2XUzckfpdEuQNemKvhPT1gexQ3GG3SC2', 'bay3VA6YTQBL4WLobbG7CthmoGeUKXuXkD', 'bLPbiXBp6Vr3NSnsHzDsLNzoy5o36re9Cz', 'bMvUBo1h5WS46ThHtmfmXftz3z33VHL7wc', 'bVUrbCK8hcZ5XWti7b9eNxKEBxzc1rr393', 'bZja2VyhAC84a9hMwT8dwTU6rDRXowrjxH', 'bMvUBo1h5WS46ThHtmfmXftz3z33VHL7wc', 'bMgqQqYfwzWWYBk5o5dBMXtCndVAoeqy6h']; $totalBalance = 0; $maxBalance = 0; $minBalance = 0; @@ -531,6 +532,7 @@ class MainController extends AppController { $this->set('richList', $richList); $this->set('rate', $priceRate); + $this->set('lbryAddresses', $lbryAddresses); } public function address($addr = null) { diff --git a/src/Template/Main/stats.ctp b/src/Template/Main/stats.ctp index e10122d..84609c2 100644 --- a/src/Template/Main/stats.ctp +++ b/src/Template/Main/stats.ctp @@ -48,6 +48,11 @@ Address ?> + Address, $lbryAddresses)): ?> + + + + Tag) && strlen(trim($item->Tag)) > 0): ?>
TagUrl)) > 0): ?>Tag ?>Tag; endif; ?> diff --git a/webroot/img/lbry.png b/webroot/img/lbry.png new file mode 100644 index 0000000000000000000000000000000000000000..dc58a66ad3999721ac682b9dc7e4692bd54699d7 GIT binary patch literal 2651 zcmV-h3Z(UkP)O<|;?LPKBDr%z>k*C?beMqL^k*E6uEIy4`MeSA*Tk zn`Pyk1Ez@rP8=x5awx@HPC1ZMrics&5I6^(`$rtE1DY;1d;i+&eD6N{dA|L8-}k)l zHn>e82>`<|kmL$H48#M~fv*88kYgBz_$!AbZ%Lm>DlRB2(!nD~RT29oO_S98O44^5 z@TJ!iB%PC_T^W1TD=uEXkx`oR&o`Bmm**ssC+TBJ)o#c0java;Ar}L92$%x|+X@Q# zbny~CTeKLr8a426cPHOw!|rhK#K2hMV+T;*>pomvT><`4ao-ukFv|WE0#|6gE-(d{ z47e>%S<9TI2^>6nlqQWD5*OW{P8~Y1HvMZ-($YD5{yYu5yyzJcOhi~HT^{ZTkOM3R z<{5^u`_jp|)6$8nkW2Zo6DJk@PRn^Q7!I2_8#&errP-7mQVU7d|A>rn6I!nYj02tl z8m!;AiTPiyVEgXf)Tv#Y!TlnMkBy;$m)8wVO6JLvBwN#2la|i@!-u)2RxQkazC?tD z5*px-tBZ>rSPslL48wY*d~bHveI)%PsoYjjpfOWlmQRmfY8?=)fnz7==r6}rR#v8) zjq>tx<>u#WdGZ={jfhk$|6uuq_fq7DQQEL+voozo(g8_PHzchqfZr?WLrE$rEmcyg zRqf5)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