Agile Coretime is set to debut on Polkadot, introducing a new system that optimizes blockspace allocation, enabling users to purchase and manage time-based assets efficiently. This innovation has spurred the creation of secondary marketplaces like Lastic, where users can trade Coretime in a user-friendly environment. Our hackathon project enhances Lastic by adding a feature for the splitting and changing frequency of Coretime NFTs, aiming to boost market efficiency. We're prioritizing user experience and interface design to ensure that dividing Coretime assets is straightforward for all users.
⚙️ Built using Next.js, uses pnpm and Tailwind css.
To set up and run the project, follow the steps below:
# Install the required dependencies
pnpm install
Copy the .env.local.example
and rename it to .env.local
. If you are using Subscan create a subscan public token and add it here: NEXT_PUBLIC_SUBSCAN_TOKEN='...'.
Set up the environmental variables, copy and rename .env.local.example
.
# Start the development server
pnpm run dev
We forked the LasticUI repo from Lastic as starting point. We implemented 2 new features to improve the functionality of Lastic in a user-friendly manner. Both features and their inner workings are explained below.
Coretime in Polkadot can be split at the region level. By calling this function, a single Coretime NFT is divided in two Coretime NFT's at a certain point (pivot). For example, a Coretime NFT containing region 1-50 is split at pivot 26. This results in two new Coretime NFT's with these regions:
- Region 1-25
- Region 26-50
It's also possible to divide a Coretime NFT by changing the frequency. The frequency is defined as a 80-bit bitmap, which indicates which part of the Coretime can be utilized by the owner of this nft. By changing frequency two new coretime NFT's are created:
- One with the selected frequency
- Another one with the opposite frequency (XOR)
Both these features do not transfer any NFT's. In both cases the original NFT is destroyed, and two new NFT's are minted to the original owner.
In these new features, we focus on providing the best user experience. In the screenshots below it is easy to see how users can split or change frequency. During the hackathon we got lots of feedback from the Lastic team, which helped us improve the UI a lot!
Split | Change frequency |
![]() |
![]() |
Want to try it out? Follow these steps
- Go to our deployed dapp here.
- Connect your favorite Polkadot wallet.
- Buy a core on the Coretime Sales page on our dapp.
- Navigate to My Cores page and click on the core you just bough
- Scroll down a bit and select either Change frequency or Split.
- Decide how to split or change frequency.
- Click the button and confirm the transaction in your wallet.
- Go back to the My Cores page to see the results!
After the hackathon we will continue this project, by intregrating the new features into Lastic. Also we will further research and build additional features that can improve user experience on Lastic. Lastic is excited about our new features, and they tweeted about our project during this hackathon.
This project was build during Encode X Polkadot hackathon 2024 by: