Conduct a POC
inFactor : How to conduct POC
1. Setup a MasterNode * Prerequisite
Operating System : Ubuntu 16.04 64-bit or higher. Should be facing internet directly with public IP & without NAT
Tools: Git, Docker, Docker Compose
Network Ports
Following network ports need to be open for the nodes to communicate.
Port | Type | Definition |
8545 | TCP | RPC |
30303 | TCP/UDP | XDC |
How to Setup Masternode ?
0. Install Git
Check whether git is preinstalled.
If present, output will be something like git version 2.17.1
. in this case, go to step a.
Otherwise follow the below steps.
Configure Git.
a. Clone repository
Run the following commands on your terminal.
The git clone command will create a new folder XinFin-Node. cd XinFin-Node command changes the current directory to XinFin-Node
b. Install docker & docker-compose
The above command will install docker and docker-compose for you.
c. Update .env file with details
Copy a env.example file from XinFin-Node directory and name it as a .env
Open .env file and edit values for following
d. Start your Node
This will start a Masternode and connect to a XinFin Testnet.
You should be able to see your node listed on this page: http://Xinfin.Network (Make sure, you are connected to XinFin Testnet. If not, switch to Testnet on top right corner.)
Your coinbase address can be found in xdcchain/coinbase.txt file.
2. Stake XDC
1. Create XDC Wallet
a. Visit [_http://xinfin.network/#webWallet](http://xinfin.network/#webWallet) _and Click on create a new wallet.
b. You can create use a web wallet or download eWallet app from Google Play Store.
c. Create an account
d. Store your private key at a safe place (Hardware wallet is recommended)_
2. Buy XDC
a. Get your free XDC to use on XinFin Testnet_
b. Visit XinFin TestNet Faucet [_http://xinfin.network/#getTestXDC](http://xinfin.network/#getTestXDC)_._
c. Add your wallet address created in step 2.b and request XDC._
3. Upload KYC
a. Visit [_http://xinfin.network/#masternode](http://xinfin.network/#masternode)
b. Upload a notarized kyc_
4. Become a Candidate
Add your account address and click on ‘Become a Candidate’ to become a masternode. You must have minimum 10 Million XDC in your account. Once your candidature is accepted your stake of 10 Million XDC is locked._
3. Factoring Process
In a typical factoring on infactor.io, there are 3 parties involved. Supplier, Buyer, and Financier. Supplier is a starting point. Supplier uploads Invoice, Buyer validates invoice, and Financier factors on invoice.
Register on http://infactor.io.
Choose your role(Supplier, Buyer, Financier)_
On successful registration, a wallet account is automatically created for you._
Note : To register, you must have uploaded KYC, staked XDC and you are a part of XDC Network by running a masternode. In case of any malicious activity, the staked XDC will be frozen.
Supplier uploads invoice details and related documents.
Buyer verifies invoice authenticity and approves/rejects invoice.
Supplier selects an approved invoice for factoring. All financiers on the platform receive new factoring notification.
Financer sends a factoring proposal along with related documents to supplier. The proposal includes interest rate/month and the upfront payment percent of total invoice amount.
Supplier approves the factoring proposal and the notification is sent to selected financier.
Financier pays first payment to supplier as per factoring criteria.
Note : To transfer amount, a user has to load the amount into a wallet. A deposit functionality is present in user profile section.
Buyer pays invoice amount to financier.
A financier pays final payment(by deducting fees) to supplier.
Fee calculation is done on the basis of Interest Rate (As per factoring criteria) and payout date. If Buyer pays invoice amount earlier to financier, fees will be less and vice versa. The fees calculation is done on the smart contract.
Financier and Supplier can rate each other.
Last updated