-
Notifications
You must be signed in to change notification settings - Fork 6
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
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions from using Self
to &self
#265
Merged
Conversation
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
This was referenced Apr 26, 2024
JuaniRios
changed the title
fix auction tests
⚗️ New decimal-aware price system - Part 4: Add evaluation test for different CT decimals
Apr 26, 2024
JuaniRios
changed the title
⚗️ New decimal-aware price system - Part 4: Add evaluation test for different CT decimals
✅ New decimal-aware price system - Part 5: Fix auction tests
Apr 26, 2024
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 26, 2024 15:08
181e04e
to
f1dc36f
Compare
JuaniRios
changed the title
✅ New decimal-aware price system - Part 5: Fix auction tests
✅ New decimal-aware price system - Part 5: Convert instantiator functions
Apr 26, 2024
JuaniRios
changed the title
✅ New decimal-aware price system - Part 5: Convert instantiator functions
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions
Apr 26, 2024
JuaniRios
changed the title
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions from using Self to &self
Apr 26, 2024
JuaniRios
changed the title
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions from using Self to &self
🧑💻 New decimal-aware price system - Part 5: Convert instantiator functions from using Apr 26, 2024
Self
to &self
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 26, 2024 15:28
f1dc36f
to
b5f1312
Compare
vstam1
approved these changes
Apr 29, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not completely like the &self reference in each function, especially functions that do not need it like get_ed, but we can take a look at better structuring the instantiator after MVP
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 29, 2024 11:04
41dfe8a
to
74ff58b
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 29, 2024 11:04
b5f1312
to
a5d9e2c
Compare
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 29, 2024 11:06
74ff58b
to
090c818
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 29, 2024 11:06
a5d9e2c
to
87c4b7d
Compare
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 29, 2024 11:12
090c818
to
fc2bb4d
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 29, 2024 11:12
87c4b7d
to
10fc4d6
Compare
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 29, 2024 11:16
fc2bb4d
to
213ef1c
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 29, 2024 11:16
10fc4d6
to
ee47043
Compare
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 29, 2024 12:26
213ef1c
to
aec82ca
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
3 times, most recently
from
April 29, 2024 13:02
0716af9
to
37bc816
Compare
This was referenced Apr 29, 2024
This was referenced Apr 30, 2024
Closed
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 30, 2024 12:51
aec82ca
to
3dd9566
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 30, 2024 12:51
37bc816
to
0b62896
Compare
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 30, 2024 13:00
3dd9566
to
84e08a5
Compare
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 30, 2024 13:00
0b62896
to
6699784
Compare
Merge activity
|
JuaniRios
force-pushed
the
04-26-test_different_ct_decimals_on_evaluating
branch
from
April 30, 2024 13:55
84e08a5
to
7382bee
Compare
Base automatically changed from
04-26-test_different_ct_decimals_on_evaluating
to
main
April 30, 2024 13:58
JuaniRios
force-pushed
the
04-26-fix_auction_tests
branch
from
April 30, 2024 13:59
6699784
to
c62b14b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Main info on #260
Since our price mechanism now has to call storage for the decimals, we need our price functions to be called not from the type, but from the type instance. i.e
inst.calculate...
and notInstantiator::calculate
I took the liberty of converting all our functions also to using the instance (&self instead of Self), since usually the types are quite longer and doing
inst.
is easier.