I hereby claim:
- I am chrismaree on github.
- I am defichris (https://keybase.io/defichris) on keybase.
- I have a public key ASDlJKsnP7z8HCscvECP7SHZIaQU5iBxTm1PN5vRcw4GXgo
To claim this, I am signing this object:
// SPDX-License-Identifier: AGPL-3.0-only | |
pragma solidity ^0.8.16; | |
import "https://github.com/UMAprotocol/protocol/blob/master/packages/core/contracts/optimistic-asserter/interfaces/OptimisticAsserterInterface.sol"; | |
// ************************************* | |
// * Minimum Viable OA Integration * | |
// ************************************* |
// SPDX-License-Identifier: AGPL-3.0-only | |
pragma solidity ^0.8.16; | |
import "https://github.com/UMAprotocol/protocol/blob/master/packages/core/contracts/optimistic-asserter/interfaces/OptimisticAsserterInterface.sol"; | |
// ************************************* | |
// * Minimum Viable OA Integration * | |
// ************************************* |
// SPDX-License-Identifier: AGPL-3.0-only | |
pragma solidity ^0.8.14; | |
import "https://github.com/UMAprotocol/protocol/blob/master/packages/core/contracts/oracle/interfaces/OptimisticOracleV2Interface.sol"; | |
// ************************************* | |
// * Minimum Viable OO Intergration * | |
// ************************************* | |
// This contract shows how to get up and running as quickly as posible with UMA's Optimistic Oracle. |
from collections import namedtuple | |
rate_model = namedtuple("RateModel", ["Ubar", "R0", "R1", "R2"]) | |
eth_model = rate_model(0.65, 0.0, 0.08, 1.00) | |
def instantaneous_rate(rate_model, u): | |
constant = rate_model.R0 | |
piece_1 = min(u, rate_model.Ubar) * (rate_model.R1 / rate_model.Ubar) | |
piece_2 = max(0, u - rate_model.Ubar) * (rate_model.R2 / (1 - rate_model.Ubar)) |
I hereby claim:
To claim this, I am signing this object:
Local host: 0x6080604052600436106100dd5760003560e01c806374d0a6761161007f578063ab3545e511610059578063ab3545e514610226578063c62fdef714610246578063c7f758a814610266578063d97c05be14610293576100dd565b806374d0a676146101b95780637cdc1cb9146101d9578063aaa14ca314610206576100dd565b806322f8e566116100bb57806322f8e5661461014f57806329cb924d1461016f578063400e3949146101845780636be7658b14610199576100dd565b8063013cf08b146100e25780631ab76712146101185780631c39c38d1461012d575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611576565b6102b3565b60405161010f91906116ce565b60405180910390f35b61012b6101263660046115bd565b6102d9565b005b34801561013957600080fd5b506101426105f6565b60405161010f9190611629565b34801561015b57600080fd5b5061012b61016a366004611576565b610605565b34801561017b57600080fd5b5061010261067f565b34801561019057600080fd5b50610102610726565b3480156101a557600080fd5b5061012b6101b436600461158e565b61072c565b3480156101c557600080fd5b5061012b6101d436600461158e565b610802565b3480156101e557600080fd5b506101f96101f436600461158e565b6108