create a bep20 contract address
Budget: $30 – $250 USD
can you create a bep20 contract address that have special function?
functions:
1) deposit
-this function is for user to deposit bnb into this contract address
2) withdrawal function for everyone, not just owner
-I have a affiliate system, which will give out commission if you refer others to make deposit into this contract address.
-To be able to join this affiliate system, you also need to have deposited bnb.
-And those people can call the withdrawal function to withdraw out their commission, but no matter what they cannot withdraw their deposit amount.
For example:
1) I deposited 100bnb, and refer this program to others, and received 80bnb as commission, then I will be able to withdraw 80bnb only
2) if I received 200bnb as commission, then I can be able to withdraw 200bnb only
3)if i didnt receive any commission, 0 bnb, then I cant withdraw anything, even though I have deposited 100bnb
* I not sure how to do this type of withdrawal function, but I think there are 2 methods.
A) If it is possible to do it securely. BNB balance in contract address, can only withdraw by owner in default, but if we can somehow allow a certain users to withdraw the contract amount? for example, I will create a API in our server for contract address to check whether this BSC user address able to withdraw this amount of money.
B) create another function that calculate the balance of every users that deposit bnb. So they can only withdraw their balance received from commission. meaning create this affiliate program inside this contract.
the affiliate is actually quite easy, it is just payout commission to the one before you that make deposit.
For example, commission is 10%, (1 LEVEL) , and if user A make deposit 10 bnb, then after that user B make 100 bnb, and after that user C deposit 50 bnb and user D deposit 80 bnb:
then USER A will receive 10bnb when user B deposit 100bnb
USER B will receive 5 BNB because user C deposit 50bnb
USER C will receive 8 BNB because user D deposit 80 BNB
and USER D will receive 10% when another new user deposit BNB
all this users didnt know each other, one can be in USA, another in CHINA, LONDON, or INDIA
This is just an example commission, the actually commission is more than 10% and have 10 LEVEL, instead of 1 LEVEL
functions:
1) deposit
-this function is for user to deposit bnb into this contract address
2) withdrawal function for everyone, not just owner
-I have a affiliate system, which will give out commission if you refer others to make deposit into this contract address.
-To be able to join this affiliate system, you also need to have deposited bnb.
-And those people can call the withdrawal function to withdraw out their commission, but no matter what they cannot withdraw their deposit amount.
For example:
1) I deposited 100bnb, and refer this program to others, and received 80bnb as commission, then I will be able to withdraw 80bnb only
2) if I received 200bnb as commission, then I can be able to withdraw 200bnb only
3)if i didnt receive any commission, 0 bnb, then I cant withdraw anything, even though I have deposited 100bnb
* I not sure how to do this type of withdrawal function, but I think there are 2 methods.
A) If it is possible to do it securely. BNB balance in contract address, can only withdraw by owner in default, but if we can somehow allow a certain users to withdraw the contract amount? for example, I will create a API in our server for contract address to check whether this BSC user address able to withdraw this amount of money.
B) create another function that calculate the balance of every users that deposit bnb. So they can only withdraw their balance received from commission. meaning create this affiliate program inside this contract.
the affiliate is actually quite easy, it is just payout commission to the one before you that make deposit.
For example, commission is 10%, (1 LEVEL) , and if user A make deposit 10 bnb, then after that user B make 100 bnb, and after that user C deposit 50 bnb and user D deposit 80 bnb:
then USER A will receive 10bnb when user B deposit 100bnb
USER B will receive 5 BNB because user C deposit 50bnb
USER C will receive 8 BNB because user D deposit 80 BNB
and USER D will receive 10% when another new user deposit BNB
all this users didnt know each other, one can be in USA, another in CHINA, LONDON, or INDIA
This is just an example commission, the actually commission is more than 10% and have 10 LEVEL, instead of 1 LEVEL