Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions contract/contracts/predifi-contract/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
#![no_std]

mod safe_math;
#[cfg(test)]
mod safe_math_examples;

use soroban_sdk::{
contract, contracterror, contractevent, contractimpl, contracttype, token, Address, Env,
IntoVal, String, Symbol, Vec,
};

pub use safe_math::{RoundingMode, SafeMath};

const DAY_IN_LEDGERS: u32 = 17280;
const BUMP_THRESHOLD: u32 = 14 * DAY_IN_LEDGERS;
const BUMP_AMOUNT: u32 = 30 * DAY_IN_LEDGERS;
Expand Down
Loading