Improve Github comment

This commit is contained in:
Teemu Patja 2017-08-23 15:12:53 +03:00
parent 881e79477f
commit 2280c34ee8
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 7 additions and 7 deletions

View File

@ -115,7 +115,7 @@
url-base (:server-address env)] url-base (:server-address env)]
(log/debug "url-base" url-base) (log/debug "url-base" url-base)
(filter (fn [{{url :url} :config}] (and url (str/starts-with? url url-base))) (filter (fn [{{url :url} :config}] (and url (str/starts-with? url url-base)))
hooks))) hooks)))
(defn webhook-exists? (defn webhook-exists?
@ -191,10 +191,10 @@
(defn token-balances-text [token-balances] (defn token-balances-text [token-balances]
(when-not (empty? token-balances) (when-not (empty? token-balances)
(str "Tokens: " (str "Tokens: "
(str/join "\n\t" (map (fn [[tla balance]] (format "%s: %.2f" (str/join " " (map (fn [[tla balance]] (format "%s: %.2f"
(subs (str tla) 1) (subs (str tla) 1)
(float balance))) (float balance)))
token-balances)) token-balances))
"\n"))) "\n")))
(defn generate-open-comment (defn generate-open-comment
@ -208,8 +208,8 @@
(network-text) (network-text)
"To claim this bounty sign up at %s\n" "To claim this bounty sign up at %s\n"
(if (on-testnet?) (if (on-testnet?)
"To fund it, send test ETH or test ERC20 tokens to the contract address." "To fund it, send test ETH or test ERC20/ERC223 tokens to the contract address."
"To fund it, send ETH or ERC20 tokens to the contract address.")) "To fund it, send ETH or ERC20/ERC223 tokens to the contract address."))
eth-balance contract-address image-url site-url))) eth-balance contract-address image-url site-url)))