Conduct a POC
inFactor : How to conduct POC
1. Setup a MasterNode * Prerequisite
- 1.Operating System : Ubuntu 16.04 64-bit or higher. Should be facing internet directly with public IP & without NAT
- 2.Tools: Git, Docker, Docker Compose
- 3.Network Ports
Following network ports need to be open for the nodes to communicate.
How to Setup Masternode ?
0. Install Git
- Check whether git is preinstalled.git --version
If present, output will be something like
git version 2.17.1. in this case, go to step a.
- Otherwise follow the below steps.sudo apt updatesudo apt install gitgit --version
a. Clone repository
Run the following commands on your terminal.
git clone [https://github.com/XinFinOrg/XinFin-Node.git](https://github.com/XinFinOrg/XinFin-Node.git)
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 followingINSTANCE_NAME : A Display name of your masternodeCONTACT_DETAILS : Your Email ID
d. Start your Node
sudo docker-compose -f docker-services.yml up -d
This will start a Masternode and connect to a XinFin Testnet.
Your coinbase address can be found in xdcchain/coinbase.txt file.
2. Stake XDC
1. Create XDC 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)_
Could not load image
2. Buy XDC
a. Get your free XDC to use on XinFin Testnet_
c. Add your wallet address created in step 2.b and request XDC._
3. Upload KYC
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.
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.
- 1.Supplier uploads invoice details and related documents.
- 1.Buyer verifies invoice authenticity and approves/rejects invoice.
- 1.Supplier selects an approved invoice for factoring. All financiers on the platform receive new factoring notification.
- 2.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.
- 1.Supplier approves the factoring proposal and the notification is sent to selected financier.
- 2.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.
- 1.Buyer pays invoice amount to financier.
- 2.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.
- 1.Financier and Supplier can rate each other.