Open
Description
Problem
Need to be able to transact on cart
User Story(s):
As a donor, I want to transact on the cart, so that I can actually make donatiosn
Description
Cart uses NEAR API JS to trigger transactions.
Acceptance Criteria
- cart pull donation, referral fee information
- cart pull referral amount, protocol fees from donate.potlock.near contract (subject to change -> make this a global variable in app)
- cart pull fee breakdown from pot referenced in cart (pulls from any referral fees from donations) and protocol and chef fees as according to contract
- makes a call for each donation and donation for pot
- estimate gas correctly
- show success of donation, show transaction hash and open in nearblocks
- if not logged in popup wallet selector to login
- when logged in show if enough balance (in future we should add onramp for this)
- Donation success screen show share to twitter, facbeook linkedin. Share tags the handle on twitter if applicable and tags them (check current impelentation
- Successful donations are cleared from cart
Limitations
- make sure to estimate gas correctly
- passing in referrals in storage and properly passing in contract
- checking if somone has permission for nadabot
Resources
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In review