Skip to content

Commit

Permalink
View methods for the factory
Browse files Browse the repository at this point in the history
  • Loading branch information
tifrel committed Nov 24, 2022
1 parent 2781f2d commit 42100fe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,18 @@ impl MintbaseStoreFactory {
&self.admin_public_key
}

/// Retrieve the storage price per byte in yocotNEAR currently registered
/// with the factory.
pub fn get_storage_price_per_byte(&self) -> U128 {
self.storage_price_per_byte.into()
}

/// Retrieve the store cost in yocotNEAR currently registered with the
/// factory.
pub fn get_store_cost(&self) -> U128 {
self.store_cost.into()
}

/// The Near Storage price per byte has changed in the past, and may change in
/// the future. This method may never be used.
#[payable]
Expand Down

0 comments on commit 42100fe

Please sign in to comment.