You can rent a utility NFT from decentralised NFT leasing platforms like @DoubleProtocol

Here's a thread 🧵 about ERC-4907 and how rentable NFTs work 👇
Why are rentable NFTs needed? -

a) Surge in popularity due to metaverse and play-to-earn models

b) NFTs become unaffordable in many cases due to high demand

c) Rentable NFTs provide highly required additional liquidity
ERC-4907 facilitates the efficient implementation of rentable NFTs.

This standard achieves the separation of NFT ownership and usage rights and automatically withdraws usage rights upon expiration.

This standard is an extension of EIP-721.
It proposes an additional role (`user`) which can be granted to addresses, and a time where the role is automatically revoked (`expires`)

The `user` role represents permission to "use" the NFT, but not the ability to transfer it or set users.
The owner of the NFTs can set the user and expiration of an NFT by calling the function `setUser`

Here is an example usage:

1. Alice owns an NFT4907 with id 1.

2. Alice can lend it to anyone by setting the user and expiry of the NFT: `setUser(1, anyone, expires)`.
3. Alice can also cancel the right of using : `setUser(1, address(0), 0)`
Three important function definitions in ERC-4907 are:

Function 1:
function setUser(uint256 tokenId, address user, uint64 expires)-

This function is initiated by the NFT owner and passes in three parameters NFT ID, leaseholder, and expiration time.
It checks if the caller is the NFT owner

If the caller is the owner, then it transfers the ownership to the 'user' address until 'expires' expiry time

Function 2:
function userOf(uint256 tokenId) -

This function is used to query the leaseholder of a particular NFT
Function 3:
function userExpires(uint256 tokenId) -

This function is used to get the expiration time of a particular NFT leaseholder
If you liked this thread, please follow @magikinvestxyz for more such information.

• • •

Missing some Tweet in this thread? You can try to force a refresh

Keep Current with Magik Labs ✨

Magik Labs ✨ Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!


Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @magikinvestxyz

Aug 8
Using analytics tools can help you make sense of on-chain data & help you uncover what are market participants doing

@nansen_ai is one of the best tools for tracking what smart money is doing

Here's how to use Nansen to interpret smart money movements
@ASvanevik @nansen_intern
What is smart money?

Nansen provides a breakdown(see image)

Smart LPs are accounts that made >$100k LPing into SUSHI or UNI & smarter LPs are top 1% of smart LPs

Funds are VCs, @jumpcapital, @AlamedaResearch or market makers like @wintermute_t

Flash boys are MEV & other bots
Why watch smart money?

Here are a few reasons

1/ Watching how much stables these accounts hold could roughly tell us how much risk the big players are willing to take

Since crypto is correlated to the broader market, this could indicate a macro-economic outlook.
Read 10 tweets
Aug 6
Amazon has a blockchain product called @Amazon Managed Blockchain

It is a fully managed service for creating and managing blockchain networks using open source framework

Let's understand how it works and which popular companies are using it 👇 🧵
Creation of a blockchain in an image:
@Amazon managed blockchain supports distributed ownership:
Read 14 tweets
Aug 4
DeFi protocols have done innovation through permissionless financial primitives like lending/borrowing, staking, DeXs, ICOs etc.

Here's how these protocols are tweaking their offerings to adapt to current market conditions 👇 🧵
1. Introduction of native stablecoins

Protocols are launching their native stablecoins to attract new users, liquidity and add a new source of protocol revenue.

- @AaveAave recently announced their $GHO token

- @CurveFinance is also expected to launch its stablecoin.
Other projects include $USDD on @trondao, $fUSD on @FantomFDN and Near Protocol’s $USN

2. Bridge-less multi-chain Ecosystem

Most of the DeFi protocols are already available on multiple chains

This leads to fragmented liquidity across chains & makes the system inefficient
Read 10 tweets
Aug 2
Smart contract developers often look to extend the functionality of the contract even after deployment

EIP-2535 standard enables this by writing modular contracts

Here's How 👇 🧵
The maximum size of a smart contract’s bytecode is 24.5KB.

So that limits how much functionality can exist in a smart contract

Adding more functionality would require creation of another smart contract

This increases gas cost due to interaction b/w 2 separate smart contracts
To other smart contracts, diamond appears to be a single smart contract with a single Ethereum address.

But internally it utilizes a set of contracts called facets for its external functions. Image
Read 9 tweets
Aug 1
How do under-collateralized loans in DeFi work?

We dug into the models used by various protocols and created a 🧵 to explain👇
One of the biggest complaints about DeFi is that there's not enough real use cases.

Over-collateralized loans are a lot less useful than the under-collateralized loans.

Over-collateralized loans are primarily used by traders for leverage.
Here's how an over-collateralized loan works.

You want to borrow $100 in USDC.

You deposit $150 worth of ETH as collateral.

If the value of ETH falls by 33%, your collateral is liquidated
Read 14 tweets
Jul 20
Zero knowledge proofs are one of the most significant crypto technologies being developed

Here are five ways zero knowledge proofs are making dapps more efficient, private & decentralised
1. MultiPlayer games on chain - @darkforest_eth

DarkForest is a multiplayer game completely on-chain where players compete in rounds.

Players start on a planet & can conquer other unconquered planets or planets of other players

The goal is to get as many points as possible
@darkforest_eth How ZK helps?

Both the location of the player's planet and the moves that they make are hidden from other players

Players generate ZK proofs on their system & publish them on the blockchain where the contract verifies that the moves they are making are valid
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!

This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!


0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy


3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!