Bitcoin Forum
May 11, 2024, 02:36:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Re: How Cryptonfly will help to Ethereum on: July 25, 2016, 08:36:03 PM
Which Ethereum should we use? Smiley

ETH or ETC?

Both will work for us, but which one is better?
2  Alternate cryptocurrencies / Altcoin Discussion / Re: How Cryptonfly will help to Ethereum on: June 23, 2016, 10:49:43 PM
Hmm. Not really what I'm looking for. I was thinking Cron (this is your currency, right?) is something like time=money concept. It could potentially become a good fit for social projects, communities, individual services.

The best way for you is to issue your additional coin, which will be backed by your services/goods/time.

You can easily start an exchange, and people will trade your coin to CRON/BTC/USD/EUR. For example, if you are a teacher and your lessons are good, your coin price will grow.

Other people will issue their coins and people will exchange one coin to other.

But there is no way to make one "universal" backed by time coin! Each person/company have to issue their own coin.
3  Alternate cryptocurrencies / Altcoin Discussion / Re: How Cryptonfly will help to Ethereum on: June 23, 2016, 10:40:25 PM
Do you have your API prototype?
Will provide customization of mobile APP, or it will be your "brand"?

CRON coin will be started as an Ethereum contract. So, anyone can start giving away his coins. Smiley

Cryptonfly mobile application will distribute ~10% of coins to users for their checking in at foursquare places.

If you are a PoS, you may give discount for CRON, or you may give some CRON to your customers as a bonus.
4  Alternate cryptocurrencies / Altcoin Discussion / Re: ETH hardfork incoming. on: June 18, 2016, 01:46:08 PM
It is high time the community to alert thieves that will not be tolerated. To attract people to the idea of bitkoin must observe basic human norms.

What will be next step? Court of any country?

I also agree that thieves should not get stolen eth, but hardfork is the worst ideas.
5  Alternate cryptocurrencies / Altcoin Discussion / Re: ETH hardfork incoming. on: June 18, 2016, 08:12:27 AM
We were about to run our project on Ethereum.

After hard fork I'm not sure it is a good idea.

I don't understand how can anyone use blockchain which could be hardforked by creator's decision. Sad
6  Alternate cryptocurrencies / Altcoin Discussion / Re: How Cryptonfly will help to Ethereum on: June 18, 2016, 03:34:27 AM
Now some info about main Eth contract.

ApplicationInfo stores info about application: balance address of contract (not user!!!) which calculates reward. Each application is identified by uint16, so there could be at most 65536 applications which give coins to users. Cryptonfly application will have id=0.

User structure stores user balance and activity data for each application.

Quote
   struct ApplicationInfo {
        address owner;
        uint64 balance;
    }

    struct ApplicationUserData {
        uint32 activity_id;
        uint24 last_10min;
        int8 user_status;
    }

    struct User {
        uint64 balance;
        mapping (uint16 => ApplicationUserData) app_data;
    }

    mapping (uint16 => ApplicationInfo) apps;
    mapping(address => User) users;

And here are some public methods.
Code:
function register_application(uint16 app_id, address app_contract);
function change_application_owner(uint16 app_id, address to_app_contract);

To register application you have to take any unused app_id and to burn some CRON coins. We require to burn some coins, because otherwise spammers will register all ids.

All applications can change their user status:
Code:
function change_user_status(address usr, uint16 app_id, int8 nstatus);

All users can move CRON coins without any fees and conditions. But they have to have some gas. Smiley Your application can sell gas or give it for free. Smiley

Code:
// msg.sender tranfers some coins to "to_usr" address
function transfer(address to_usr, uint64 amount);

And the most important methods are these:
Code:
function send_reward(address to_usr, uint16 app_id, uint32 new_activity_id);
function get_reward(uint16 app_id, uint32 new_activity_id);

First (send_reward) is called by app_id owner, second one should be called by any user to claim reward himself.

Of course, these are not all methods of our contract. We will open source code soon.
7  Alternate cryptocurrencies / Altcoin Discussion / Re: How Cryptonfly will help to Ethereum on: June 18, 2016, 03:05:30 AM
Hello! My name is Arvidas and I'm Cryptonfly Ethereum developer. Smiley

I would like to show you some details on our contract implementations. Of course, your suggestions are welcome!

First of all, our Ethereum application will be 100% decentralized and NOT controlled by our team after start. After initial coin distribution, everyone can create a contract, put some coins and allow users to mine them with his app. To do this, you will have to code an inherited contract on CFBasePartnerContract, which looks like this:

Code:
contract CFBasePartnerContract {
    function get_owner() returns (address);
    function get_reward(uint64 balance, uint24 user_last_10min, int8 user_status, bool by_owner) returns (uint64);
}

This contract should have only two methods — return an owner of it and provide a function that will calculate a reward for user action. This function have 4 params:
* balance — amount of coins contract has (user reward can't be more than your application balance)
* user_last_10min — timestamp / 600 of last user action. We decided to use unsigned 24-bit integer to use less space on Eth blockchain.
* user_status — any number, your application can change status of any user. For example: -1 for banned, 0 — new/unregistered, 1 — verified, etc...
* by_owner — is reward paid by you centralized application or user claims bounty himself. You may ignore this param or allow your application to send coins only centralized way.

Here is an example of our application contract, a draft version of it:

Code:
contract DraftCryptonflyCheckinAppContract is CFBasePartnerContract {
    address owner;
    uint64 initial_amount = 10000000000000000;
    uint64 step           = 100000000000000;
    
    function DraftCryptonflyCheckinAppContract() {
        owner = msg.sender;
    }
    
    function get_owner() returns (address) {
        return owner;
    }
    
    function get_reward(uint64 balance, uint24 user_last_10min, int8 user_status, bool by_owner) returns (uint64) {
        if (user_status <= 0) return 0;
        if (uint24(now / 600) - user_last_10min < 60 * 8) return 0;

        if (balance > initial_amount) balance = initial_amount;
        uint64 coinsDistributed = initial_amount - balance;

        uint32 reward = 100000000;
        for (uint8 i = 0; i < coinsDistributed / 100000000000000; i++) {
            reward = reward * 99 / 100;
        }

        if (reward > balance) return 0;

        return reward;
    }
}

How it works? We initially reserve 10 000 000 coins, and pay first 100 000 checkins for 1 coin. After that we pay 0.99 for checkin, then  0.99^2 = 0.9801, etc... (Numbers are given as example, exact values will be announced later.)

We check user_status to be more than 0, that means only registered users of our mobile application will be allowed to claim reward. We will verify mobile phones and then put user status to 1.

One more condition: we allow only one checkin with our application in 8 hour period.

Others applications can code other conditions.

Next post will be about our main contract! Smiley
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!