threefoldtech / tfchain

Threefold Chain.
Apache License 2.0
15 stars 11 forks source link

certified capacity paid as DIY capacity #991

Open sameh-farouk opened 2 months ago

sameh-farouk commented 2 months ago

Going through the code, certified capacity should cost 25% more here

https://github.com/threefoldtech/tfchain/blob/5a9ad375cb3cfa637ab51b7494d0680fc78d405c/substrate-node/pallets/pallet-smart-contract/src/cost.rs#L328-L334

But I can see that the DIY type is hardcoded here, We are not getting it from the Node

https://github.com/threefoldtech/tfchain/blob/5a9ad375cb3cfa637ab51b7494d0680fc78d405c/substrate-node/pallets/pallet-smart-contract/src/cost.rs#L17-L24

Any reason behind that? Maybe the CERTFIED nodes weren't yet lunched at the time of writing this part?