0 reply
0 recast
2 reactions
28 replies
32 recasts
154 reactions
13 replies
0 recast
5 reactions
3 replies
0 recast
3 reactions
2 replies
0 recast
4 reactions
function transfer(address, uint256) public pure override returns (bool) {
revert NotSupported();
}
function allowance(
address,
address
) public pure override returns (uint256) {
revert NotSupported();
}
function approve(address, uint256) public pure override returns (bool) {
revert NotSupported();
}
function transferFrom(
address,
address,
uint256
) public pure override returns (bool) {
revert NotSupported();
}
This is to make the erc20 LDEGEN non-transferable, first time I see this way to do that, (probably, it is right) but there is an standard to do that (the one I am not using) and there is another way to do that in the _beforeTokenTranfer function by requiring the transfer to be from address zero or to address zero allowing mints and burns. (this is how I do that).
That said, this is probably right, someone with more skills and knowledge than me may have a better explanation. 1 reply
0 recast
3 reactions
1 reply
0 recast
1 reaction