Closed joemonem closed 1 month ago
[!WARNING]
Rate limit exceeded
@joemonem has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 0 minutes and 58 seconds before requesting another review.
:hourglass: How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.:vertical_traffic_light: How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.:inbox_tray: Commits
Files that changed from the base of the PR and between e668ea23c775dc38548f667b24d52b25c3ad9c28 and 47480ff9547a98c2f99c6afb281aae281102a8a3.
The changes introduce a "Buy Now" feature to the Andromeda auction smart contract, enabling users to purchase NFTs immediately without participating in bidding. This enhancement includes modifications to contract logic, error handling, and testing functionality, significantly broadening the auction system's capabilities. Version updates in configuration files reflect these improvements, ensuring clarity and compatibility as the contract evolves.
Files | Change Summary |
---|---|
contracts/non-fungible-tokens/andromeda-auction/Cargo.toml |
Version updated from "2.0.1" to "2.1.3" to signify new features and improvements. |
contracts/non-fungible-tokens/andromeda-auction/src/contract.rs |
Added "Buy Now" feature with new message types and functions for immediate NFT purchases. |
contracts/non-fungible-tokens/andromeda-auction/src/testing/tests.rs |
Updated test functions to include buy_now_price parameter, enhancing auction testing scenarios. |
packages/std/src/error.rs |
Introduced NoBuyNowOption , AuctionBought , and InvalidMinBid error variants for clearer error handling related to the new auction feature. |
min_raise
parameter for auction bids, which is related to the auction functionality enhanced by the main PR's addition of the "Buy Now" option, as both involve modifications to auction mechanics.ci: skip-changelog
In the meadow of bids where the rabbits play,
A new feature hops in to brighten the day.
"Buy Now!" they cheer, with a twitch of their ears,
No waiting for bids, just joy and no fears! 🐇✨
So gather your tokens, and let the fun flow,
For the auction's more lively, now watch it glow!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Motivation
Many auction systems implement an optional BuyNow feature. It allows anyone to instantly buy an item in the auction.
Implementation
Each auction now has an optional
buy_now_price
and anis_bought
boolean to indicate if an auction was completed by aBuyNow
Testing
A unit test was created.
Version Changes
Bumped auction version from 2.0.2 to 2.1.2
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Documentation