You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admin can create distribution to winners he has selected.
Distribution through Smart contracts in two ways
He can create tokens ie(erc20,erc721,eth) by deploying smart contract from Fyre
If he has smart contract already then he can enter contract address in the UI and on his behalf we call approve function to his contract
-> For the 2 one is if contract is ERC721 token then in ERC721 standard we have setApprovalForAll so that we can easily pass list of userAddress with the amount of tokenId (Ex 0x68E6ecaAe37F9a780B9A337ec9D88768c0425A4d,2) like this.
-> But For ERC20 there is No Standard function like setApprovalForAll. there is only approve function which accepts only one address and one value (Ex 0x68E6ecaAe37F9a780B9A337ec9D88768c0425A4d, no of tokens), so for that, we have to make another custom smart contract which can take multiple addresses. Now this custom smart contract gets approval from the admin's contract and we can complete a transaction in a single go!
Flow diagram
If we integrate this on our own then UI would look like this
================================OR===============================================================
We can USE Multisender app
The text was updated successfully, but these errors were encountered:
Fyre
-> For the 2 one is if contract is ERC721 token then in ERC721 standard we have
setApprovalForAll
so that we can easily pass list of userAddress with the amount of tokenId (Ex 0x68E6ecaAe37F9a780B9A337ec9D88768c0425A4d,2) like this.-> But For ERC20 there is No Standard function like
setApprovalForAll
. there is onlyapprove
function which accepts only one address and one value (Ex 0x68E6ecaAe37F9a780B9A337ec9D88768c0425A4d, no of tokens), so for that, we have to make another custom smart contract which can take multiple addresses. Now this custom smart contract gets approval from the admin's contract and we can complete a transaction in a single go!Flow diagram
If we integrate this on our own then UI would look like this
================================OR===============================================================
We can USE Multisender app
The text was updated successfully, but these errors were encountered: