Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to export miner power (raw power and quality adj power) to solidity ? #955

Closed
kikakkz opened this issue Dec 15, 2022 · 6 comments

Comments

@kikakkz
Copy link

kikakkz commented Dec 15, 2022

Currently we have MinerRawPowerExported to let solidity get miner raw power, is it possible to export quality adj power, too ?

@jennijuju
Copy link
Member

@arajasek worth considering.

@jennijuju jennijuju moved this to 🌟 In Scope in Network v18 Dec 16, 2022
@arajasek
Copy link
Contributor

@kikakkz Thanks for the issue! @anorth and I decided to defer on exporting QA power for now, because we weren't sure how useful it would be. The concern is that QA power is a somewhat less stable concept than Raw Power, and so we were hesitant about exposing it to contracts.

Can you please share a little more about why you'd like this? I think we're happy to add it, just wanna know about the motivation.

@kikakkz
Copy link
Author

kikakkz commented Dec 17, 2022

@arajasek thanks to reply. the motivation is from this piece code: https://github.com/NpoolFilecoin/fevm-owner-actor/blob/master/contracts/miner/Miner.sol, when i custody a miner to a contract, i'll get the information of the miner as the initial information. it'll be referred by funds management strategy of this owner smart contract.

@kikakkz
Copy link
Author

kikakkz commented Dec 17, 2022

@arajasek thanks to reply. the motivation is from this piece code: https://github.com/NpoolFilecoin/fevm-owner-actor/blob/master/contracts/miner/Miner.sol, when i custody a miner to a contract, i'll get the information of the miner as the initial information. it'll be referred by funds management strategy of this owner smart contract.

actually in my design, i'll have a sealing velocity, and the owner contract transfer funds to miner for sealing according to this velocity. so i think i can fullfill that easily if i have raw power, QA power, collateral.

@jennijuju jennijuju moved this from 🌟 In Scope to 📋 Nice To Haves in Network v18 Dec 17, 2022
@anorth
Copy link
Member

anorth commented Dec 18, 2022

Thanks for the request. This discussion really belongs over here: filecoin-project/FIPs#401

@anorth
Copy link
Member

anorth commented Dec 19, 2022

Closing for filecoin-project/FIPs#401 (comment)

@anorth anorth closed this as completed Dec 19, 2022
Repository owner moved this from 📋 Nice To Haves to ✅ Done in Network v18 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants