Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
olga24912 committed Oct 4, 2023
1 parent 27529e2 commit d22458d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bridge-token-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,9 +449,11 @@ impl BridgeTokenFactory {
)
}

/// Upgrades and migrates the bridge token contract to the current version.
///
/// # Arguments
///
/// * `address`: Ethereum address of the token erc20 contract, in hex without `0x`.
/// * `address`: Ethereum address of the token ERC20 contract, in hexadecimal format without `0x`.
///
#[access_control_any(roles(Role::DAO, Role::TokenUpgradableManager))]
pub fn upgrade_bridge_token(&self, address: String) -> Promise {
Expand All @@ -463,6 +465,13 @@ impl BridgeTokenFactory {
)
}

/// Pause or unpause the withdraw method in the bridge token contract.
///
/// # Arguments
///
/// * `address`: Ethereum address of the token ERC20 contract, in hexadecimal format without `0x`.
/// * `paused`: `true` to pause the withdraw method in the bridge token contract, `false` to unpause.
///
#[access_control_any(roles(Role::DAO, Role::PauseManager))]
pub fn set_paused_withdraw(&mut self, address: String, paused: bool) -> Promise {
ext_bridge_token::ext(self.get_bridge_token_account_id(address))
Expand Down

0 comments on commit d22458d

Please sign in to comment.