Arttribute Finance is a platform that empowers visual artists to tokenize their fine-tuned AI art models, enabling fractional ownership and collateralization through GHO tokens. 🖼️💰
Arttribute Finance combines AI art models, NFTs, and DeFi. It allows artists to tokenize fine-tuned AI art models that mirror their styles using ERC-1155 for fractional NFT ownership. These tokenized models can be lent out and used as collateral, opening up new possibilities for art financing.
Here's how it works:
Artists create AI art models and tokenize them on our platform. Fractional ownership tokens (ERC-1155) are issued, allowing investors to own a share of the art model (Fractional ownership tokens could also be divided among artists who contributed art that was used to train AI art models). These tokens can be lent out to other users. The art models are used as collateral to mint GHO tokens, providing liquidity for the art ecosystem. Users can trade, borrow, and leverage their art assets, bridging the gap between traditional art and blockchain finance.
Development Environment: Smart contract development and testing were conducted using Solidity and Hardhat
Role-Based Access Control: Role-based access control is implemented using the OpenZeppelin AccessControl library. Two roles are defined: MINTER_ROLE and VALUATOR_ROLE. These roles control who can mint tokens and set model base values.
Integration with GHO Token: The project integrates with the GhoToken smart contract to mint and burn GHO tokens.
ERC-1155 for Fractional Ownership: Fractional ownership of AI art models is implemented using the ERC-1155 standard
Collateralization Mechanism:
The setCollateral
function allows users to set the collateral status of their tokens. If set to true, it locks the specified amount of tokens as collateral and mints GHO tokens in return. If set to false, it unlocks the tokens and burns the equivalent GHO tokens. This is achieved by calculating the equivalent value of GHO tokens based on the AI model's base value.
Base Value Management:
The base value of each AI model in GHO tokens is managed using a mapping called _modelBaseValueInGho
. The setModelBaseValue
function allows users with the VALUATOR_ROLE to set the base value for a specific AI model.
Transfer of Fractional Ownership:
The transferOwnershipFraction
function enables the transfer of fractional ownership tokens from one address to another. It checks for sufficient balances, valid addresses, and proper authorization.