It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
contract EBNK {
mapping (address => uint) public x_actions;
uint percFee = 1;
uint percOpFee = 5;
uint actionPrice;
uint actionCount = 0;
address owner;
uint ownerFee;
modifier onlyOwner{
if (msg.sender != owner)
revert();
_;
}
function EBNK() public {
owner = msg.sender;
}
function getActionCount() public constant returns (uint) {
return actionCount;
}
function getActionPrice() public constant returns (uint) {
return actionPrice;
}
function getMyAction() public constant returns (uint) {
return x_actions[msg.sender];
}
function getMyBalance() public constant returns (uint){
return getMyAction() * actionPrice;
}
function deposit() public payable {
require(x_actions[msg.sender] == 0);
require(msg.value > 0);
uint dep = msg.value;
uint total = this.balance - ownerFee - msg.value;
uint ownerFeeNow = dep / 100 * percFee;
ownerFee += ownerFeeNow;
if(actionCount == 0)
{
actionPrice = 100000000;
dep -= ownerFeeNow;
x_actions[msg.sender] = dep / actionPrice;
actionCount += x_actions[msg.sender];
}else{
uint opFee = dep / 100 * percOpFee;
dep -= opFee;
uint summ = total + opFee - ownerFeeNow;
actionPrice = (summ-(summ % actionCount)) / actionCount;
x_actions[msg.sender] = (dep-(dep % actionPrice)) / actionPrice;
actionCount += x_actions[msg.sender];
}
}
function withdrawal() public payable {
uint dep = getMyBalance();
actionCount -= x_actions[msg.sender];
x_actions[msg.sender] = 0;
uint ownerFeeNow = dep / 100 * percFee;
ownerFee += ownerFeeNow;
uint opFee = dep / 100 * percOpFee;
if(actionCount == 0)
{
dep = dep - ownerFeeNow;
}else{
dep = dep - opFee;
uint summ = (this.balance - ownerFee - dep);
actionPrice = (summ-(summ % actionCount)) / actionCount;
}
msg.sender.send(dep);
}
function getOwnerFee() public onlyOwner constant returns (uint) {
return ownerFee;
}
function withdrawalOwner(uint _amount) public onlyOwner {
require(_amount <= ownerFee);
if(_amount == 0)
_amount = ownerFee;
ownerFee -= _amount;
if(!owner.send(_amount))
{
ownerFee += _amount;
}
}
function getBalance() constant returns (uint) {
return this.balance;
}
}