Skip to content

Commit

Permalink
test: update pricing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Th0rgal committed Aug 23, 2023
1 parent 123c526 commit f72cb0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/test_pricing.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ fn test_buy_price() {

// Test with "ben" / 3 letters and one year
let (erc20, price) = pricing.compute_buy_price(18925, 365);
assert(price == 150000000000000350, 'incorrect price');
assert(price == 73000000000000000, 'incorrect price');

// Test with "benj" / 4 letters and one year
let (erc20, price) = pricing.compute_buy_price(512773, 365);
assert(price == 84999999999999955, 'incorrect price');
assert(price == 26999999999999990, 'incorrect price');

// Test with "chocolate" / 9 letters and one year
let (erc20, price) = pricing.compute_buy_price(19565965532212, 365);
Expand Down

0 comments on commit f72cb0d

Please sign in to comment.