Skip to content

Commit

Permalink
Refactor: Rename program to sdk (#3)
Browse files Browse the repository at this point in the history
* Rename to sdk

* Fix clippy warning
  • Loading branch information
febo authored Sep 3, 2024
1 parent 24edfd9 commit bbfe860
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
resolver = "2"
members = ["macro", "program"]
members = ["sdk", "macro"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion program/src/sysvars/clock.rs → sdk/src/sysvars/clock.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::impl_sysvar_get;
//! Information about the network's clock, ticks, slots, etc.
use super::Sysvar;
use crate::impl_sysvar_get;

/// The unit of time given to a leader for encoding a block.
///
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion program/src/sysvars/rent.rs → sdk/src/sysvars/rent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Sysvar for Rent {
/// The total rent in lamports
impl Rent {
pub fn due(&self, bytes: u64, years: f64) -> u64 {
(self.lamports_per_byte_year * bytes as u64)
(self.lamports_per_byte_year * bytes)
.saturating_mul((years * 100.0) as u64)
.saturating_div(100)
}
Expand Down

0 comments on commit bbfe860

Please sign in to comment.