Add these here after deploy
cvault-finance / core-options Goto Github PK
View Code? Open in Web Editor NEWPrimary contract repository for options contracts
Primary contract repository for options contracts
Good sir, many a doom has stricken telegram. please do the needful and refill clend. for my village.
Long time listener first time caller,
Big fan here, can't wait for the cVault speedo. Earlier today I tried to market buy some delta on Sushiswap and was met with an error when attempting to swap:
cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: Minimal ouput balance violation", method="estimateGas", transaction={"from":"0x8e053EfBC3dC7a413D93d7C2a208EBad11CC99F3","to":"0xF70c086618dcf2b1A461311275e00D6B722ef914","value":{"type":"BigNumber","hex":"0x7c585087238000"},"data":"0x2646478b000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee000000000000000000000000000000000000000000000000007c5850872380000000000000000000000000009ea3b5b4ec044b70375236a281986106457b20ef000000000000000000000000000000000000000000000002de4f8ada2c1173330000000000000000000000008e053efbc3dc7a413d93d7c2a208ebad11cc99f300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000008805c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2011498bd576454159bb81b5ce532692a8752d163e8000000000000000000000000000000000000000000000000007c5850872380000a1498bd576454159bb81b5ce532692a8752d163e8c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2008e053efbc3dc7a413d93d7c2a208ebad11cc99f3000000000000000000000000000000000000000000000000","accessList":null}, error={"code":-32603,"message":"execution reverted: Minimal ouput balance violation","data":{"originalError":{"code":3,"data":"0x08c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001f4d696e696d616c206f757075742062616c616e63652076696f6c6174696f6e00","message":"execution reverted: Minimal ouput balance violation"}}}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.7.2)
I received the same issue from two different wallets so I believe it may not be unique to me, another member in tg mentioned receiving the same error as well. Jeff was of no help (Ticker: CUMBRAIN).
Problem:
In the codebase, it has been observed that some developers are using if conditions without enclosing them in curly braces. This practice, while technically valid, can lead to readability issues and may introduce subtle bugs in the future, especially when additional statements are added.
Suggestion:
I propose that we always use curly braces with if conditions, even if there is only a single statement. This practice enhances code clarity, reduces the likelihood of introducing bugs, and makes it easier for others to understand and maintain the code.
Example:
// Not recommended
if (condition)
statement;
// Recommended
if (condition) {
statement;
}
Benefits:
Consistency: Encouraging a uniform coding style across the project.
Readability: Making the code more readable by clearly indicating the scope of the if condition.
Error Prevention: Reducing the chance of introducing bugs when modifying code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.