# Dotreasury and Statescan maintenance request for 2022 Q2 Proponent: OpenSquare(ESgz7GLVW7BL5DhRgpVnxSXVwaKt4ytWcrf52TY1GQD1cEb) Date: 07/06/2022 Requested Allocation: $16,516 --- [OpenSquare team](https://www.opensquare.network/team/) has been maintaining the daily runing of [dotreasury](https://ipfs.dotreasury.com) and [statescan](https://statemine.statescan.io/). Generally the maintaining work includes code refactoring, servers monitoring, bug fixes, UI/UX tweaks, small features enhacement, some manual work to add necessary infos, etc. We're requesting fund from kusama treasury to cover the work cost of 2022 Q2. To reduce the review work we align the requests for dotreasury and statescan, and propose them in one proposal. ## 1. Servers - Statescan: 3 Hetzner vps + a 400G volume, and the vps are 1 * CPX31 + 2 * CPX41. - Dotreasury: 2 Hetzenr vps + 1200GB volume, and the vps are 2 * CPX31. - Test and development: 3 contabo servers. Each month cost is about $172, and total cost is $172 * 3 = $516. ## 2. Enhancement, refactor and daily maintenance For dotreasury, the work includes: - Maintain the proposals' context and the funded projects' info, and this require some manual work to do the update. - Bug fixes: - Handle errors may happen when polkadot extension has ethereum addresses. - Fix the call handling in batch which missed the `batchAll` method. - Fix the bounty extend remark mis-decode by the new versions of polkadot.js. - Fix bounty curator deposit. - Code refactor. We extracted a [scan-common](https://github.com/opensquare-network/scan-common) repo which contains some common logic of on-chain business indexer and can be used by other products. And we also added the logic to separate events for calls in a batch extrinsic, while this will make the call business handling more precise. - Other work including tracking and updating dependencies, UI improvements like table layout adjustment. We will request 20 FTE equivalent work for this 3 months dotreasury work. For Statescan, the work includes: - Improve the NFT IPFS metadata handling process, so the failed resources can be handled again and the performance is enhanced by the separation of IPFS metadata and image handling. - Support pagination for asset timeline. This is necessary since some assets like [RMRK](https://statemine.statescan.io/asset/8?tab=timeline) has too many timeline items. - Collect and update asset info. We will request 12 FTE equivalent work for this 3 months statescan work. The total cost will be 32(FTE) * $500(each FTE cost) = $16,000. ## 3. Metrics Dotreasury: ![](https://i.imgur.com/oOBeHQ8.jpg) Statescan: ![](https://i.imgur.com/h3p7adO.jpg) ## 4. Total cost | Item | Cost | | ---- | ---- | | Servers | $516 | | Enhancement and maintenance | $16,000 | | Total | $16,516 | Payment conditions: Considering the gap between the KSM latest price and EMA30 price, I'll be appreciated if we can use the latest or EMA7 price.