Hey man are u familiar with compound contracts . If yes am finding it difficult to set unitroller(proxy) as a proxy to comptroller(implementation contract ) contract even tho I have set everything correctly from my end not sure what am doing wrong tho . I am not able to verify the proxy contract on etherscan
(On arbitrum goerli)
Unitroller : 0x73C63717266aFB4c4B9fC3e07aEc34114e2019a9
Comptroller implementation contract : 0x292e24AB21E34a67506Aa87b4320E5e586fDc0de

Jul 23, 2023, 12:21 PM
Never touched those :(
But feel free to share what you're trying to do, what you did and where you're stuck.
Proxy contracts are usually verified (as someone already verified the same bytecode)
You just need to verify the implementation.
You can use hardhat for fast verification
Jul 23, 2023, 12:29 PM
unitroller : 0x73C63717266aFB4c4B9fC3e07aEc34114e2019a9 (https://goerli.arbiscan.io/address/0x73C63717266aFB4c4B9fC3e07aEc34114e2019a9#code)
comptroller : 0x292e24AB21E34a67506Aa87b4320E5e586fDc0de(https://goerli.arbiscan.io/address/0x292e24AB21E34a67506Aa87b4320E5e586fDc0de#writeContract)

1 . First in the proxy contract (unitroller : 0x73C63717266aFB4c4B9fC3e07aEc34114e2019a9) i called the _setPendingImplementation function and set the implementation contracts address i.e (comptroller : 0x292e24AB21E34a67506Aa87b4320E5e586fDc0de)
2. In the implementation contract i called the _become function and gave the address of the unitroller's(the proxy contract )
3. Then i called in teh _acceptImplementation in the unitroller'contract to activate the new implemetation ,
after the above steps i tried verifying the proxy but it shows the below message saying it didnt find any implementation address

i have dealt with proxies before but this is the first time am getting such error message while verifying am i missing something ?
Jul 23, 2023, 2:31 PM
both are verified to me :o
Jul 23, 2023, 2:33 PM
For reference
This is how it should look
Unitroller :
https://goerli.lineascan.build/address/0x48b9a979aed1452df792193fd6e676605ab324d7#readProxyContract
Comptroller :
https://goerli.lineascan.build/address/0x7528a17f69366e0675d6b9994d4002c8ca69b671#code
We need to be able to see read as proxy and write as proxy on unitroller to call the comptroller functions
Jul 23, 2023, 2:42 PM
have you tried with hardhat-eterscan?
Jul 23, 2023, 2:45 PM
Nope I am not good at Hardhat lol
I just write my own vault strategies on remix and test it out lmao
Jul 23, 2023, 2:47 PM
Don't think you can deploy proxy correctly with remix
Jul 23, 2023, 2:47 PM
I have done it before ser
It works
But yea lemme try using Hardhat as well
Jul 23, 2023, 2:48 PM

© 2024 Draquery.com All rights reserved.