Open lurenpluto opened 2 months ago
The issue has been identified.
In the implementation of the Project contract, the event event WithdrawContributionToken(address owner, uint amount);
does not save the projectId for withdrawals.
Therefore, a backend API POST /contribution/withdraw
has been designed to report user withdrawal actions.
If for some reason (network issues or premature page closure), this API is not successfully called, it can lead to inconsistent data on the project page.
One possible solution:
Modify the contract event to event WithdrawContributionToken(address owner, uint amount, uint[] projectId);
Update the data by scanning the events on the backend.
The project has been settled and BDT tokens have been withdrawn. However, on this page, the status of my address still shows as "NO." It is unclear whether there is an issue with the frontend display, the backend server, or if there is a bug in the on-chain contract.
Project page: https://dao.buckyos.org/projects/1/version/0 My address: 0x0F56a6f7662B38506f7Ad0ad0cc952b79b8e90e7