We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86c8507 commit e5ba670Copy full SHA for e5ba670
1 file changed
cadence/contracts/TidalProtocol.cdc
@@ -464,6 +464,8 @@ access(all) contract TidalProtocol: FungibleToken {
464
) {
465
pre {
466
self.globalLedger[tokenType] == nil: "Token type already supported"
467
+ tokenType.isSubtype(of: Type<@{FungibleToken.Vault}>()):
468
+ "Invalid token type \(tokenType.identifier) - tokenType must be a FungibleToken Vault implementation"
469
collateralFactor > 0.0 && collateralFactor <= 1.0: "Collateral factor must be between 0 and 1"
470
borrowFactor > 0.0 && borrowFactor <= 1.0: "Borrow factor must be between 0 and 1"
471
depositRate > 0.0: "Deposit rate must be positive"
0 commit comments