-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Questions #1
Comments
I appreciate you taking a look and your questions! I'm still a bit of a novice so apologies if I misunderstand any of the questions.
|
You can still use For the error messages, did you build the aiken scripts with You may be right that using |
That's interesting, I just tried out using Rational and Lucid doesn't seem to be able to generate the correct types with their blueprint function, I'll have to play with this some more, bypassing the invariant definitely sounds a potentially dangerous if not handled. Wow, it was that easy! |
I did some testing and thought I'd share my findings: For making sure The sparing use of I think I found a compromise for using
Then I can use the function like this:
Since |
I have a few questions that I haven't had the time to fully answer myself. Considering you took a different path with the aiken code, perhaps you are better positioned to answer them. I wasn't sure if I should ask them here or in the discussion but since you made this repo private, I decided to ask the questions related to your code here.
Ratio
type for the datums? Since the beacons will fail to mint unless the datums are valid, which includes the ratio elements, I did not see a need to create a dedicated type for the datums. Do you not think the presence of the beacons is enough to ensure validity of the ratios?expect True
? I like how concise it is but am concerned about the error messages being unfriendly.reduce(x + y / z) != reduce(x + reduce(y / z))
. This is relevant for front-ends since whatever language they use may automatically reduce after each operation which would mean a customRational
type would be required to calculate the same ratio as the script. This may not be too much of an issue for cardano-loans since the arithmetic is pretty basic but it would be more of an issue for cardano-swaps when the weighted average asking price is calculated.The text was updated successfully, but these errors were encountered: