This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install: | |
---------- | |
* Activate Hetzner Rescue System (Debian) | |
* Connect to Hetzner Rescue System using SSH and live boot RancherOS | |
(thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/) | |
* apt-get update | |
* apt-get install kexec-tools aria2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1a2,5 | |
> *Submitted for verification at Etherscan.io on 2020-08-11 | |
> */ | |
> | |
> /** | |
12c16 | |
< * Synthetix: YFIRewards.sol | |
--- | |
> * Synthetix: YAMRewards.sol | |
668c672 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from brownie import Vault, chain, interface | |
def main(): | |
vault = Vault.at("0x7Cd28e21a89325EB5b2395591E86374522396E77") | |
decimals = vault.decimals() | |
print(f"Current pps: {vault.pricePerShare() / 10**decimals}") | |
print(f"Current degradation: {vault.lockedProfitDegradation().to('ether')}") | |
print(f"Total assets: {vault.totalAssets() / 10**decimals}") | |
print(f"Total supply: {vault.totalSupply() / 10**decimals}") |
OlderNewer