Interface + Smart contract
Budget: $10 – $30 USD
Create 2 interfaces and 1 smart contract.
interface 1:
Lists all pots and has add pot button. Pot are smart contracts created by the smart contract.
Add pot button directs to interface 2.
On each pots display: (X are variable)
-Time of creation: X
-Time remaining until expiry: X
-Pot amount X
-Pot token X
-Bid price X
-Last bidder wallet address: X
-Priority pool: X
-Pool address: X
On each pot display a "Bid" button. If user presses Bid button, time until expiry resets. If timer expires display: winner: X (address of last bidder)
interface 2:
User can create pot. Each pot is a smart contract on its own.
Based on attached screenshot:
Choose pot token: list: AVAX (only 1 item for now, later we add USDC and other coins too)
Set pot amount: user can enter int (for now, later we allow decimals)
Choose bid token: list: AVAX (only 1 item for now, later we add USDC and other coins too)
Choose bid price: only fixed for now (later we add % and multiplier), user can enter any int (for now, later we allow decimals)
Bid price distribution: 100% goes to 0xc47342DF57Cf80654316199af9dD14DaB0F4e6B4 (later we allow user to distribute as he wants)
Expiration time: fixed (for now) user can set time between 1 minute and 6 hours.
Priority pool: yes no (only difference is price. Have 0.1 AVAX and 0.2 AVAX for testing)
Pool creation fee goes to 0xc47342DF57Cf80654316199af9dD14DaB0F4e6B4
Smart contract creates pots (individual smart contracts) based on input parameters given on interface 2 or from contract itself. Interface 1 lists these pots.
Deploy this smart contract on a blockchain (can be testnet too). Integrate smart contract into both interfaces. At the end show me that it works.
interface 1:
Lists all pots and has add pot button. Pot are smart contracts created by the smart contract.
Add pot button directs to interface 2.
On each pots display: (X are variable)
-Time of creation: X
-Time remaining until expiry: X
-Pot amount X
-Pot token X
-Bid price X
-Last bidder wallet address: X
-Priority pool: X
-Pool address: X
On each pot display a "Bid" button. If user presses Bid button, time until expiry resets. If timer expires display: winner: X (address of last bidder)
interface 2:
User can create pot. Each pot is a smart contract on its own.
Based on attached screenshot:
Choose pot token: list: AVAX (only 1 item for now, later we add USDC and other coins too)
Set pot amount: user can enter int (for now, later we allow decimals)
Choose bid token: list: AVAX (only 1 item for now, later we add USDC and other coins too)
Choose bid price: only fixed for now (later we add % and multiplier), user can enter any int (for now, later we allow decimals)
Bid price distribution: 100% goes to 0xc47342DF57Cf80654316199af9dD14DaB0F4e6B4 (later we allow user to distribute as he wants)
Expiration time: fixed (for now) user can set time between 1 minute and 6 hours.
Priority pool: yes no (only difference is price. Have 0.1 AVAX and 0.2 AVAX for testing)
Pool creation fee goes to 0xc47342DF57Cf80654316199af9dD14DaB0F4e6B4
Smart contract creates pots (individual smart contracts) based on input parameters given on interface 2 or from contract itself. Interface 1 lists these pots.
Deploy this smart contract on a blockchain (can be testnet too). Integrate smart contract into both interfaces. At the end show me that it works.