Skip to content

Commit

Permalink
added deposit address for hot wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
sashazykov committed Feb 15, 2014
1 parent d5ebc39 commit 5c4d061
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/controllers/home_controller.rb
Expand Up @@ -27,7 +27,10 @@ def blockchain_info_callback
return
end

if project = Project.find_by_bitcoin_address(params[:input_address])
if params[:input_address] == CONFIG['deposit_address']
# Deposit from the cold wallet
render :text => "*ok*"
elsif project = Project.find_by_bitcoin_address(params[:input_address])
if !test
deposit = Deposit.create({
project_id: project.id,
Expand Down
6 changes: 4 additions & 2 deletions config/config.yml.sample
@@ -1,6 +1,6 @@
github:
key: "111111111111"
secret: "111111111111"
secret: "111111111111"

blockchain_info:
guid: "111111111111"
Expand Down Expand Up @@ -30,4 +30,6 @@ smtp_settings:

tip: 0.01
min_payout: 100000
our_fee: 0.05
our_fee: 0.05

deposit_address: 1M4bS4gPyA6Kb8w7aXsgth9oUZWcRk73tQ

0 comments on commit 5c4d061

Please sign in to comment.