I hereby claim:
- I am valo on github.
- I am valo (https://keybase.io/valo) on keybase.
- I have a public key whose fingerprint is 2C5B D381 351D 02B7 E0EF 002D 0E81 39C9 3B22 1782
To claim this, I am signing this object:
| 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}") |
| 1a2,5 | |
| > *Submitted for verification at Etherscan.io on 2020-08-11 | |
| > */ | |
| > | |
| > /** | |
| 12c16 | |
| < * Synthetix: YFIRewards.sol | |
| --- | |
| > * Synthetix: YAMRewards.sol | |
| 668c672 |
| 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 |
| #cloud-config | |
| ssh_authorized_keys: | |
| - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIGoQM+/A5WC2j2cLvmY5cIP5bIhSFqU8AmfFmy0XtmLRzWupbk7z5BtUvYzY5X4nrB8leNnb6cFM2SgwHgQrV25Sd0YLrb4KcXxJcr45CanHWqXCBJlUwUAcWPYMjC743DXquKFypdctQOJJQfmqZmWuieaVIXNxPUB0a8LUfTE+K4M1/CHpQABm0wa4FQZ5VQrRwWyGbwK+dDB3djiYaoZetRNpRmjy70uRNP6imf5dmzUp0vDy94dWjSd+Y1ZcecZofCoUCoKnVZOZ7sGPOscy8cM7e7wZji7CltoTqeYzVEu8O7/Iej8XEfleaffFD+FAz/s/dBNHqf6lGjBc9 [email protected] |
| ACDT | Australian Central Daylight Savings Time | +10:30 | |
|---|---|---|---|
| ACST | Australian Central Standard Time | +09:30 | |
| ACT | Acre Time | -05 | |
| ACT | ASEAN Common Time | +06:30 - +09 | |
| ADT | Atlantic Daylight Time | -03 | |
| AEDT | Australian Eastern Daylight Savings Time | +11 | |
| AEST | Australian Eastern Standard Time | +10 | |
| AFT | Afghanistan Time | +04:30 | |
| AKDT | Alaska Daylight Time | -08 | |
| AKST | Alaska Standard Time | -09 |
| #!/bin/bash | |
| protected_branch='master' | |
| current_branch=$(git symbolic-ref --short HEAD) | |
| if [ $protected_branch = $current_branch ] | |
| then |
| #include <stdio.h> | |
| int sample_input[] = {1,6,4, 10}; | |
| int loc = 0; | |
| int getnumber() { | |
| return sample_input[loc++]; | |
| } | |
| int main() { |
| processor : 0 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 23 | |
| model name : Pentium(R) Dual-Core CPU E5300 @ 2.60GHz | |
| stepping : 10 | |
| microcode : 0xa07 | |
| cpu MHz : 1200.000 | |
| cache size : 2048 KB | |
| physical id : 0 |
I hereby claim:
To claim this, I am signing this object:
Extracting the bar calculation into a separate object, which doesn't know about Foo, allows us to test this code in more isolation and to easily change it in the future, because of its reduced context.