-
How to implement Uniswap Permit2 in your protocol
Usually when interacting with a protocol that is transferring users ERC20 tokens, the user must first approve it by calling approve on the ERC20 token contract. This means that for every new application that user interacts with, he must make 2 transactions (one to approve and the second one to call the smart contract he wants to interact with). This is why a […]
-
How to get Smart Contract Creation Block Number with NodeJS
Lets say you have an application that needs to index Smart Contract events. To index past events, you have to first know what blocks you should be looking at. It does not need to be explained, that you should be looking at blocks that were created after the contract was deployed. So you need to […]
-
ERC721 Renting, Lending and Borrowing
After some time I came across EIP-4907 Rental NFT standard again. It got me thinking of the different ways ERC721 tokens can be lent, borrowed or rented. ERC20 lending is already somewhat standardized and we have well known protocols. But when it comes to ERC721 tokens, we are yet to see a protocol or a […]