text: /*jslint node: true */
  "use strict";
  var headlessWallet = require('../start.js');
  var eventBus = require('lcp_lib/event_bus.js');
  
  
  function claimBack(){
  	headlessWallet.readFirstAddress(address => {
  		var Wallet = require('lcp_lib/wallet.js');
  		Wallet.claimBackOldTextcoins(address, 7);
  	});
  }
  
  eventBus.on('headless_wallet_ready', claimBack);
  