]>
Commit | Line | Data |
---|---|---|
287efad4 | 1 | /****************************************************************************** |
2 | * Copyright © 2014-2018 The SuperNET Developers. * | |
3 | * * | |
4 | * See the AUTHORS, DEVELOPER-AGREEMENT and LICENSE files at * | |
5 | * the top-level directory of this distribution for the individual copyright * | |
6 | * holder information and the developer policies on copyright and licensing. * | |
7 | * * | |
8 | * Unless otherwise agreed in a custom licensing agreement, no part of the * | |
9 | * SuperNET software, including this file may be copied, modified, propagated * | |
10 | * or distributed except according to the terms contained in the LICENSE file * | |
11 | * * | |
12 | * Removal or modification of this copyright notice is prohibited. * | |
13 | * * | |
14 | ******************************************************************************/ | |
15 | ||
16 | ||
17 | #ifndef CC_REWARDS_H | |
18 | #define CC_REWARDS_H | |
19 | ||
20 | #include "CCinclude.h" | |
21 | ||
22 | #define EVAL_REWARDS 0xe5 | |
0c3cdfb4 | 23 | #define REWARDSCC_MAXAPR (COIN * 25) |
287efad4 | 24 | |
4ecaf167 | 25 | bool RewardsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx, uint32_t nIn, bool fulfilled); |
fdd22810 | 26 | UniValue RewardsInfo(uint256 rewardid); |
27 | UniValue RewardsList(); | |
287efad4 | 28 | |
46bbc433 | 29 | std::string RewardsCreateFunding(uint64_t txfee,char *planstr,int64_t funds,int64_t APR,int64_t minseconds,int64_t maxseconds,int64_t mindeposit); |
30 | std::string RewardsAddfunding(uint64_t txfee,char *planstr,uint256 fundingtxid,int64_t amount); | |
31 | std::string RewardsLock(uint64_t txfee,char *planstr,uint256 fundingtxid,int64_t amount); | |
c4e7f616 | 32 | std::string RewardsUnlock(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 locktxid); |
287efad4 | 33 | |
34 | #endif |