Cero Trade is a decentralized platform for trading, buying, and redeeming tokenized IRECs (renewable energy certificates). It features a marketplace where users can manage their assets, redeem certificates, and list them for sale. With real-time data from the I-TRACK API, traders can make informed decisions.
As a user of the DApp, I want to be able to select a specific amount of my tokens to take off the market so that I can manage my token offerings efficiently.
Tasks
[ ] Develop logic where Agent asks Market canister to reduce user's token offer in market.
[ ] Develop logic where Market canister reduces totalQuantity linked to tokenID in TokenMarketInfo (removeFromMarket)
Acceptance Criteria
[ ] Quantity offered by user in market is reduced and reflected in Market canister, in usersxtoken and in totalAmount in TokenMarketInfo.
[ ] Check for valid tokenID and amount to be reduced (if user has enough token in market to reduce amount chosen by user), if not, show error.
[ ] If any of these steps fail, return error and don't save any changes.
User story
As a user of the DApp, I want to be able to select a specific amount of my tokens to take off the market so that I can manage my token offerings efficiently.
Tasks
Acceptance Criteria