[Active] AeonNet - Dynamic Derivative Swap Powered by Time Locked Synthetic Assets

Dear Dr. @lydia,

Please find the video recording of our smart contract walkthrough here. We are generating two NFTs with an associated time lock in this demo. The combination of these two NFTs and the time lock functionality will represent the market dynamics of the derivatives. First NFT represent the original asset which has a market value. The second NFT represent the risk associated with the market position of the first asset. The time lock is intended to quantify the risk associated with the primary financial asset.

2 Likes

Dear Dr. @lydia , We have made good progress towards integrating price feeds into the smart contract system which is crucial for us to quantify the value of derivatives. We were trying two different approaches with Aeternity Oracles. Please let me share more updates by February third week as we are currently working on integrating the Oracle price feeds with the current set of primary and secondary NFTs connected by a time lock.

2 Likes

Hello Dr. @lydia and team,
@gokulalex and I have been working together and have made quantifiable progress towards developing the Dynamic Derivative trading platform. We now have a novel approach in representing a crypto asset and the risk associated with the asset in our derivative platform. We have carry-forwarded the NFT approach where we are representing each CryptoAsset using an NFT and integrated it with the Oracles to fetch the real-world metadata associated with it. Below are the key points related to the implementation:

  1. Implemented a PriceFeed oracle using CoinGecko APIs.
  2. Represent a Crypto Asset as an NFT by interacting with the Oracle.
  3. Represent the Risk associated with the AssetNFT as another NFT which can be traded.
    a. We have implemented a novel formula to derive the Risk Factor associated with it.
  4. Auctioning mechanism to trade the RiskNFT.

We have also made a demo video related to the same where we are explaining each concept and also going through the flow diagram of platform as well. Link to the Video Demo

We now look forward to interact with you and the core team members of aeternity to build more functionalities into the platform such as futures trades and also bring in a functioning UI with superhero wallet integration. We have already started our research work on the same. Looking forward to this.

Thanks and Regards.

3 Likes

Thanks for sharing this update @Jkrish1011, do you mind also sharing the link to the Github repo with the underlying Sophia smart contracts for your use case? I think many people would be interested to see how the pricefeed oracle was implemented :slight_smile:

Hello @erik.chain ,
Here is the github link to the project . CalicoDEX

To brief you all about the Oracles implementation, we had challenges implementing the Oracle interaction on-chain(using inter-contract calls). We were facing few issues since it’s an asynchronous process. Thus we off-loaded the Oracles interaction(to fetch the live crypto pricefeed) through our javascript code (which can be nodejs or js script) and it interacting with the smart contracts, thereby controlling asynchronous processes.

We are looking forward to discuss the below aspects with the aeternity engineering team:

  1. Making the Oracle Interaction on-chain.
  2. Integrating the aci.json of a deployed smart contract available in a reactjs application.
  3. Superhero wallet integration with the UI.

Hoping to hear from you all soon.

3 Likes

Interesting :slight_smile: is your NFT interface following the latest state of AEX-141? we made some changes a few months ago again. just to be sure about that. and great to see that you are using the standard!

here the latest code examples for the interfaces:

There also exists a very simple marketplace example implementation:

2 Likes

@Jkrish1011 in case you wanna discuss these topics I think @keno.chain @philipp.chain are the right guys to ask :wink:

1 Like

@marco.chain went through the smart contracts.
It seems there is some updates that we missed. We can definitely make the changes to adapt to the latest standards in the following. Thanks for highlighting it!

Also - The market place contracts looks interesting. We have plans to expand to new verticals keeping this implementation as a base. Let’s discuss further.

2 Likes

thanks @marco.chain .
We will DM @keno.chain & @philipp.chain .

Thanks again!

1 Like

feel free to do whatever you want with it :slight_smile: I am happy to give feedback/advise!

I mainly wanted to showcase and verify the transfer_to_contract entrypoint which contracts should use to claim tokens from the caller as described here AEXs/AEXS/aex-141.md at master · aeternity/AEXs · GitHub

this is needed as reentrancy is prevented for security reasons. just as a small background to that change.

2 Likes

Dear @Jkrish1011,
thank you very much for the previous reports. When will be this project completed? What is still to be done?

Hello Dr. @lydia ,

We have build a smart contract based auction system to trade various type of dynamic assets integrated with Oracle Functionality. The Oracle system is intended to capture dynamic values. The time locks are designed to stabilise the assets before the trade. Below are the listed features of the system.

  1. Hashed time locks.

  2. Auctioning mechanism implemented through a DeFi Marketplace.

  3. Dynamic NFT implemented using the AEX-141 standard.

  4. Associated NFTs.

  5. Novel Algorithm to calculate the Risk Factor associated with a dynamic NFT.

  6. Aeternity Oracle implementation to fetch live Crypto Currency Values.

We would like to present this smart contract system and the oracle module with the listed features as the final submission from our side.

It would be great if this smart contract system can be further enriched by the community. We hope these functionalities would be useful for DApps.

2 Likes

Dear @Jkrish1011,

thanks for the reply. Can you please provide the final report of this application?

1 Like