Skip to content

[FEATURE] Cart - API - Trigger Donations + Donation Success Screen  #41

Open
@codingshot

Description

@codingshot

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

Labels

QF MVPRequired for Quadratic Funding MVPfeature-requestnew feature requestft-cartAny tickets related to the Cart feature & donations.

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions