How Does It Work
Smart Contract Functionality Explained
Last updated
Was this helpful?
Smart Contract Functionality Explained
Last updated
Was this helpful?
PizzaTON Campaigns empowers users to effortlessly create and support fundraising campaigns on the blockchain. This page delves into the technical details of how the smart contract operates, ensuring transparency and security for all participants.
Campaign Creation:
NFT Generation: Upon creating a campaign on the PizzaTON Campaigns website, a unique, non-fungible token (NFT) is generated on the TON blockchain. This NFT serves two crucial purposes:
Intellectual Property Protection: It acts as a digital certificate of ownership, safeguarding the campaign's originality and preventing unauthorized duplication.
Donation Routing: It functions as a secure gateway, directing all incoming donations to the correct recipient (the campaign creator).
NFT Ownership & Immutability: This campaign NFT is non-tradable and non-transferable, permanently linked to the creator's wallet. It's important to note that PizzaTON Campaigns, even as the platform provider, cannot modify or influence the ownership or functionality of these NFTs.
NFT Upgradability: The smart contract is designed with future-proofing in mind. As new versions of the NFT standard are released, older campaign NFTs can be seamlessly upgraded to the latest version, ensuring compatibility and access to enhanced features.
Donation Options & PTJ Token Integration:
Net Donation (Native Token/Currency): Campaign creators can choose to receive donations in the same token or currency that was donated. This option provides direct and transparent transfer of value.
Gross Donation (PTJ Conversion): To encourage the use of the PizzaTON native token (PTJ), creators can opt to receive donations in PTJ, even if the original donation was made in a different cryptocurrency. PizzaTON facilitates this conversion at a highly competitive rate, benefiting both the creator and the PTJ ecosystem.
Donation Processing & Router System:
Donation Request: When a user makes a donation, the request is routed through one of PizzaTON's specialized routers.
Router Functionality: Each router is designed to handle a specific cryptocurrency or token and performs the following tasks:
Request Processing: Verifying the donation request and ensuring sufficient funds in the donor's wallet.
Fee Deduction: Automatically deducting the platform's minimal transaction fee.
Token Burning (if applicable): Executing the token burning mechanism when PTJ is involved, contributing to its scarcity and value appreciation.
Donation Transfer: Securely transferring the remaining donation amount to the campaign's NFT, which then automatically forwards it to the campaign creator's wallet.
Real-Time Conversion & Smart Routing: The routers are equipped with real-time price oracles, enabling them to instantly convert donations to the desired currency or token (PTJ in the case of Gross Donations). This ensures accurate and efficient processing, regardless of market fluctuations.
Campaign Discovery & Transparency:
PizzaTON Campaigns employs a robust search algorithm that continuously scans the TON blockchain for new campaigns. The platform then curates and displays the most promising and active campaigns on its homepage, based on various factors such as:
Total Donations Received
Number of Unique Donors
Campaign Category & Social Impact
This ensures that potential donors have access to a diverse and vetted selection of campaigns to support.
PizzaTON Campaigns is committed to providing a secure, transparent, and user-friendly platform for charitable giving on the blockchain. The smart contract architecture, with its NFT-based campaign structure and intelligent router system, ensures that donations are processed efficiently and securely, benefiting both campaign creators and the PizzaTON community as a whole.