In WorldWideLink (WWL) we have used different Chainlink products including 1) CCIP 2) Chain Automation 3) Data Feeds 4) VRF 5) Proof of Reserves 6) Functions 7) Chainlink Node-External adapter. Below are the details of the integration:
Chainlink CCIP:
- Cross-Chain Escrow allows buyers and sellers to stake crypto assets in Ethereum, Avalanche, or Polygon without the need to have assets on the same chain as the other party.
- Cross-Chain Lending and Borrowing allow users to lend assets on Avalanche, Ethereum, or Polygon. Users can borrow assets on other chains based on the collateral ratio, eliminating the need for bridges or concerns about managing native gas tokens.
- Cross-Chain Liquid Staking enables users to stake assets, such as CCIP, on Avalanche Fuji and receive StCCIP on Polygon. Users can utilize their liquid assets for various DeFi use cases.
- Cross-Chain asset transfer between CCIP supported chains: Ethereum, Avalanche, or Polygon.
Chainlink Automation:
- We have used logic-based automation in 1) Automated SOS email and 2) SOS-triggered automated crypto asset transfers. Chainlink Automation in WWL involves logic-based alerts and transfers. Trigger 2 sends email alerts to specified loved ones if no Dapp interaction within days. Triggers 3 auto-transfer assets to loved ones' addresses if no WWL activity after user-configured time, preventing crypto wealth from being locked for a lifetime in case of emergencies.
Chainlink Data Feeds:
- Currently, CCIP supports only CCIP token so we have used price feeds in the Lending / Borrowing part of Dapp to fetch a price of Ethereum and Matic and peg 1 CCIP:1 Eth in Ethereum network and 1 CCIP: 1 Matic in the Polygon network and allow the user to borrow WDai accordingly supplied collateral of CCIP.
Chainlink VRF:
- To airdrop WWL tokens to an early user who interacted with any of the contracts from Escrow, Lend/Borrow, and Liquid Staking.
Chainlink Proof of Reserves:
- We monitor PoR for BTC.b to trigger vital alerts and maintain the on-chain reputation score by fetching the collateral ratio of Bitcoin on Avalanche. Users receive email alerts if the collateral ratio falls below the predefined percentage. Frequent imbalances lower the reputation score of the specific pool.
Chainlink Functions:
- We tried to utilize functions to implement notifications through a POST API for sending emails. However, we encountered a "custom error" when calling the function consumer contract. To address this issue, we created a Chainlink Node to implement the desired functionality.
Chainlink Node - External Adapter:
- We created an external adapter, bridged it with the node, and generated a job ID for the POST API of email and automated it as per Chainlink Automation - Keeper.