Questions tagged [allowance]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
73 views

Why is the allowance 10**8 inside the test but equal to zero in the smart contract?

I'm running this test: def test_mint(prf, exValue, web3): wBtcAddress = "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599" ABI = [{"constant":True,"inputs":[],"...
0
votes
0answers
24 views

How can I get a list of token spending allowance for a wallet address?

Let's say I am an end-user who has been testing dapps here and there and I've approved multiple tokens spending for my wallet for different dapps. Is there an easy way for me to get the list of which ...
0
votes
1answer
17 views

Why Transfer function doesn't check for allowance comparing to TransferFrom?

Why Transfer function doesn't check for allowance comparing to TransferFrom? Do I need to call increaseAllowance each time before calling TransferFrom? Ex implementation of Transfer without allowance ...
0
votes
0answers
29 views

Approval notification

Is there a simple way that I can be notified (or check easily) when my address (an EOA) is approved by some other address (EOA, not contract) for an allowance of x amount of any ERC-20 token? It seems ...
0
votes
1answer
44 views

Why is my Crowdsale Contract not letting me buy?

Good day, I have designed a mintable token that has a max supply, I now want to sell that token in a Crowdsale. I created the crowdsale contract, set the token address, transffered the funds... but ...
1
vote
1answer
208 views

Usecase for approve and allowance functions of ERC20 token

Could you please enlighten me on how approve and allowance functions work using a usecase? I dont understand the underlying operations of these functions. Especially, when a token owner delegates the ...
0
votes
0answers
93 views

How to enable anyone to call the function transferring ERC20 to a hardcoded address

https://cryptounlocked.wetrust.io/ - allows only ETH Moloch V2 - allows only WETH (see this issue) You could make a contract that all it does is convert ETH to WETH and can only withdraw to your ...
0
votes
1answer
83 views

Is there an indexed database for ERC20 allowances?

For instance, I'd like to make the following query: Return all the addresses that have approved spender x on a particular token It seems that I can only query for a specific (address, spender) ...
1
vote
1answer
34 views

Do dapps(contract) check allowance of buyer when he calls buy function?

When a buyer calls a buy function on dapp contract, some dapps check the buyer's allowance before transfer tokens(erc20). Is it usual?